.help-btn-float {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 7px 14px;
    font-size: 0.9rem;
    font-weight: bold;
    background-color: #fff;
    color: #000;
    position: fixed;
    bottom: 0;
    right: 20px;
    border-top: 1px solid rgba(200, 200, 200, 0.6);
    border-left: 1px solid rgba(200, 200, 200, 0.6);
    border-right: 1px solid rgba(200, 200, 200, 0.6);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    z-index: 9999;
    cursor: pointer;
    text-decoration: none;
    user-select: none;
}

.help-btn-float:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.help-btn-emoji {
    display: inline;
    margin-right: 2px;
    font-style: normal;
}

.help-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.help-modal-overlay.active {
    display: flex;
}

.help-modal {
    background: #fff;
    border-radius: 16px;
    width: 94%;
    max-width: 500px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
}

.help-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.help-modal-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
}

.help-modal-close {
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0 4px;
    border-radius: 8px;
}

.help-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.help-modal-content {
    flex: 1;
    overflow-y: auto;
    background: #eaeaea;
    padding: 16px 20px 8px;
}

.help-modal-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff;
    border-radius: 14px;
    padding: 14px 12px;
    margin-bottom: 14px;
    text-decoration: none;
    color: #000;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    transition: background 0.15s;
}

.help-modal-item:hover {
    background: #6ebaff;
    color: #fff;
}

.help-modal-item-icon {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
}

.help-modal-item-title {
    font-weight: 700;
    font-size: 0.98rem;
    margin-bottom: 4px;
}

.help-modal-item-desc {
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.82;
    line-height: 1.4;
}

.help-modal-bottom {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: #000;
    font-size: 0.92rem;
    border-top: 1px solid #eee;
}

.help-modal-bottom:hover {
    background-color: #6ebaff;
    color: #fff;
}

.help-modal-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.help-modal-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

.help-modal-online-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background-color: rgb(91, 187, 91);
    border-radius: 50%;
    border: 2px solid #fff;
}

.help-modal-tg-icon {
    width: 14px;
    height: 14px;
    margin: 0 3px;
    vertical-align: -2.5px;
    filter: brightness(0);
    transition: filter 0s;
}

.help-modal-bottom:hover .help-modal-tg-icon {
    filter: brightness(0) invert(1);
}

@media only screen and (max-width: 635px) {
    .help-btn-float {
        transform: rotate(270deg);
        position: fixed;
        bottom: 20vh;
        right: -26px;
        opacity: 0.85;
        padding-left: 27px;
        border-radius: 10px 10px 0 0;
    }

    .help-btn-emoji {
        transform: rotate(90deg);
        position: absolute;
        margin-left: -20px;
    }

    .help-modal {
        width: 96%;
        max-height: 90vh;
        border-radius: 12px;
    }

    .help-modal-content {
        padding: 10px 14px 4px;
    }

    .help-modal-item {
        padding: 10px 10px;
        margin-bottom: 10px;
    }
}
