*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --bg-primary: #030a06;
    --bg-secondary: #071210;
    --bg-card: #0a1a14;
    --bg-card-hover: #0d2219;
    --accent: #00ff88;
    --accent-dim: #00cc6a;
    --accent-glow: rgba(0,255,136,0.15);
    --danger: #ff3b3b;
    --warning: #ffaa00;
    --text-primary: #e8f0ec;
    --text-secondary: #8aa899;
    --text-dim: #4a6a5a;
    --border: #1a3a2a;
    --border-glow: rgba(0,255,136,0.3);
    --purple: #e040fb;
    --cyan: #00e5ff;
    --gold: #ffd740;
}
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--accent-dim); }
img { max-width: 100%; height: auto; border-radius: 12px; }

/* ===== CONTAINER ===== */
.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }

/* ===== HEADER ===== */
header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(3,10,6,0.92); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 18px; color: #000;
}
.logo-text { font-weight: 700; font-size: 1.1rem; }
.logo-text span { color: var(--accent); }
nav { display: flex; gap: 24px; align-items: center; }
nav a { color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; }
nav a:hover { color: var(--accent); }
.nav-cta {
    background: var(--accent); color: #000; padding: 8px 20px;
    border-radius: 8px; font-weight: 600; font-size: 0.85rem;
}
.nav-cta:hover { background: var(--accent-dim); color: #000; }

/* ===== HERO ===== */
.hero {
    padding: 140px 0 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 50% 30%, rgba(0,255,136,0.10) 0%, transparent 55%),
                radial-gradient(ellipse at 80% 60%, rgba(0,229,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}
.hero-top {
    text-align: center; padding-bottom: 60px; position: relative; z-index: 2;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(0,255,136,0.08); border: 1px solid rgba(0,255,136,0.2);
    padding: 6px 16px; border-radius: 20px; font-size: 0.8rem; color: var(--accent);
    margin-bottom: 24px; font-weight: 500;
}
.hero-badge::before { content: ''; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-brand {
    font-size: 5rem; font-weight: 900; letter-spacing: 12px; text-transform: uppercase;
    color: var(--accent); margin-bottom: 4px; line-height: 1;
    text-shadow: 0 0 60px rgba(0,255,136,0.3), 0 0 120px rgba(0,255,136,0.1);
}
.hero-subtitle {
    font-size: 1.1rem; font-weight: 500; color: var(--text-secondary);
    letter-spacing: 4px; text-transform: uppercase; margin-bottom: 8px;
}
.hero-tagline {
    font-size: 0.85rem; color: var(--text-dim); letter-spacing: 3px;
    text-transform: uppercase; margin-bottom: 32px;
}
.hero h1 {
    font-size: 2.4rem; font-weight: 800; line-height: 1.25; max-width: 800px; margin: 0 auto 20px;
    background: linear-gradient(135deg, #fff 30%, var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { font-size: 1.1rem; color: var(--text-secondary); margin: 0 auto 36px; max-width: 680px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    color: #000; padding: 14px 32px; border-radius: 12px;
    font-weight: 700; font-size: 1rem; display: inline-flex;
    align-items: center; gap: 8px; transition: all 0.3s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,255,136,0.3); color: #000; }
.btn-secondary {
    border: 1px solid var(--border); color: var(--text-primary);
    padding: 14px 32px; border-radius: 12px;
    font-weight: 600; font-size: 1rem; transition: all 0.3s;
}
.btn-secondary:hover { border-color: var(--accent); background: var(--accent-glow); }

/* Hero Screenshots */
.hero-screenshots {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 20px;
    max-width: 1100px; margin: 0 auto;
    padding: 0 20px;
}
.hero-screen-main {
    border-radius: 16px; border: 1px solid var(--border);
    box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 40px rgba(0,255,136,0.05);
    overflow: hidden; position: relative;
}
.hero-screen-main img { width: 100%; display: block; }
.hero-screen-side {
    display: flex; flex-direction: column; gap: 16px;
}
.hero-screen-sm {
    border-radius: 12px; border: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    overflow: hidden; flex: 1; position: relative;
}
.hero-screen-sm img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-screen-label {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 8px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    font-size: 0.72rem; font-weight: 600; color: var(--accent);
    letter-spacing: 1px; text-transform: uppercase;
}
.hero-fade {
    height: 100px; margin-top: -100px; position: relative; z-index: 3;
    background: linear-gradient(to top, var(--bg-primary), transparent);
}
.hero-img {
    border-radius: 16px; border: 1px solid var(--border);
    box-shadow: 0 20px 80px rgba(0,0,0,0.5);
    width: 115%; max-width: none;
    margin-top: -16px; margin-bottom: -16px;
}

/* ===== EVIDENCE BANNER ===== */
.evidence-banner {
    background: var(--bg-secondary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    padding: 40px 0;
}
.evidence-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.evidence-item h3 { font-size: 2rem; font-weight: 800; color: var(--accent); font-family: 'JetBrains Mono', monospace; }
.evidence-item p { font-size: 0.85rem; color: var(--text-secondary); margin-top: 4px; }

/* ===== SECTION SYSTEM ===== */
.section { padding: 100px 0; }
.section-label {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: 'JetBrains Mono', monospace; font-size: 0.8rem;
    color: var(--accent); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 2px;
}
.section-label::before { content: ''; width: 32px; height: 1px; background: var(--accent); }
.section-title { font-size: 2.2rem; font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.section-desc { font-size: 1.05rem; color: var(--text-secondary); max-width: 700px; margin-bottom: 48px; }

/* Section Divider */
.section-divider {
    border: none; height: 1px; margin: 0;
    background: linear-gradient(90deg, transparent, var(--border), var(--accent), var(--border), transparent);
}

/* ===== MEGA SECTION ===== */
.mega-section {
    padding: 120px 0 60px;
    position: relative;
}
.mega-section::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 200px;
    background: radial-gradient(ellipse at 50% 0%, rgba(0,229,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.mega-section.gold-glow::before {
    background: radial-gradient(ellipse at 50% 0%, rgba(255,215,64,0.06) 0%, transparent 70%);
}
.mega-header { text-align: center; margin-bottom: 80px; }
.mega-number {
    font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
    color: var(--cyan); letter-spacing: 4px; text-transform: uppercase;
    margin-bottom: 16px;
}
.mega-section.gold-glow .mega-number { color: var(--gold); }
.mega-title {
    font-size: 2.5rem; font-weight: 900; margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 40%, var(--cyan));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.mega-section.gold-glow .mega-title {
    background: linear-gradient(135deg, #fff 40%, var(--gold));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.mega-desc {
    font-size: 1.1rem; color: var(--text-secondary); max-width: 750px; margin: 0 auto;
}

/* ===== SUBSECTION ===== */
.subsection {
    padding: 60px 0; border-top: 1px solid rgba(255,255,255,0.04);
}
.subsection-label {
    display: inline-block; padding: 4px 14px; border-radius: 6px;
    font-family: 'JetBrains Mono', monospace; font-size: 0.7rem;
    letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px;
}
.subsection-label.cyan { background: rgba(0,229,255,0.1); color: var(--cyan); border: 1px solid rgba(0,229,255,0.2); }
.subsection-label.gold { background: rgba(255,215,64,0.1); color: var(--gold); border: 1px solid rgba(255,215,64,0.2); }
.subsection-label.purple { background: rgba(224,64,251,0.1); color: var(--purple); border: 1px solid rgba(224,64,251,0.2); }
.subsection-label.green { background: rgba(0,255,136,0.1); color: var(--accent); border: 1px solid rgba(0,255,136,0.2); }

.subsection-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 12px; }
.subsection-text { font-size: 1rem; color: var(--text-secondary); max-width: 800px; margin-bottom: 32px; line-height: 1.8; }

/* Note callouts */
.note-callout {
    display: inline-flex; align-items: flex-start; gap: 10px;
    padding: 12px 18px; border-radius: 10px; font-size: 0.88rem;
    margin-bottom: 24px; line-height: 1.6;
}
.note-callout.cyan { background: rgba(0,229,255,0.06); border: 1px solid rgba(0,229,255,0.15); color: var(--cyan); }
.note-callout.gold { background: rgba(255,215,64,0.06); border: 1px solid rgba(255,215,64,0.15); color: var(--gold); }
.note-callout.danger { background: rgba(255,59,59,0.06); border: 1px solid rgba(255,59,59,0.15); color: var(--danger); }

/* ===== MODALITY CARD ===== */
.modality-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; overflow: hidden; transition: all 0.4s;
    margin-bottom: 48px;
}
.modality-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 12px 48px rgba(0,255,136,0.08); }
.modality-content { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.modality-content.reverse { direction: rtl; }
.modality-content.reverse > * { direction: ltr; }
.modality-text { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.modality-tag {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
    padding: 4px 12px; border-radius: 6px; margin-bottom: 16px; width: fit-content;
}
.tag-motor { background: rgba(255,59,59,0.1); color: var(--danger); border: 1px solid rgba(255,59,59,0.2); }
.tag-sensory { background: rgba(0,229,255,0.1); color: var(--cyan); border: 1px solid rgba(0,229,255,0.2); }
.tag-emg { background: rgba(255,170,0,0.1); color: var(--warning); border: 1px solid rgba(255,170,0,0.2); }
.tag-cortical { background: rgba(224,64,251,0.1); color: var(--purple); border: 1px solid rgba(224,64,251,0.2); }
.tag-neuro { background: rgba(0,255,136,0.1); color: var(--accent); border: 1px solid rgba(0,255,136,0.2); }
.tag-gold { background: rgba(255,215,64,0.1); color: var(--gold); border: 1px solid rgba(255,215,64,0.2); }
.modality-name { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
.modality-desc { color: var(--text-secondary); margin-bottom: 20px; line-height: 1.8; }
.modality-specs { display: flex; flex-wrap: wrap; gap: 8px; }
.spec-chip {
    background: rgba(0,255,136,0.06); border: 1px solid rgba(0,255,136,0.15);
    padding: 4px 12px; border-radius: 6px; font-size: 0.78rem;
    font-family: 'JetBrains Mono', monospace; color: var(--accent);
}
.modality-img {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-secondary); min-height: 320px;
}
.modality-img img { width: 100%; height: 100%; object-fit: cover; }

/* ===== IMAGE LAYOUTS ===== */
.img-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.img-trio { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.img-featured { margin-bottom: 16px; }
.img-featured img { border: 1px solid var(--border); }
.img-duo img, .img-trio img { border: 1px solid var(--border); }
.img-row-3-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 16px; }
.img-row-1-3 { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; margin-bottom: 16px; }
.img-row-3-1 img, .img-row-1-3 img { border: 1px solid var(--border); width: 100%; height: 100%; object-fit: cover; }
.img-caption {
    font-size: 0.78rem; color: var(--text-dim); text-align: center;
    margin-top: 8px; font-style: italic;
}

/* ===== FEATURES GRID ===== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 14px; padding: 32px 24px; transition: all 0.3s;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.feature-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }

/* ===== CTA ===== */
.cta-section {
    padding: 100px 0; text-align: center;
    background: radial-gradient(ellipse at 50% 50%, rgba(0,255,136,0.06) 0%, transparent 60%);
}
.cta-section h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 16px; }
.cta-section p { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 36px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ===== FOOTER ===== */
footer {
    background: var(--bg-secondary); border-top: 1px solid var(--border);
    padding: 40px 0; text-align: center;
}
footer p { font-size: 0.85rem; color: var(--text-dim); }

/* ===== HAMBURGER MENU ===== */
.menu-toggle {
    display: none; background: none; border: 1px solid var(--border);
    color: var(--text-primary); padding: 6px 8px; border-radius: 8px;
    cursor: pointer; font-size: 1.3rem; line-height: 1; transition: all 0.3s;
}
.menu-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-brand { font-size: 3.5rem; letter-spacing: 8px; }
    .hero h1 { font-size: 1.8rem; }
    .hero-screenshots { grid-template-columns: 1fr; }
    .hero-screen-side { flex-direction: row; }
    .hero-screen-sm { max-height: 200px; }
    .modality-content, .modality-content.reverse { grid-template-columns: 1fr; }
    .modality-content.reverse { direction: ltr; }
    .evidence-grid { grid-template-columns: repeat(3, 1fr) !important; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .ref-list { columns: 1; }
    .img-trio { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .menu-toggle { display: block; }
    nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; gap: 0;
        background: rgba(3,10,6,0.97); backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        padding: 8px 0;
    }
    nav.open { display: flex; }
    nav a {
        padding: 12px 24px; font-size: 0.95rem;
        border-bottom: 1px solid rgba(255,255,255,0.04);
        width: 100%; text-align: left;
    }
    nav a:last-of-type { border-bottom: none; }
    nav .nav-cta {
        margin: 8px 16px; padding: 12px 20px; text-align: center;
        border-radius: 10px; width: auto;
    }
    .lang-selector {
        margin: 8px 16px 12px; padding: 0; border: none;
        justify-content: center; flex-wrap: wrap; gap: 6px;
    }
    header { padding: 10px 0; }
    .header-inner { position: relative; }
    /* RTL mobile overrides */
    [dir="rtl"] .header-inner { flex-direction: row-reverse; }
    [dir="rtl"] nav {
        flex-direction: column !important;
        left: 0; right: 0;
    }
    [dir="rtl"] nav a { text-align: right; padding: 12px 24px; }
    [dir="rtl"] .lang-selector {
        margin: 8px 16px 12px; padding: 0;
        border: none; border-right: none;
        justify-content: center;
    }
}
@media (max-width: 640px) {
    .hero-brand { font-size: 2.5rem; letter-spacing: 6px; }
    .hero h1 { font-size: 1.5rem; }
    .hero-screen-side { flex-direction: column; }
    .mega-title { font-size: 1.8rem; }
    .section-title { font-size: 1.6rem; }
    .evidence-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .features-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: center; }
    .img-duo { grid-template-columns: 1fr; }
    .img-row-3-1, .img-row-1-3 { grid-template-columns: 1fr; }
}
/* ===== DOWNLOAD MODAL ===== */
.modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
    align-items: center; justify-content: center;
    animation: fadeIn 0.3s ease;
}
.modal-overlay.active { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.modal-box {
    background: var(--bg-card); border: 1px solid var(--accent);
    border-radius: 20px; padding: 48px; max-width: 520px; width: 90%;
    text-align: center; position: relative;
    box-shadow: 0 20px 80px rgba(0,255,136,0.15);
    animation: slideUp 0.4s ease;
}
.modal-icon {
    width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px; font-size: 2rem;
}
.modal-box h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
.modal-box p { color: var(--text-secondary); margin-bottom: 28px; line-height: 1.7; font-size: 0.95rem; }
.modal-contact {
    display: flex; flex-direction: column; gap: 12px;
}
.modal-contact a {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 24px; border-radius: 12px; font-weight: 600; font-size: 0.95rem;
    transition: all 0.3s;
}
.modal-contact .btn-email {
    background: linear-gradient(135deg, var(--accent), var(--cyan)); color: #000;
}
.modal-contact .btn-email:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,255,136,0.3); color: #000; }
.modal-close {
    position: absolute; top: 16px; right: 16px;
    background: none; border: none; color: var(--text-dim);
    font-size: 1.5rem; cursor: pointer; padding: 4px 8px;
    border-radius: 8px; transition: all 0.3s;
}
.modal-close:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

/* ===== LANGUAGE SELECTOR ===== */
.lang-selector {
    display: flex; gap: 4px; margin-left: 12px;
    padding-left: 16px; border-left: 1px solid var(--border);
}
.lang-btn {
    background: transparent; border: 1px solid var(--border);
    color: var(--text-dim); padding: 4px 8px; border-radius: 6px;
    font-size: 0.7rem; font-weight: 600; cursor: pointer;
    transition: all 0.3s; font-family: inherit; line-height: 1;
}
.lang-btn:hover { color: var(--text-primary); border-color: var(--text-secondary); }
.lang-btn.active {
    background: var(--accent); color: #000; border-color: var(--accent);
}
/* RTL Support (Arabic) */
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .header-inner { flex-direction: row-reverse; }
@media (min-width: 861px) { [dir="rtl"] nav { flex-direction: row-reverse; } }
[dir="rtl"] .hero-grid { direction: rtl; }
[dir="rtl"] .modality-content { direction: rtl; }
[dir="rtl"] .modality-content.reverse { direction: rtl; }
[dir="rtl"] .evidence-grid { direction: rtl; }
[dir="rtl"] .features-grid { direction: rtl; }
[dir="rtl"] .hero-actions { flex-direction: row-reverse; }
[dir="rtl"] .modality-specs { direction: rtl; }
@media (min-width: 861px) {
    [dir="rtl"] .lang-selector { margin-left: 0; margin-right: 12px; padding-left: 0; padding-right: 16px; border-left: none; border-right: 1px solid var(--border); }
    [dir="rtl"] nav a { text-align: right; }
}

@media (max-width: 768px) {
    .lang-selector { margin-left: 0; padding-left: 0; border-left: none; margin-top: 8px; flex-wrap: wrap; justify-content: center; }
    [dir="rtl"] .lang-selector { margin-right: 0; padding-right: 0; border-right: none; }
}

/* ===== LANGUAGE POPUP ===== */
.lang-popup-overlay {
    display: none; position: fixed; inset: 0; z-index: 99999;
    background: rgba(3,10,6,0.95); backdrop-filter: blur(24px);
    align-items: center; justify-content: center;
    animation: fadeIn 0.4s ease;
}
.lang-popup-overlay.active { display: flex; }
.lang-popup {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 24px; padding: 48px 40px 40px; max-width: 480px; width: 90%;
    text-align: center; position: relative;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 60px rgba(0,255,136,0.08);
    animation: slideUp 0.5s cubic-bezier(0.16,1,0.3,1);
}
.lang-popup-icon {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; font-size: 1.6rem;
}
.lang-popup h3 {
    font-size: 1.4rem; font-weight: 700; margin-bottom: 4px;
    color: var(--text-primary);
}
.lang-popup .lang-popup-sub {
    font-size: 0.8rem; color: var(--text-dim); font-style: italic;
    margin-bottom: 28px;
}
.lang-popup-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
    margin-bottom: 24px;
}
.lang-popup-btn {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: 14px; padding: 16px 8px; cursor: pointer;
    transition: all 0.3s; font-family: inherit;
    color: var(--text-secondary);
}
.lang-popup-btn:hover {
    border-color: var(--accent); background: rgba(0,255,136,0.06);
    color: var(--text-primary); transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,255,136,0.1);
}
.lang-popup-btn .flag { font-size: 1.8rem; line-height: 1; }
.lang-popup-btn .lang-name { font-size: 0.78rem; font-weight: 600; }
.lang-popup-btn .lang-native { font-size: 0.65rem; color: var(--text-dim); margin-top: -2px; }
@media (max-width: 480px) {
    .lang-popup-grid { grid-template-columns: repeat(2, 1fr); }
    .lang-popup { padding: 36px 24px 28px; }
}
