.card.shareable {
    position: relative;
    overflow: visible;
}

/* 3-dot button */
.share-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(0,0,0,0.06);
    padding: 6px 8px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

    .share-btn:focus {
        outline: 3px solid rgba(66,153,225,0.35);
    }

/* popup panel */
.share-panel {
    position: absolute;
    top: 50px;
    right: 12px;
    min-width: 220px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.04);
    transform-origin: top right;
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    transition: transform .12s ease, opacity .12s ease;
    z-index: 30;
}

    /* visible */
    .share-panel.open {
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
    }

/* list items */
.share-actions {
    display: flex;
    flex-direction: column;
    /*gap: 8px;*/
}

    .share-actions button, .share-actions svg {
        color: rgb(0, 130, 238);
    }

    .share-actions button, .share-actions a {
        padding: 4px;
        margin: 4px;
        border: none;
        background: transparent;
        cursor: pointer;
        text-decoration: none;
        color: inherit;
        font-size: 14px;
        width: 100%;
        text-align: center;
        color: #000 !important;
    }

        .share-actions button:hover, .share-actions a:hover {
            background: rgba(0,0,0,0.04);
        }

    .share-actions .social-links {
        display: flex;
        padding: 0 5px;
    }

    .share-actions .social-links a {
        background: rgb(0, 130, 238);
        border-radius: 50px;
        color: #fff;
    }

    .share-actions .social-links svg {
        color: #fff;
    }

.share-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* small icon sizing */
.icon {
    width: 18px;
    height: 18px;
    display: inline-block;
}

/* feedback */
.copied-note {
    font-size: 12px;
    color: #0f5132;
    background: #d1e7dd;
    padding: 6px 8px;
    border-radius: 6px;
    display: none;
}

    .copied-note.show {
        display: inline-block;
    }

/* keep panel accessible on small screens */
@media (max-width:420px) {
    .share-panel {
        right: 8px;
        left: 8px;
        min-width: unset;
    }
}
