.share-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 16px;
    z-index: 1200;
}

.share-modal.is-hidden {
    display: none;
}

.share-modal-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top, rgba(56, 189, 248, 0.1), transparent 34%),
        radial-gradient(circle at bottom right, rgba(244, 114, 182, 0.09), transparent 30%),
        rgba(8, 12, 20, 0.62);
    backdrop-filter: blur(calc(var(--liquid-glass-blur) * 0.18));
}

.share-modal-card {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: calc(100dvh - 32px);
    display: grid;
    gap: 16px;
    padding: 22px;
    overflow: auto;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08)),
        var(--liquid-glass-surface);
    box-shadow:
        0 28px 72px rgba(5, 10, 20, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
    -webkit-backdrop-filter: blur(calc(var(--liquid-glass-blur) * 0.68)) saturate(var(--liquid-glass-saturation));
    backdrop-filter: blur(calc(var(--liquid-glass-blur) * 0.68)) saturate(var(--liquid-glass-saturation));
}

.share-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.share-modal-head-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.share-modal-head-actions:empty {
    display: none;
}

.share-modal-head-actions button {
    width: auto;
}

.share-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.share-modal-close {
    width: auto;
    min-width: 40px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--liquid-glass-edge) 82%, transparent);
    background: color-mix(in srgb, var(--liquid-glass-surface-soft) 82%, transparent);
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.share-modal-close:hover,
.share-modal-close:focus-visible {
    border-color: color-mix(in srgb, var(--accent-2) 34%, var(--liquid-glass-edge));
    background: color-mix(in srgb, var(--accent-2) 12%, var(--liquid-glass-surface-soft));
}

.share-modal-body {
    display: grid;
    gap: 10px;
}

.share-modal-status {
    font-size: 12px;
    color: var(--muted);
}

.share-modal-status.is-error {
    color: var(--danger);
}

.share-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.share-modal-actions button {
    width: auto;
    max-width: 100%;
}

.share-modal-copy-block {
    gap: 12px;
}

.share-modal-copy-block p {
    margin: 0;
}

.share-modal-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(250, 204, 21, 0.14);
    border: 1px solid rgba(250, 204, 21, 0.32);
    color: #facc15;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.share-modal-lead {
    font-size: 16px;
    line-height: 1.55;
    font-weight: 700;
    color: var(--text);
}

.share-modal-copy {
    font-size: 14px;
    line-height: 1.65;
    color: var(--muted);
}

.share-modal--notice .share-modal-backdrop {
    background:
        radial-gradient(circle at top, rgba(244, 114, 182, 0.12), transparent 36%),
        radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.12), transparent 34%),
        rgba(10, 14, 24, 0.64);
}

.share-modal--notice .share-modal-card {
    width: min(460px, 100%);
}

.share-modal--notice .share-modal-head {
    justify-content: flex-start;
}

.share-modal--notice .share-modal-actions {
    justify-content: stretch;
    margin-top: 4px;
}

.share-modal--notice .share-modal-actions .primary {
    width: 100%;
    min-height: 46px;
    font-size: 15px;
}

body.modal-open {
    overflow: hidden;
}

body.theme-light .share-modal-backdrop {
    background:
        radial-gradient(circle at top, rgba(56, 189, 248, 0.12), transparent 34%),
        radial-gradient(circle at bottom right, rgba(244, 114, 182, 0.08), transparent 30%),
        rgba(241, 245, 249, 0.52);
}

body.theme-light .share-modal-card {
    border-color: rgba(15, 23, 42, 0.1);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.9)),
        var(--liquid-glass-surface);
    box-shadow:
        0 24px 54px rgba(15, 23, 42, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

body.theme-light .share-modal-close {
    border-color: rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.74);
}

body.theme-light .share-modal-kicker {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.26);
    color: #b45309;
}

@media (max-width: 640px) {
    .share-modal {
        padding: 12px;
    }

    .share-modal-card {
        padding: 18px;
        border-radius: 18px;
    }

    .share-modal-title {
        font-size: 18px;
    }

    .share-modal-head,
    .share-modal-actions {
        gap: 10px;
    }
}
