/* botbox Snapshot share modal */
.bb-share-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(4px);
    z-index: 1200;
    padding: 1em;
}
.bb-share-overlay.open { display: flex; }
.bb-share-panel {
    position: relative;
    background: #111114;
    border: 1px solid #38343e;
    border-radius: 10px;
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.45);
    max-width: 640px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    padding: 1.1em 1.3em 1.3em;
    color: #fff;
    font-family: Arial, sans-serif;
}
.bb-share-title {
    margin: 0 0 0.7em;
    font-size: 1.1em;
    color: #D873FF;
    font-weight: bold;
}
.bb-share-close {
    position: absolute;
    top: 0.5em;
    right: 0.7em;
    background: none;
    border: none;
    color: #b0b0b0;
    font-size: 1.6em;
    cursor: pointer;
    line-height: 1;
}
.bb-share-close:hover { color: #fff; }
.bb-share-preview {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bb-share-img {
    max-width: 100%;
    max-height: 55vh;
    border-radius: 8px;
    border: 1px solid #2d2d34;
    background: #080808;
}
.bb-share-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #2d2d34;
    border-top-color: #D873FF;
    border-radius: 50%;
    animation: bb-share-spin 0.9s linear infinite;
}
@keyframes bb-share-spin { to { transform: rotate(360deg); } }
.bb-share-error { color: #FF4C4C; text-align: center; padding: 1em; }
.bb-share-formats {
    display: flex;
    gap: 0.5em;
    justify-content: center;
    margin: 0.9em 0 0.5em;
}
.bb-share-formats button {
    background: #17171a;
    color: #FFF2B2;
    border: 1px solid #38343e;
    border-radius: 8px;
    padding: 0.45em 1em;
    font-size: 0.95em;
    cursor: pointer;
}
.bb-share-formats button.active { border-color: #D873FF; color: #D873FF; }
.bb-share-actions {
    display: flex;
    gap: 0.6em;
    justify-content: center;
    flex-wrap: wrap;
}
.bb-share-actions button,
.bb-share-actions a {
    background: #17171a;
    color: #fff;
    text-decoration: none;
    border: 1px solid #38343e;
    border-radius: 8px;
    padding: 0.55em 1.2em;
    font-size: 0.95em;
    cursor: pointer;
}
.bb-share-actions a:hover,
.bb-share-actions button:hover,
.bb-share-formats button:hover { border-color: #D873FF; }
.bb-share-overlay .disabled { opacity: 0.45; pointer-events: none; }
@media (max-width: 640px) {
    .bb-share-overlay { padding: 0; align-items: flex-end; }
    .bb-share-panel {
        border-radius: 14px 14px 0 0;
        max-height: 88vh;
    }
}
