/* Shared bars, result items, scrollbars, toast, modal, metrics. */

        .feature-bar {
            height: 10px;
            border-radius: 999px;
            background: rgba(148, 163, 184, 0.18);
            overflow: hidden;
        }
        .feature-bar > span {
            display: block;
            height: 100%;
            border-radius: 999px;
            background: linear-gradient(90deg, #10b981, #34d399, #60a5fa);
        }

        .compare-result-item {
            padding: 14px 16px;
            cursor: pointer;
            border-bottom: 1px solid rgba(255,255,255,0.06);
            transition: background 0.2s ease, transform 0.2s ease;
        }
        .compare-result-item:hover {
            background: rgba(16, 185, 129, 0.12);
            transform: translateX(4px);
        }
        .compare-result-item:last-child { border-bottom: none; }
        .compare-result-main { color: #f8fafc; font-weight: 800; }
        .compare-result-sub { color: #94a3b8; font-size: 13px; margin-top: 4px; }
        .compare-result-badge {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 3px 8px;
            border-radius: 999px;
            border: 1px solid rgba(16,185,129,0.22);
            background: rgba(16,185,129,0.10);
            color: #6ee7b7;
            font-size: 11px;
            font-weight: 800;
        }

        .custom-scroll::-webkit-scrollbar { width: 10px; height: 10px; }
        .custom-scroll::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.28); border-radius: 999px; }
        .custom-scroll::-webkit-scrollbar-track { background: transparent; }

        .toast { animation: toastIn 0.25s ease both; }
        @keyframes toastIn {
            from { opacity: 0; transform: translateY(-8px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .modal-mask {
            position: fixed;
            inset: 0;
            z-index: 50;
            background: rgba(2, 6, 23, 0.78);
            backdrop-filter: blur(12px);
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .metric-card {
            background: rgba(15, 23, 42, 0.78);
            border: 1px solid rgba(148, 163, 184, 0.16);
            border-radius: 22px;
            padding: 18px;
        }

        .ring-score {
            width: 126px;
            height: 126px;
            border-radius: 999px;
            display: grid;
            place-items: center;
            background:
                radial-gradient(closest-side, rgba(2, 6, 23, 0.98) 76%, transparent 77%),
                conic-gradient(#10b981 calc(var(--pct) * 1%), rgba(148, 163, 184, 0.18) 0);
        }

        select, input { color-scheme: dark; }

.language-switcher {
    display: grid;
    grid-template-columns: auto minmax(112px, 150px);
    align-items: center;
    gap: 0.35rem 0.55rem;
    max-width: 360px;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.74);
}

.language-switcher label {
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
}

.language-select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;
    background: rgba(2, 6, 23, 0.88);
    color: #e5e7eb;
    font-weight: 800;
    outline: none;
    padding: 0.45rem 0.7rem;
}

.language-select:focus {
    border-color: rgba(52, 211, 153, 0.68);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.language-notice {
    grid-column: 1 / -1;
    color: #94a3b8;
    font-size: 0.68rem;
    line-height: 1.35;
    margin: 0;
}

@media (max-width: 720px) {
    .language-switcher {
        grid-template-columns: auto minmax(120px, 1fr);
        max-width: 100%;
        width: 100%;
    }
}
