.df-lang-suggestion {
    position: fixed;
    left: 50%;
    top: 120px;
    transform: translateX(-50%);
    z-index: 999999;
    width: min(760px, calc(100vw - 24px));
    pointer-events: none;
}

.df-lang-suggestion[hidden] {
    display: none !important;
}

.df-lang-suggestion__card {
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    padding: 22px 24px 20px;
    color: #ffffff;
    background:
            radial-gradient(circle at 8% 12%, rgba(232, 24, 34, 0.18), transparent 34%),
            linear-gradient(180deg, rgba(17, 20, 27, 0.97), rgba(8, 10, 15, 0.97));
    border: 1px solid rgba(255, 255, 255, 0.26);
    box-shadow:
            0 26px 80px rgba(0, 0, 0, 0.42),
            0 0 0 1px rgba(232, 24, 34, 0.18),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.df-lang-suggestion__card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
            linear-gradient(90deg, rgba(232, 24, 34, 0.85), transparent 36%) left bottom / 100% 1px no-repeat,
            linear-gradient(180deg, rgba(232, 24, 34, 0.75), transparent 48%) left top / 1px 100% no-repeat;
    opacity: 0.8;
}

.df-lang-suggestion__top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.df-lang-suggestion__context {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
}

.df-lang-suggestion__globe {
    display: inline-flex;
    color: rgba(255, 255, 255, 0.84);
}

.df-lang-suggestion__top-actions {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.df-lang-suggestion__never,
.df-lang-suggestion__close {
    appearance: none;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    transition: color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.df-lang-suggestion__never {
    padding: 0;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.df-lang-suggestion__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 999px;
}

.df-lang-suggestion__never:hover,
.df-lang-suggestion__close:hover {
    color: #ffffff;
}

.df-lang-suggestion__close:hover {
    background: rgba(255, 255, 255, 0.08);
}

.df-lang-suggestion__main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 92px 1fr;
    align-items: center;
    gap: 22px;
}

.df-lang-suggestion__flag-wrap {
    width: 82px;
    height: 82px;
    border-radius: 999px;
    padding: 7px;
    background:
            linear-gradient(135deg, rgba(232, 24, 34, 1), rgba(111, 20, 255, 0.72));
    box-shadow:
            0 14px 34px rgba(232, 24, 34, 0.22),
            inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.df-lang-suggestion__flag-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(10, 12, 18, 0.85);
}

.df-lang-suggestion__content h3 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: clamp(22px, 3vw, 28px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.df-lang-suggestion__content p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15.5px;
    line-height: 1.55;
    font-weight: 500;
    text-transform: none;
}

.df-lang-suggestion__actions {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.df-lang-suggestion__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 18px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
            transform 0.18s ease,
            box-shadow 0.18s ease,
            border-color 0.18s ease,
            background 0.18s ease;
}

.df-lang-suggestion__btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.df-lang-suggestion__btn--primary {
    border: 1px solid rgba(255, 75, 85, 0.72);
    color: #ffffff !important;
    background: linear-gradient(180deg, #ff1c28, #d90814);
    box-shadow:
            0 14px 30px rgba(232, 24, 34, 0.28),
            inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.df-lang-suggestion__btn--primary:hover {
    color: #ffffff !important;
    background: linear-gradient(180deg, #ff303b, #e20d19);
    box-shadow:
            0 18px 36px rgba(232, 24, 34, 0.34),
            inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.df-lang-suggestion__btn--secondary {
    border: 1px solid rgba(255, 255, 255, 0.26);
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.035);
}

.df-lang-suggestion__btn--secondary:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.065);
}

.df-lang-suggestion.is-entering .df-lang-suggestion__card {
    animation: dfLangSuggestionIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.df-lang-suggestion.is-leaving .df-lang-suggestion__card {
    animation: dfLangSuggestionOut 0.22s ease both;
}

@keyframes dfLangSuggestionIn {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes dfLangSuggestionOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-8px) scale(0.985);
    }
}

@media (max-width: 640px) {
    .df-lang-suggestion {
        top: 76px;
        width: calc(100vw - 20px);
    }

    .df-lang-suggestion__card {
        padding: 18px;
        border-radius: 13px;
    }

    .df-lang-suggestion__top {
        margin-bottom: 18px;
    }

    .df-lang-suggestion__main {
        grid-template-columns: 64px 1fr;
        gap: 16px;
    }

    .df-lang-suggestion__flag-wrap {
        width: 62px;
        height: 62px;
        padding: 5px;
    }

    .df-lang-suggestion__content h3 {
        font-size: 20px;
    }

    .df-lang-suggestion__content p {
        font-size: 14px;
    }

    .df-lang-suggestion__actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .df-lang-suggestion__btn {
        min-height: 46px;
    }

    .df-lang-suggestion__never {
        font-size: 12px;
    }
}

@media (max-width: 420px) {
    .df-lang-suggestion__top {
        align-items: flex-start;
    }

    .df-lang-suggestion__top-actions {
        gap: 8px;
    }

    .df-lang-suggestion__never {
        max-width: 110px;
        white-space: normal;
        text-align: right;
        line-height: 1.2;
    }
}

@media (prefers-reduced-motion: reduce) {
    .df-lang-suggestion.is-entering .df-lang-suggestion__card,
    .df-lang-suggestion.is-leaving .df-lang-suggestion__card {
        animation: none;
    }

    .df-lang-suggestion__btn,
    .df-lang-suggestion__never,
    .df-lang-suggestion__close {
        transition: none;
    }
}