/* Focused, two-column footer navigation shared by all public pages. */
.footer__menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(28px, 6vw, 84px);
    row-gap: 30px;
}

.footer__menu .footer__items-1,
.footer__menu .footer__items-2 {
    grid-column: auto;
    grid-row: auto;
    padding-left: 0;
}

@media (max-width: 767.98px) {
    .footer__menu {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 25px;
    }

    .footer__menu .footer__items {
        grid-column: 1;
    }
}

.envyme-support {
    position: fixed;
    right: 24px;
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    font-family: Montserrat, Arial, sans-serif;
}

.envyme-support__toggle {
    display: flex;
    width: 62px;
    height: 62px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 216, 12, .55);
    border-radius: 50%;
    background: linear-gradient(145deg, #65167b, #2a0734 78%);
    box-shadow: 0 0 24px rgba(222, 20, 255, .38), 0 8px 26px rgba(0, 0, 0, .42);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.envyme-support__toggle:hover,
.envyme-support__toggle:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(222, 20, 255, .55), 0 10px 30px rgba(0, 0, 0, .48);
}

.envyme-support__toggle:focus-visible,
.envyme-support__close:focus-visible,
.envyme-support__compose button:focus-visible {
    outline: 2px solid #ffd80c;
    outline-offset: 3px;
}

.envyme-support__toggle img {
    width: 29px;
    height: 26px;
    filter: brightness(0) invert(1);
}

.envyme-support__panel {
    display: flex;
    width: min(370px, calc(100vw - 32px));
    height: min(520px, calc(100vh - 116px));
    height: min(520px, calc(100dvh - 116px));
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(222, 20, 255, .35);
    border-radius: 18px;
    background: #160e1a;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .58), 0 0 34px rgba(222, 20, 255, .18);
    color: #fff;
}

.envyme-support__panel[hidden] {
    display: none;
}

.envyme-support__header {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 17px;
    background: linear-gradient(110deg, #4b0d5d, #26102d);
}

.envyme-support__header h2 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.envyme-support__header p {
    margin: 0;
    color: rgba(255, 255, 255, .76);
    font-size: 12px;
    line-height: 1.4;
}

.envyme-support__close {
    display: flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
}

.envyme-support__messages {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding: 16px 14px;
    overscroll-behavior: contain;
}

.envyme-support__empty {
    max-width: 85%;
    align-self: flex-start;
    margin: auto 0 0;
    padding: 11px 13px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 14px 14px 14px 4px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .92);
    font-size: 13px;
    line-height: 1.5;
}

.envyme-support__message {
    max-width: 86%;
    margin: 0;
    padding: 10px 12px;
    border-radius: 14px;
    color: #fff;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.envyme-support__message--visitor {
    align-self: flex-end;
    border: 1px solid rgba(222, 20, 255, .27);
    border-bottom-right-radius: 4px;
    background: linear-gradient(135deg, #57126b, #381047);
}

.envyme-support__message--support {
    align-self: flex-start;
    border: 1px solid rgba(255, 255, 255, .07);
    border-bottom-left-radius: 4px;
    background: rgba(255, 255, 255, .08);
}

.envyme-support__form {
    padding: 11px 13px 12px;
    border-top: 1px solid rgba(255, 255, 255, .09);
    background: rgba(0, 0, 0, .18);
}

.envyme-support__privacy {
    display: block;
    margin: 0 0 8px;
    color: rgba(255, 255, 255, .58);
    font-size: 10px;
    line-height: 1.35;
}

.envyme-support__compose {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.envyme-support__compose textarea {
    display: block;
    width: 100%;
    min-height: 42px;
    max-height: 110px;
    resize: vertical;
    margin: 0;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 12px;
    outline: none;
    background: rgba(255, 255, 255, .07);
    color: #fff;
    font: inherit;
    font-size: 13px;
    line-height: 1.4;
}

.envyme-support__compose textarea::placeholder {
    color: rgba(255, 255, 255, .48);
}

.envyme-support__compose textarea:focus {
    border-color: rgba(222, 20, 255, .75);
}

.envyme-support__compose button {
    display: flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #de14ff;
    box-shadow: 0 0 15px rgba(222, 20, 255, .35);
    color: white;
    cursor: pointer;
    font-size: 19px;
}

.envyme-support__compose button:disabled {
    cursor: wait;
    opacity: .55;
}

.envyme-support__status {
    min-height: 14px;
    margin: 5px 0 0;
    color: rgba(255, 255, 255, .7);
    font-size: 10px;
    line-height: 1.35;
}

@media (max-width: 767.98px) {
    .envyme-support {
        right: 16px;
        bottom: max(16px, env(safe-area-inset-bottom));
    }

    .envyme-support__toggle {
        width: 56px;
        height: 56px;
    }

    .envyme-support__panel {
        height: min(500px, calc(100vh - 100px));
        height: min(500px, calc(100dvh - 100px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .envyme-support__toggle {
        transition: none;
    }
}
