.mp_share_modal[hidden] {
    display: none !important;
}

.mp_share_modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.mp_share_modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(6px);
    cursor: pointer;
}

.mp_share_modal__dialog {
    position: relative;
    z-index: 2;
    width: min(420px, calc(100% - 32px));
    margin: 100px auto 0;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.65);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18), 0 8px 24px rgba(15, 23, 42, 0.08);
    overflow: visible;
    padding: 22px;
}

.mp_share_modal__arrow {
    position: absolute;
    top: -10px;
    left: 56px;
    width: 20px;
    height: 20px;
    background: rgba(255,255,255,0.94);
    border-left: 1px solid rgba(255,255,255,0.65);
    border-top: 1px solid rgba(255,255,255,0.65);
    transform: rotate(45deg);
    box-shadow: -6px -6px 18px rgba(15, 23, 42, 0.04);
}

.mp_share_modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.mp_share_modal__title {
    margin: 0;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 500;
    color: #28495a;
    letter-spacing: -0.02em;
}

.mp_share_modal__close {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: rgba(40, 73, 90, 0.08);
    color: #28495a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .25s ease;
    cursor: pointer;
}

.mp_share_modal__close:hover {
    background: rgba(40, 73, 90, 0.14);
    transform: rotate(90deg);
}

.mp_share_modal__body {
    display: grid;
    gap: 18px;
}

.mp_share_modal__socials {
    display: grid;
    gap: 10px;
}

.mp_share_social {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 58px;
    padding: 0 16px;
    text-decoration: none;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(40, 73, 90, 0.08);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.mp_share_social:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.10);
    border-color: rgba(40, 73, 90, 0.16);
}

.mp_share_social__icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(40, 73, 90, 0.06);
    font-size: 15px;
    flex: 0 0 34px;
}

.mp_share_social__text {
    font-size: 18px;
    font-weight: 400;
    color: #8d8d8d;
}

.mp_share_social--facebook .mp_share_social__icon { color: #1877f2; }
.mp_share_social--twitter .mp_share_social__icon { color: #1d9bf0; }
.mp_share_social--linkedin .mp_share_social__icon { color: #0a66c2; }
.mp_share_social--whatsapp .mp_share_social__icon { color: #25d366; }
.mp_share_social--telegram .mp_share_social__icon { color: #229ed9; }
.mp_share_social--email .mp_share_social__icon { color: #d97706; }

.mp_share_modal__copy_wrap {
    padding-top: 6px;
    border-top: 1px solid rgba(40, 73, 90, 0.08);
}

.mp_share_modal__copy_box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(40, 73, 90, 0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.mp_share_modal__input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #5f6b76;
    font-size: 14px;
    padding: 8px 10px;
}

.mp_share_modal__copy_btn {
    border: 0;
    border-radius: 12px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #28495a 0%, #3f677b 100%);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .02em;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
    box-shadow: 0 10px 22px rgba(40, 73, 90, 0.22);
}

.mp_share_modal__copy_btn:hover {
    transform: translateY(-1px);
}

body.mp_modal_open {
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .mp_share_modal__dialog {
        width: calc(100% - 20px);
        margin-top: 72px;
        padding: 18px;
        border-radius: 18px;
    }

    .mp_share_modal__title {
        font-size: 24px;
    }

    .mp_share_social {
        min-height: 54px;
        padding: 0 14px;
    }

    .mp_share_social__text {
        font-size: 16px;
    }

    .mp_share_modal__copy_box {
        flex-direction: column;
        align-items: stretch;
    }

    .mp_share_modal__copy_btn {
        width: 100%;
    }
}