body {
    font-family: Arial, sans-serif;
    background: #f2f2f2;
    padding: 2rem;
}

.share-btn {
    background: #0073e6;
    color: #fff;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
}

/* Overlay */
.share-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

/* Modal */
.share-modal {
    background: #fff;
    width: 100%;
    max-width: 420px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    overflow: hidden;
}

/* Header */
.share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #eee;
}

    .share-header h3 {
        margin: 0;
        font-size: 1.2rem;
    }

.share-icon {
   font-size: 1.5rem;
}

.share-item .fa-whatsapp {
    color: #25D366
}
.share-item .fa-envelope {
    color: #456990
}
.share-item .fa-square-facebook {
    color: #1877F2
}
.share-item .fa-linkedin {
    color: #0A66C2
}
.share-item .fa-copy {}

.close-btn {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #666;
}

/* List */
.share-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.share-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    cursor: pointer;
    background-color: #ffffff;
    transition: background-color 0.2s ease;
}

.share-item:hover,
.share-item:focus-visible {
    background-color: #ddd; /* slightly darker */
}

    .share-item svg {
        width: 26px;
        height: 26px;
        flex-shrink: 0;
    }

.share-text {
    font-size: 1rem;
    color: #333;
}

.share-item + .share-item {
    border-top: 1px solid #eee;
}

@media (max-width: 480px) {
    .share-modal {
        max-width: 95%;
        border-radius: 14px;
    }
}

/* =========================================================
   MOBILE BOTTOM-SHEET BEHAVIOUR (extends existing styles)
   ========================================================= */

/* Enable animation */
.share-modal {
    transform: translateY(0);
    transition: transform 0.25s ease;
}

/* Mobile bottom sheet */
@media (max-width: 600px) {
    .share-overlay {
        align-items: flex-end;
    }

    .share-modal {
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        transform: translateY(100%);
    }

    .share-overlay.active .share-modal {
        transform: translateY(0);
    }
}

/* =========================================================
   COPY LINK TOAST
   ========================================================= */

.share-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #333;
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 2000;
}

    .share-toast.show {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
