/* ── Profile menu ───────────────────────────────────────────── */
.profile-menu {
    margin-left: auto;
    position: relative;
}

.profile-menu-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: .9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: 0;
    transition: color .15s;
}

.profile-menu-btn:hover { color: var(--text); }

.profile-menu-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 160px;
    padding: .35rem;
    z-index: 100;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    width: 100%;
    padding: .45rem .65rem;
    font-size: .875rem;
    font-weight: 400;
    color: var(--text);
    background: none;
    border: none;
    border-radius: 7px;
    text-align: left;
    cursor: pointer;
    transition: background .15s;
}

.profile-menu-item:hover { background: var(--surface-2); }

.profile-menu-item--signout:hover {
    color: var(--red);
    background: rgba(224,85,85,.08);
}

.profile-menu-item--danger:hover {
    color: var(--red);
    background: rgba(224,85,85,.1);
}

.upload-countdown {
    color: var(--text-muted);
    font-size: .9rem;
    margin-top: .5rem;
}

.upload-countdown-dots span {
    animation: dot-fade 1.2s infinite;
    opacity: 0;
}

.upload-countdown-dots span:nth-child(2) { animation-delay: .3s; }
.upload-countdown-dots span:nth-child(3) { animation-delay: .6s; }

@keyframes dot-fade {
    0%, 100% { opacity: 0; }
    50%       { opacity: 1; }
}


@media (max-width: 600px) {
    .profile-menu {
        margin-left: auto;
    }
}
