div#footer {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#footer-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

div#footer.open #footer-actions {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#footer-toggle i {
    transition: transform 0.2s ease;
}

div#footer.open #footer-toggle i {
    transform: rotate(45deg);
}

.footerbtn {
    background-color: var(--c-primary);
    border: none;
    color: #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

.footerbtn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.55);
}

.footerbtn:active {
    transform: scale(0.94);
}
