.certificate-share-preview {
    display: block;
    width: min(100%, 360px);
    max-height: 55vh;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(25, 35, 53, 0.14);
}

.certificate-achievement-showcase {
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
    border: 1px solid rgba(47, 87, 239, .14);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0, rgba(124, 58, 237, .13), transparent 36%),
        linear-gradient(180deg, #f8faff 0%, #eef2ff 100%);
}

.certificate-achievement-heading {
    position: relative;
    z-index: 1;
    margin-bottom: 1.15rem;
}

.certificate-achievement-heading h3 {
    margin: .35rem 0 .25rem;
    color: #192335;
    font-size: 1.35rem;
    font-weight: 800;
}

.certificate-achievement-heading p {
    margin: 0;
    color: #6c7685;
    font-size: .9rem;
}

.certificate-achievement-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: .32rem .65rem;
    border-radius: 999px;
    color: #2f57ef;
    background: rgba(47, 87, 239, .1);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.certificate-achievement-image {
    display: block;
    width: min(100%, 330px);
    margin: 0 auto;
    border: 1px solid rgba(25, 35, 53, .08);
    border-radius: 14px;
    box-shadow: 0 16px 38px rgba(25, 35, 53, .16);
}

.certificate-share-cta {
    position: relative;
    display: flex;
    align-items: center;
    width: min(100%, 460px);
    min-height: 72px;
    margin: 1.25rem auto 0;
    padding: .8rem 1rem;
    overflow: hidden;
    color: #fff;
    border: 0;
    border-radius: 17px;
    background: linear-gradient(135deg, #2f57ef 0%, #6545e8 55%, #823ee0 100%);
    box-shadow: 0 12px 28px rgba(47, 87, 239, .32);
    text-align: left;
    transition: transform .2s ease, box-shadow .2s ease;
}

.certificate-share-cta::before {
    position: absolute;
    inset: -80% auto auto -18%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    content: "";
}

.certificate-share-cta:hover {
    color: #fff;
    box-shadow: 0 16px 34px rgba(47, 87, 239, .4);
    transform: translateY(-2px);
}

.certificate-share-cta:active {
    transform: translateY(0);
}

.certificate-share-cta:focus-visible {
    outline: 3px solid rgba(47, 87, 239, .28);
    outline-offset: 3px;
}

.certificate-share-cta-icon {
    position: relative;
    z-index: 1;
    display: grid;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 14px;
    background: rgba(255, 255, 255, .16);
}

.certificate-share-cta-icon svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.certificate-share-cta-copy {
    position: relative;
    z-index: 1;
    display: flex;
    min-width: 0;
    margin-left: .85rem;
    flex: 1;
    flex-direction: column;
}

.certificate-share-cta-copy strong {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .01em;
}

.certificate-share-cta-copy small {
    margin-top: .12rem;
    color: rgba(255, 255, 255, .8);
    font-size: .75rem;
}

.certificate-share-cta-arrow {
    position: relative;
    z-index: 1;
    margin-left: .65rem;
    font-size: 1.5rem;
    line-height: 1;
    transition: transform .2s ease;
}

.certificate-share-cta:hover .certificate-share-cta-arrow {
    transform: translateX(4px);
}

.certificate-share-cta-compact {
    width: 100%;
    min-height: 64px;
    margin: 0;
    padding: .65rem .75rem;
    border-radius: 14px;
}

.certificate-share-cta-compact .certificate-share-cta-icon {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.certificate-share-cta-compact .certificate-share-cta-copy {
    margin-left: .7rem;
}

.certificate-share-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.certificate-share-action {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    gap: .45rem;
    border-radius: 10px;
    font-weight: 600;
}

.certificate-share-action-icon {
    display: block;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.certificate-share-action-icon-solid,
.certificate-share-action-icon-fill {
    fill: currentColor;
    stroke: none;
}

.certificate-share-action.instagram {
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.certificate-share-action.whatsapp {
    color: #fff;
    border: 0;
    background: #128c7e;
}

.certificate-share-action.facebook {
    color: #fff;
    border: 0;
    background: #1877f2;
}

.certificate-share-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(25, 35, 53, .58);
}

.certificate-share-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: grid;
    place-items: center;
    padding: 1rem;
    overflow-y: auto;
}

.certificate-share-modal-dialog {
    width: min(100%, 760px);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .25);
}

.certificate-share-native-dialog {
    width: min(calc(100% - 2rem), 760px);
    max-width: none;
    max-height: calc(100dvh - 2rem);
    margin: auto;
    padding: 0;
    overflow: visible;
    color: inherit;
    border: 0;
    border-radius: 16px;
    background: transparent;
}

.certificate-share-native-dialog::backdrop {
    background: rgba(25, 35, 53, .68);
    backdrop-filter: blur(2px);
}

.certificate-share-native-dialog .certificate-share-modal-dialog {
    width: 100%;
    max-height: calc(100dvh - 2rem);
}

@media (max-width: 575.98px) {
    .certificate-share-actions {
        grid-template-columns: 1fr;
    }

    .certificate-share-preview {
        max-height: 48vh;
    }

    .certificate-achievement-showcase {
        padding: 1.15rem;
        border-radius: 18px;
    }

    .certificate-share-cta {
        min-height: 68px;
        padding: .7rem .8rem;
    }

    .certificate-share-cta-icon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
    }
}
