
.share-popup {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.share-popup.hidden {
    display: none;
}

.share-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.56);
    backdrop-filter: blur(4px);
}

.share-popup__dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 460px;
}

.share-popup__card {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    border: 1px solid #e8ecf7;
    border-radius: 26px;
    padding: 24px;
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.22);
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}

.share-popup__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 1rem;
    cursor: pointer;
    transition: all .2s ease;
}

.share-popup__close:hover {
    background: #eef2ff;
    color: #2563eb;
}

.share-popup__header {
    text-align: center;
    padding: 6px 10px 18px;
    border-bottom: 1px solid #edf1f7;
}

.share-popup__icon-wrap {
    width: 84px;
    height: 84px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
    border: 1px solid #dbe7ff;
}

.share-popup__icon {
    width: 48px;
    height: auto;
    display: block;
}

.share-popup__title {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

.share-popup__subtitle {
    margin: 0;
    color: #64748b;
    font-size: .92rem;
    line-height: 1.6;
}

.share-popup__body {
    padding-top: 18px;
}

.share-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 16px;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 700;
    transition: all .2s ease;
    border: 1px solid transparent;
}

.share-btn:hover {
    transform: translateY(-1px);
}

.share-btn--facebook {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #dbeafe;
}

.share-btn--x {
    background: #f8fafc;
    color: #0f172a;
    border-color: #e2e8f0;
}

.share-btn--linkedin {
    background: #eff6ff;
    color: #0a66c2;
    border-color: #dbeafe;
}

.share-btn--whatsapp {
    background: #ecfdf5;
    color: #16a34a;
    border-color: #d1fae5;
}

.share-btn--email {
    background: #fff1f2;
    color: #e11d48;
    border-color: #ffe4e6;
}

.share-btn--pinterest {
    background: #fdf2f8;
    color: #db2777;
    border-color: #fce7f3;
}

.share-popup__footer {
    padding-top: 18px;
    display: flex;
    justify-content: center;
}

.share-popup__footer-close {
    background: transparent;
    color: #64748b;
    font-weight: 700;
    font-size: .88rem;
    border: none;
    cursor: pointer;
    transition: color .2s ease;
}

.share-popup__footer-close:hover {
    color: #0f172a;
}

@media (max-width: 640px) {
.share-popup {
        padding: 12px;
        align-items: center;
        justify-content: center;
    }


    .share-popup__dialog {
        width: 100%;
        max-width: 100%;
        max-height: calc(100vh - 24px);
    }

    .share-popup__card {
        width: 100%;
        max-height: calc(100vh - 24px);
        overflow-y: auto;
        border-radius: 22px 22px 18px 18px;
        padding: 18px 16px;
    }

    .share-popup__icon-wrap {
        width: 72px;
        height: 72px;
        border-radius: 18px;
        margin-bottom: 12px;
    }

    .share-popup__icon {
        width: 40px;
    }

    .share-popup__title {
        font-size: 1rem;
    }

    .share-popup__subtitle {
        font-size: .88rem;
    }

    .share-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .share-btn {
        width: 100%;
        min-height: 44px;
        border-radius: 14px;
        font-size: .88rem;
    }

    .share-popup__footer {
        padding-top: 14px;
    }

    .share-popup__footer-close {
        width: 100%;
        min-height: 42px;
        border-radius: 999px;
        background: #f8fafc;
    }
}