
.bn-stories-wrapper{padding:15px 0;background:#fff;margin-bottom:15px;overflow:hidden}
.bn-stories-scroll{display:flex;gap:16px;overflow-x:auto;scrollbar-width:none;padding:5px 15px}
.bn-stories-scroll::-webkit-scrollbar{display:none}
.bn-story-item{flex:0 0 72px;text-align:center;cursor:pointer;position:relative}
.bn-story-ring{width:68px;height:68px;border-radius:50%;padding:3px;background:linear-gradient(45deg,#feda75,#fa7e1e,#d62976,#962fbf,#4f5bd5);display:flex;align-items:center;justify-content:center}
.bn-story-ring.seen{background:#ddd}
.bn-story-ring.own{border:2px dashed #4f5bd5;background:#fff}
.bn-story-avatar{width:62px;height:62px;border-radius:50%;border:3px solid #fff;object-fit:cover;background:#fff}
.bn-story-name{font-size:11px;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:72px;display:block}
.bn-story-add-btn{position:absolute;bottom:18px;right:0;background:#4f5bd5;color:#fff;border-radius:50%;width:22px;height:22px;line-height:22px;text-align:center;font-size:14px;border:2px solid #fff}

/* Viewer */
.bn-story-viewer{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center}
.bn-viewer-overlay{position:absolute;inset:0;background:rgba(0,0,0,0.92)}
.bn-viewer-content{position:relative;width:100%;max-width:400px;height:90vh;max-height:700px;background:#000;border-radius:16px;overflow:hidden;display:flex;flex-direction:column}
.bn-viewer-header{position:absolute;top:0;left:0;right:0;z-index:2;display:flex;justify-content:space-between;padding:12px;background:linear-gradient(to bottom,rgba(0,0,0,.6),transparent);color:#fff}
.bn-viewer-user{display:flex;align-items:center;gap:8px}
.bn-viewer-avatar{width:32px;height:32px;border-radius:50%}
.bn-viewer-close{font-size:28px;cursor:pointer}
.bn-viewer-progress-bar{position:absolute;top:0;left:0;right:0;height:3px;background:rgba(255,255,255,.3);z-index:3;display:flex;gap:2px;padding:2px}
.bn-viewer-progress{height:100%;background:#fff;width:0;transition:width .1s linear}
.bn-viewer-media-wrap{flex:1;display:flex;align-items:center;justify-content:center;background:#000}
.bn-viewer-media-wrap img,.bn-viewer-media-wrap video{max-width:100%;max-height:100%;object-fit:contain}
.bn-viewer-caption{padding:10px;color:#fff;text-align:center;font-size:14px}
.bn-viewer-nav{position:absolute;top:50%;left:0;right:0;display:flex;justify-content:space-between;padding:0 10px;pointer-events:none}
.bn-viewer-nav button{pointer-events:all;background:rgba(255,255,255,.2);border:0;color:#fff;width:36px;height:36px;border-radius:50%;cursor:pointer}
.bn-viewer-delete{position:absolute;bottom:10px;right:10px;background:#ff3040;color:#fff;border:0;padding:6px 12px;border-radius:20px;cursor:pointer}

#bn-story-upload-modal{position:fixed;inset:0;z-index:999998;background:rgba(0,0,0,.7);display:flex;align-items:center;justify-content:center}
.bn-modal-inner{background:#fff;padding:24px;border-radius:16px;max-width:360px;width:90%}
.bn-modal-inner input[type=text],.bn-modal-inner input[type=file]{width:100%;margin:10px 0;padding:10px;border:1px solid #ddd;border-radius:8px}
.bn-modal-actions{display:flex;gap:10px;margin-top:10px}
.pp-btn{background:#4f5bd5;color:#fff;border:0;padding:10px 18px;border-radius:20px;cursor:pointer}
.pp-btn.secondary{background:#eee;color:#333}

/* Activity feed integration */
.bn-activity-story{margin:10px 0}
.bn-activity-story img, .bn-activity-story video{border:2px solid #eee; cursor:pointer}
.activity-list .bn-stories-wrapper{margin:0 -15px 15px -15px; border-bottom:1px solid #eee; position:sticky; top:0; z-index:10}
