.modal.docs-share-modal {
    --share-navy: var(--docs-navy, #04182a);
    --share-ink: var(--docs-ink, #112238);
    --share-muted: var(--docs-muted, #64768a);
    --share-primary: var(--docs-primary, #0679b9);
    --share-cyan: var(--docs-cyan, #75dcff);
    --share-border: var(--docs-border, #d7e5ed);
    --share-heading: var(--docs-heading, "Roboto Condensed", sans-serif);
    --share-body: var(--docs-body, "Roboto", sans-serif);
    z-index: 1090;
    color: var(--share-ink);
    font-family: var(--share-body);
}

.docs-share-modal .modal-dialog { width: min(calc(100% - 30px), 650px); max-width: 650px; margin-inline: auto; }

.modal.docs-share-modal .docs-share-modal__content {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(117, 220, 255, .38);
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 32px 90px rgba(0, 17, 36, .34);
}

.docs-share-modal__content::before {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    content: "";
    background: linear-gradient(90deg, var(--share-primary), #08a5d8 62%, var(--share-cyan));
}

.docs-share-modal__header {
    position: relative;
    display: grid;
    grid-template-columns: 54px 1fr 42px;
    align-items: center;
    gap: 16px;
    padding: 28px 30px 21px;
}

.docs-share-modal__icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(145deg, #08a5d8, var(--share-primary));
    box-shadow: 0 11px 24px rgba(6, 121, 185, .22);
}

.docs-share-modal__icon > svg { width: 21px; height: 21px; }
.docs-share-modal__eyebrow { display: block; margin-bottom: 4px; color: var(--share-primary); font: 800 .66rem var(--share-heading); letter-spacing: .11em; text-transform: uppercase; }
.docs-share-modal__header h2 { margin: 0; color: var(--share-ink); font: 700 1.65rem/1.05 var(--share-heading); letter-spacing: -.025em; }

.docs-share-modal__close {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--share-border);
    border-radius: 12px;
    color: var(--share-muted);
    background: #f5f9fb;
    transition: border-color .18s ease, color .18s ease, transform .18s ease;
}

.docs-share-modal__close:hover { border-color: #9fcddd; color: var(--share-primary); transform: rotate(4deg); }
.docs-share-modal__close:focus-visible, .docs-share-modal__networks a:focus-visible, .docs-share-modal__copy button:focus-visible { outline: 3px solid rgba(8, 165, 216, .24); outline-offset: 2px; }

.modal.docs-share-modal .docs-share-modal__body { padding: 0 30px 30px; }
.docs-share-modal__body > p { max-width: 530px; margin: 0 0 22px; color: var(--share-muted); font-size: .89rem; line-height: 1.55; }

.docs-share-modal__networks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0; background: transparent; box-shadow: none; }
.docs-share-modal__networks a { display: grid; min-height: 62px; grid-template-columns: 38px 1fr 16px; align-items: center; gap: 11px; padding: 11px 13px; border: 1px solid var(--share-border); border-radius: 14px; color: var(--share-ink); background: #f8fbfc; text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.docs-share-modal__networks a:hover { color: var(--share-ink); border-color: #98cfe3; box-shadow: 0 10px 24px rgba(7, 74, 111, .1); transform: translateY(-2px); }
.docs-share-modal__networks a > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; color: var(--share-primary); background: #e8f6fc; }
.docs-share-modal__networks a[data-share-network="whatsapp"] > span { color: #16875f; background: #e9f8f2; }
.docs-share-modal__networks a[data-share-network="x"] > span { color: #fff; background: var(--share-navy); }
.docs-share-modal__networks strong { font: 700 .85rem var(--share-heading); }
.docs-share-modal__networks a > svg:last-child { width: 12px; color: #91a2b1; }

.docs-share-modal__divider { display: flex; align-items: center; gap: 13px; margin: 23px 0 18px; color: #8293a3; font: 700 .67rem var(--share-heading); letter-spacing: .07em; text-transform: uppercase; }
.docs-share-modal__divider::before, .docs-share-modal__divider::after { height: 1px; flex: 1; content: ""; background: var(--share-border); }
.docs-share-modal__divider span { white-space: nowrap; }

.docs-share-modal__copy label { display: block; margin-bottom: 7px; color: var(--share-ink); font: 700 .76rem var(--share-heading); }
.docs-share-modal__copy-field { display: grid; min-height: 58px; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 7px 7px 7px 15px; border: 1px solid var(--share-border); border-radius: 14px; background: #f7fafc; transition: border-color .18s ease, box-shadow .18s ease; }
.docs-share-modal__copy-field:focus-within { border-color: #8dcce5; box-shadow: 0 0 0 4px rgba(8, 165, 216, .09); }
.docs-share-modal__copy-field > span { color: var(--share-primary); }
.docs-share-modal__copy input { min-width: 0; width: 100%; border: 0; outline: 0; overflow: hidden; color: #5c7083; background: transparent; font-size: .78rem; text-overflow: ellipsis; }
.docs-share-modal__copy button { min-width: 122px; min-height: 43px; padding: 9px 14px; border: 0; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #08a5d8, var(--share-primary)); box-shadow: 0 8px 18px rgba(6, 121, 185, .18); font: 700 .78rem var(--share-heading); transition: transform .18s ease, box-shadow .18s ease; }
.docs-share-modal__copy button:hover { box-shadow: 0 11px 22px rgba(6, 121, 185, .25); transform: translateY(-1px); }
.docs-share-modal__copy button.is-copied { color: #fff; background: #178a64; }
.docs-share-modal__copy button span { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.docs-share-modal__copy button [hidden] { display: none; }
.docs-share-modal__status { min-height: 18px; margin: 7px 0 0; color: #7a8c9d; font-size: .68rem; }
.docs-share-modal__status.is-success { color: #16875f; font-weight: 700; }

body.modal-open .modal-backdrop.show { opacity: .72; background: #00101e; backdrop-filter: blur(4px); }

@media (max-width: 575.98px) {
    .docs-share-modal .modal-dialog { width: min(calc(100% - 20px), 650px); }
    .modal.docs-share-modal .docs-share-modal__content { border-radius: 20px; }
    .docs-share-modal__header { grid-template-columns: 46px 1fr 38px; gap: 12px; padding: 23px 19px 18px; }
    .docs-share-modal__icon { width: 46px; height: 46px; border-radius: 14px; }
    .docs-share-modal__header h2 { font-size: 1.34rem; }
    .docs-share-modal__close { width: 38px; height: 38px; }
    .modal.docs-share-modal .docs-share-modal__body { padding: 0 19px 22px; }
    .docs-share-modal__body > p { font-size: .82rem; }
    .docs-share-modal__networks { grid-template-columns: 1fr 1fr; gap: 8px; }
    .docs-share-modal__networks a { min-height: 55px; grid-template-columns: 34px 1fr; gap: 8px; padding: 9px; }
    .docs-share-modal__networks a > span { width: 34px; height: 34px; }
    .docs-share-modal__networks a > svg:last-child { display: none; }
    .docs-share-modal__copy-field { grid-template-columns: 19px minmax(0, 1fr); padding: 10px 11px; }
    .docs-share-modal__copy button { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 365px) {
    .docs-share-modal__networks { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .docs-share-modal *, .docs-share-modal *::before, .docs-share-modal *::after { transition-duration: .01ms !important; }
}
