/* ======================= SUPPORT POPOVER ======================= */

#support-popover {
    display: none;
    position: fixed;
    left: calc(var(--small-sidebar-width) + 10px);
    bottom: 12px;
    width: 310px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.18), 0 2px 8px 0 rgba(0, 0, 0, 0.10);
    padding: 16px 18px 18px;
    z-index: 500;
    flex-direction: column;
    gap: 12px;
    animation: popoverIn 0.18s ease;
}

#support-popover.open {
    display: flex;
}

#support-popover.support-popover--center {
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    animation: supportPanelIn 0.18s ease;
}

@keyframes popoverIn {
    from { opacity: 0; transform: translateX(-6px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes supportPanelIn {
    from { opacity: 0; transform: translate(-50%, -48%); }
    to   { opacity: 1; transform: translate(-50%, -50%); }
}

#support-popover-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 998;
}

#support-popover-backdrop.open {
    display: block;
}

#support-popover-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--text-tertiary);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.15s ease;
}

#support-popover-close:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
}

.support-popover-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 7px;
    padding-right: 20px;
}

.support-popover-intro {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.support-go-donate {
    width: 100%;
    margin-top: 2px;
}

#support-btn:hover i {
    color: #e05a5a;
    animation: heartbeat 0.6s ease;
}

@keyframes heartbeat {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.3); }
    60%  { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@media (max-width: 1280px) {
    #support-popover:not(.support-popover--center) {
        left: 16px;
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom));
        width: auto;
        max-width: 360px;
    }
}
