.lustia-sc-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: auto;
    padding: 14px 20px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    box-shadow: none;
    line-height: 1;
}

.lustia-sc-share-btn--secondary {
    background: #f9fafb;
    color: #111827;
    border: 1px solid #e5e7eb;
}
.lustia-sc-share-btn--secondary:hover {
    background: #f3f4f6;
    color: #111827;
    border-color: #d1d5db;
}

.lustia-sc-share-btn--primary {
    background: #111827;
    color: #fff;
    border: 0;
}
.lustia-sc-share-btn--primary:hover {
    background: #000;
    color: #fff;
}

.lustia-sc-share-btn svg {
    flex-shrink: 0;
}

/* Quick-actions integration: when used inside .quick-actions, fill the row */
.quick-actions .lustia-sc-share-btn {
    width: 100%;
}

/* Modal */
.lustia-sc-share-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 6vh 20px 20px;
}
.lustia-sc-share-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
}
.lustia-sc-share-modal__panel {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 22px 22px 18px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-height: 92vh;
    overflow-y: auto;
}
.lustia-sc-share-modal__panel h3 {
    margin: 0 0 14px;
    padding-right: 40px;
    font-size: 17px;
    font-weight: 800;
    color: #111827;
}
.lustia-sc-share-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: 0;
    background: #111827;
    color: #fff;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s ease, transform 0.15s ease;
    z-index: 2;
}
.lustia-sc-share-modal__close:hover {
    background: #000;
    transform: scale(1.05);
}
.lustia-sc-share-modal__preview-wrap {
    position: relative;
    width: 100%;
    margin-bottom: 14px;
    border-radius: 12px;
    overflow: hidden;
    min-height: 80px;
}
.lustia-sc-share-modal__preview {
    width: 100%;
    max-height: 44vh;
    border-radius: 12px;
    display: block;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.lustia-sc-share-modal__preview.is-loaded {
    opacity: 1;
}
.lustia-sc-share-modal__loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #f9fafb;
    border-radius: 12px;
    min-height: 280px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
}
.lustia-sc-share-modal__loading.is-hidden {
    display: none;
}
.lustia-sc-share-modal__spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e5e7eb;
    border-top-color: #111827;
    border-radius: 50%;
    animation: lustia-sc-spin 0.8s linear infinite;
}
@keyframes lustia-sc-spin {
    to { transform: rotate(360deg); }
}
.lustia-sc-share-modal__url {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.lustia-sc-share-modal__url input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 13px;
    background: #f9fafb;
    color: #111827;
}
.lustia-sc-share-modal__url button {
    background: #111827;
    color: #fff;
    border: 0;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}
.lustia-sc-share-modal__socials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.lustia-sc-share-modal__socials a {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 10px 6px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: #111827;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.lustia-sc-share-modal__socials a:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}
@media (max-width: 480px) {
    .lustia-sc-share-modal__socials {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* "More share options…" row — matches social pill styling, spans full width */
.lustia-sc-share-modal__more {
    margin-top: 8px;
}
.lustia-sc-share-native {
    display: block;
    width: 100%;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 10px 6px;
    border-radius: 10px;
    text-align: center;
    color: #111827;
    font-weight: 600;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    line-height: 1.4;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.lustia-sc-share-native:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}
