.ripro-zib-share {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(17, 19, 25, .68);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility .22s ease;
}
.ripro-zib-share.show { opacity: 1; visibility: visible; }
.ripro-zib-share-dialog {
    position: relative;
    width: min(800px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    border-radius: 22px;
    background: var(--bs-body-bg, #fff);
    box-shadow: 0 22px 70px rgba(0, 0, 0, .25);
    transform: translateY(18px) scale(.98);
    transition: transform .25s cubic-bezier(.2, .8, .2, 1);
    margin: auto;
}
.ripro-zib-share.show .ripro-zib-share-dialog { transform: translateY(0) scale(1); }
.ripro-zib-share-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    color: #947a3d;
    background: rgba(255,255,255,.42);
    font-size: 20px;
}
.ripro-zib-share-head {
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: #876d31;
    background: radial-gradient(circle at 78% 0, rgba(255,255,255,.42) 0 24%, transparent 24.5%), linear-gradient(145deg, #f9e9bc, #e9c56e);
}
.ripro-zib-share-head > i { font-size: 58px; }
.ripro-zib-share-head h3 { margin: 0; font-size: 30px; font-weight: 500; }
.ripro-zib-share-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 28px 18px;
    padding: 42px 48px 34px;
}
.ripro-zib-share-item { color: var(--bs-body-color, #555); text-align: center; text-decoration: none; }
.ripro-zib-share-item span {
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(128,128,128,.08);
    font-size: 34px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.ripro-zib-share-item:hover span { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.ripro-zib-share-item b { display: block; margin-top: 10px; font-size: 15px; font-weight: 500; }
.ripro-zib-share-item.is-qq i { color:#111; }
.ripro-zib-share-item.is-qzone i { color:#f5c22b; }
.ripro-zib-share-item.is-weibo i { color:#e54d42; }
.ripro-zib-share-item.is-facebook i { color:#3d78df; }
.ripro-zib-share-item.is-whatsapp i,.ripro-zib-share-item.is-line i { color:#52bd3d; }
.ripro-zib-share-item.is-reddit i { color:#e85c20; }
.ripro-zib-share-item.is-linkedin i { color:#3478b8; }
.ripro-zib-share-item.is-email i { color:#66727e; }
.ripro-zib-share-item.is-vk i { color:#477fbc; }
.ripro-zib-share-item.is-telegram i { color:#4a9fd8; }
.ripro-zib-share-item.is-twitter i { color:#111; font-family: Arial, sans-serif; font-style: normal; font-weight: 700; }
.ripro-zib-share-item.is-twitter i:before { content: 'X'; }
.ripro-zib-share-item.is-poster i { color:#e6a54e; }
.ripro-zib-share-item.is-copy i { color:#56a3ce; }
.ripro-zib-share-footer { margin: 0 32px 26px; color: #9298a1; text-align: center; font-size: 13px; }
body.ripro-share-open { overflow: hidden; }

.ripro-zib-poster {
    position: fixed;
    inset: 0;
    z-index: 100060;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(16, 18, 23, .78);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility .22s ease;
}
.ripro-zib-poster.show { opacity: 1; visibility: visible; }
.ripro-zib-poster-dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(570px, 100%);
    max-height: calc(100vh - 30px);
    overflow: hidden;
    border-radius: 18px;
    background: var(--bs-body-bg, #fff);
    box-shadow: 0 24px 80px rgba(0,0,0,.34);
    margin: auto;
}
.ripro-zib-poster-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(0,0,0,.48);
}
.ripro-zib-poster-stage {
    position: relative;
    min-height: 360px;
    overflow: auto;
    padding: 18px;
    background: #eef0f4;
    text-align: center;
}
.ripro-zib-poster-loading {
    min-height: 330px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #747b86;
}
.ripro-zib-poster-loading i { color: #0d6efd; font-size: 36px; }
.ripro-zib-poster-result { line-height: 0; }
.ripro-zib-poster-image {
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 150px);
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(0,0,0,.16);
}
.ripro-zib-poster-error {
    display: flex;
    min-height: 0;
    align-items: center;
    justify-content: center;
    color: #e55353;
    line-height: 1.7;
}
.ripro-zib-poster-error:not(:empty) { min-height: 330px; }
.ripro-zib-poster-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 12px 18px;
    background: var(--bs-body-bg, #fff);
}
.ripro-zib-poster-actions a,
.ripro-zib-poster-actions button {
    min-width: 108px;
    padding: 9px 18px;
    border: 0;
    border-radius: 22px;
    text-align: center;
    text-decoration: none;
}
.ripro-zib-poster-download { color: #fff; background: #1677ff; }
.ripro-zib-poster-download:hover { color: #fff; background: #0b65dc; }
.ripro-zib-poster-cancel { color: #5d6470; background: #eceef2; }

.custom-translate-menu.is-loading .menu-inner { opacity: .48; pointer-events: none; }
.custom-translate-menu.is-loading:after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 24px;
    height: 24px;
    margin: -12px;
    border: 2px solid rgba(30,110,255,.2);
    border-top-color: #1e6eff;
    border-radius: 50%;
    animation: ripro-zib-spin .7s linear infinite;
}
.translate-item.active { color: #1e6eff; background: rgba(30,110,255,.08); }
@keyframes ripro-zib-spin { to { transform: rotate(360deg); } }

@media (max-width: 767px) {
    .ripro-zib-share { align-items: flex-end; padding: 0; }
    .ripro-zib-share-dialog { width: 100%; max-height: 86vh; border-radius: 22px 22px 0 0; }
    .ripro-zib-share-head { min-height: 130px; gap: 8px; }
    .ripro-zib-share-head > i { font-size: 36px; }
    .ripro-zib-share-head h3 { font-size: 22px; }
    .ripro-zib-share-close { top: 12px; right: 12px; }
    .ripro-zib-share-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 8px; padding: 28px 14px 22px; }
    .ripro-zib-share-item span { width: 58px; height: 58px; font-size: 27px; }
    .ripro-zib-share-item b { margin-top: 7px; font-size: 12px; }
    .ripro-zib-poster { align-items: flex-end; padding: 0; }
    .ripro-zib-poster-dialog { width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; }
    .ripro-zib-poster-stage { padding: 12px; }
    .ripro-zib-poster-image { max-height: calc(92vh - 72px); }
}
@media (max-width: 390px) {
    .ripro-zib-share-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .ripro-zib-share-item span { width: 52px; height: 52px; }
}
