/* Styl dla interaktywnego panelu porównania sterowników Sonfy GSM */
:root {
    --bg-body: #13141f;
    --card-bg: rgba(26, 28, 43, 0.75);
    --card-border: rgba(255, 255, 255, 0.08);
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    --accent-amber: #f59e0b;
    --accent-emerald: #10b981;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glow-blue: rgba(59, 130, 246, 0.25);
}

.compare-page {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 4rem;
}

/* Górny pasek nawigacyjny */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--card-border);
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.btn-nav:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.5);
    color: #60a5fa;
    transform: translateY(-2px);
}

.btn-nav-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-color: #3b82f6;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

.btn-nav-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    border-color: #60a5fa;
    color: #ffffff;
}

/* Nagłówek strony */
.compare-header {
    text-align: center;
    margin-bottom: 2.75rem;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
    margin-bottom: 0.75rem;
}

.compare-header h1 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
}

.compare-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto;
}

/* Jednolite sekcje panelu */
.panel-section,
.gsm-section {
    margin-bottom: 2.75rem;
}

/* Karty modeli w rzędzie */
.models-grid {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 0;
    animation: accFadeIn 0.3s ease-out;
}
.models-grid.section-expanded {
    display: grid;
}

.model-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

.model-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-blue);
    opacity: 0.7;
    transition: opacity 0.3s;
}

.model-card[data-model="ac100"]::before { background: #38bdf8; }
.model-card[data-model="ac200"]::before { background: #3b82f6; }
.model-card[data-model="ac500t"]::before { background: #f59e0b; }
.model-card[data-model="ac800"]::before { background: #8b5cf6; }

.model-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.model-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    width: fit-content;
    margin-bottom: 0.75rem;
}

.badge-ac100 { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.badge-ac200 { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-ac500t { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-ac800 { background: rgba(139, 92, 246, 0.15); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.3); }

.model-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.model-cap-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.model-desc-short {
    font-size: 0.88rem; table-layout: fixed;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 1.25rem;
    min-height: 50px;
}

.model-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    font-size: 0.82rem;
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.model-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.35;
}

.model-features-list li i {
    flex-shrink: 0;
    margin-top: 2px;
}

.btn-card-launch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--card-border);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-card-launch:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #ffffff;
    box-shadow: 0 6px 20px var(--glow-blue);
}

/* Główna tabela porównawcza */
.table-section {
    margin-bottom: 3.5rem;
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0;
    cursor: default;
}

/* Toggle przycisk sekcji */
.acc-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    width: 215px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 8px;
    color: #60a5fa;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    user-select: none;
    box-sizing: border-box;
}
.acc-toggle-btn:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.7);
    color: #93c5fd;
}
.acc-toggle-btn svg {
    transition: transform 0.3s ease;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}
.acc-toggle-btn.open svg {
    transform: rotate(180deg);
}



.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.table-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow-x: auto;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.88rem; table-layout: fixed;
}

.compare-table th, .compare-table td {
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.compare-table th {
    background: rgba(15, 17, 26, 0.8);
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    position: sticky;
    top: 0;
    z-index: 10;
}

.compare-table th.col-feature {
    width: 28%;
}

.compare-table th.col-model {
    width: 18%;
    text-align: center;
}

.compare-table tr.category-header td {
    background: rgba(59, 130, 246, 0.08);
    color: #60a5fa;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
}

.compare-table td.cell-center {
    text-align: center;
}

.compare-table tr:hover:not(.category-header) td {
    background: rgba(255, 255, 255, 0.02);
}

.check-yes {
    color: #10b981;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.check-no {
    color: #ef4444;
    font-weight: 600;
    opacity: 0.85;
}

.pill-opt {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
}

.pill-tag-sub {
    font-size: 0.76rem;
    color: #94a3b8;
    display: block;
    margin-top: 0.2rem;
}

/* Sekcja doradcy inwestycyjnego (Kafelki wyboru) */
.advisor-section {
    margin-bottom: 2.75rem;
}

.advisor-grid {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 0;
    animation: accFadeIn 0.3s ease-out;
}
.advisor-grid.section-expanded {
    display: grid;
}

.advisor-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.advisor-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}


.advisor-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.advisor-rec {
    font-size: 0.8rem;
    font-weight: 700;
    color: #38bdf8;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
}

.advisor-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* Baner pobierania PDF */
.pdf-cta-banner {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.pdf-cta-content h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.pdf-cta-content p {
    font-size: 1rem;
    color: #cbd5e1;
    max-width: 600px;
    line-height: 1.5;
}

/* Responsywność */
@media (max-width: 1240px) {
    .models-grid, .advisor-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .models-grid, .advisor-grid {
        grid-template-columns: 1fr;
    }
    .pdf-cta-banner {
        flex-direction: column;
        text-align: center;
    }
    .top-nav {
        flex-direction: column;
        gap: 1rem;
    }
    .compare-header h1 {
        font-size: 1.8rem;
    }
}

body.compare-body {
    display: block !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    overflow-y: auto !important;
}

/* Sekcja pozostałych urządzeń (SBW-01, CTW-01) */
.other-devices-section {
    margin-bottom: 2.75rem;
}

.other-devices-grid {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 0;
    animation: accFadeIn 0.3s ease-out;
}
.other-devices-grid.section-expanded {
    display: grid;
}

.other-device-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    backdrop-filter: blur(16px);
    transition: all 0.3s ease;
}

.other-device-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.other-device-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.other-device-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.other-device-texts h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.other-device-texts p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.btn-other-launch {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--card-border);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.btn-other-launch:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}

@media (max-width: 768px) {
    .other-devices-grid {
        grid-template-columns: 1fr;
    }
    .other-device-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .btn-other-launch {
        width: 100%;
        justify-content: center;
    }
}

/* Sekcja Sonfy Accessories™ */
.accessories-section {
    margin-bottom: 2.75rem;
}

.accessories-grid {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 0;
    animation: accFadeIn 0.3s ease-out;
}

.accessories-grid.section-expanded,
.accessories-grid.acc-expanded {
    display: grid;
}

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

.acc-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.35rem 1.4rem;
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.acc-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    opacity: 0.6;
    transition: opacity 0.3s;
}

.acc-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.acc-card:hover::before {
    opacity: 1;
}

.acc-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.acc-code-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 800;
    color: #ffffff;
    background: rgba(59, 130, 246, 0.18);
    border: 1px solid rgba(59, 130, 246, 0.35);
    padding: 0.25rem 0.65rem;
    border-radius: 8px;
    letter-spacing: 0.03em;
}

.acc-target-pill {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #60a5fa;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
}

.acc-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.45rem;
}

.acc-desc {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin-bottom: 0.85rem;
}

.acc-footer-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: #10b981;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    width: fit-content;
}

@media (max-width: 1024px) {
    .accessories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .accessories-grid {
        grid-template-columns: 1fr;
    }
    .acc-toggle-btn {
        width: 100%;
    }
}

/* Interaktywne kafelki akcesoriów jako linki */
.acc-link {
    text-decoration: none;
    cursor: pointer;
    color: inherit;
    display: flex;
}

.acc-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #38bdf8;
    margin-top: 0.6rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.acc-card:hover .acc-card-cta {
    color: #60a5fa;
    transform: translateX(4px);
}

/* Kursor wskaźnika dla kontenerów modeli */
.model-card, .other-device-card {
    cursor: pointer;
}

.model-card .btn-card-launch, .other-device-card .btn-other-launch {
    cursor: pointer;
}

/* Modal wyboru akcji dla urządzenia */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 11, 18, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 1.25rem;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-dialog {
    background: linear-gradient(135deg, rgba(26, 28, 43, 0.98), rgba(18, 19, 30, 0.98));
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 20px;
    padding: 2.2rem;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(59, 130, 246, 0.2);
    position: relative;
    transform: scale(0.94);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-dialog {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.modal-device-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-device-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #38bdf8;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.modal-device-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.modal-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.75rem;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.95rem 1.4rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.25s ease;
}

.modal-btn-launch {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: 1px solid #3b82f6;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.modal-btn-launch:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    border-color: #60a5fa;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

.modal-btn-offer {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: #ffffff;
}

.modal-btn-offer:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.5);
    color: #60a5fa;
    transform: translateY(-2px);
}

/* Przełącznik języków w górnym pasku */
.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    background: transparent !important;
    border: none !important;
    border-radius: 0;
    backdrop-filter: none !important;
    box-shadow: none !important;
}

.language-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    margin: 0;
    border: 2px solid transparent !important;
    border-radius: 8px;
    background: transparent !important;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.65;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease, border-color 0.2s ease;
    user-select: none;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}

.language-flag:hover {
    opacity: 1;
    background: transparent !important;
    transform: scale(1.22);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
}

.language-flag.active {
    opacity: 1;
    background: transparent !important;
    border-color: rgba(59, 130, 246, 0.85) !important;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.7));
    transform: scale(1.15);
}
