.share-premium.as-share-bar {
    margin: 12px 0;
}

.share-premium .share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
}

.share-premium .share-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm, 10px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--as-surface-2, rgba(255, 255, 255, 0.02));
    border: 1px solid var(--as-border-subtle, rgba(255, 255, 255, 0.08));
    transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
    box-shadow: var(--shadow-soft, 0 2px 12px rgba(0, 0, 0, 0.18));
    cursor: pointer;
    padding: 0;
}

.share-premium .share-btn:hover {
    transform: translateY(-2px);
    border-color: var(--as-border-gold, rgba(255, 215, 0, 0.18));
    box-shadow: var(--shadow-soft, 0 2px 12px rgba(0, 0, 0, 0.18));
}

.share-premium .share-btn img {
    width: 22px;
    height: 22px;
    filter: brightness(1.1);
    object-fit: contain;
}

.share-premium .share-btn[data-as-share="native"] img {
    width: 15px;
    height: 15px;
}

.share-premium .share-btn-chat img {
    border-radius: 50%;
}

/* Modal partage → chat */
body.as-share-chat-open {
    overflow: hidden;
}

.as-share-chat-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.as-share-chat-modal[hidden] {
    display: none !important;
}

.as-share-chat-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
}

.as-share-chat-sheet {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 88vh;
    background: linear-gradient(180deg, rgba(13, 18, 32, 0.92) 0%, rgba(10, 12, 18, 0.96) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px 20px 0 0;
    padding: 20px 16px 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.5);
    animation: as-share-slide-up 0.28s ease;
}

@keyframes as-share-slide-up {
    from { transform: translateY(100%); opacity: 0.6; }
    to { transform: translateY(0); opacity: 1; }
}

.as-share-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.as-share-chat-header h3 {
    margin: 0;
    font-size: 1.15rem;
    color: #ffd700;
    font-weight: 600;
}

.as-share-chat-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
}

.as-share-chat-label {
    display: block;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 8px;
}

.as-share-chat-message {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #f0f2f7;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.45;
    resize: vertical;
    min-height: 72px;
    margin-bottom: 16px;
}

.as-share-chat-message:focus {
    outline: none;
    border-color: rgba(255, 215, 0, 0.4);
}

.as-share-chat-subtitle {
    margin: 0 0 10px;
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 500;
}

.as-share-chat-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 120px;
    max-height: 45vh;
    -webkit-overflow-scrolling: touch;
}

.as-share-chat-status {
    color: #64748b;
    text-align: center;
    padding: 24px 12px;
    margin: 0;
    font-size: 0.9rem;
}

.as-share-chat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.as-share-chat-item:hover,
.as-share-chat-item:focus {
    background: rgba(255, 215, 0, 0.08);
    border-color: rgba(255, 215, 0, 0.35);
    outline: none;
}

.as-share-chat-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255, 215, 0, 0.2);
}

.as-share-chat-item-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.as-share-chat-item-name {
    color: #f0f2f7;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.as-share-chat-item-preview {
    color: #64748b;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 520px) {
    .as-share-chat-modal {
        align-items: center;
    }

    .as-share-chat-sheet {
        border-radius: 20px;
        max-height: 80vh;
    }
}
