/* ═══════════════════════════════════════════════════════════════
   TradieSA Community — social.css v8
   ═══════════════════════════════════════════════════════════════ */

/* ── Community uses main theme CSS vars from unified-system.css ── */
/* All colors come from [data-theme] — no overrides needed here  */

/* ── Layout ── */
.s-layout{max-width:1100px;margin:0 auto;padding:28px 20px 48px;display:grid;grid-template-columns:1fr 300px;gap:40px}
.s-page-scroll{flex:1;overflow-y:auto;min-height:0;height:100%;scrollbar-width:thin}
.s-feed-col{min-width:0}

/* ── Composer ── */
.s-publisher{border-radius:var(--radius-lg);overflow:hidden;margin-bottom:14px;box-shadow:var(--shadow-sm)}
.s-pub-bar{display:flex;align-items:center;gap:12px;padding:12px 16px;cursor:pointer;transition:background .15s}
.s-pub-bar:hover{background:var(--bg-hover)}
.s-pub-avatar{width:38px;height:38px;border-radius:50%;overflow:hidden;flex-shrink:0;background:var(--primary-light);display:flex;align-items:center;justify-content:center;font-weight:700;color:var(--primary);font-size:.875rem;text-decoration:none}
.s-pub-avatar img{width:38px;height:38px;object-fit:cover;border-radius:50%}
.s-pub-placeholder{flex:1;color:var(--text-muted);font-size:.9rem}
.s-pub-cam{cursor:pointer;color:var(--text-muted);transition:color .15s;padding:4px}
.s-pub-cam:hover{color:var(--primary)}
.s-pub-expanded{display:none}
.s-pub-top{display:flex;gap:12px;padding:12px 16px 8px}
.s-pub-input-wrap{flex:1;min-width:0}
.s-pub-input-wrap textarea{width:100%;background:none;border:none;outline:none;color:var(--text-primary);font-size:.9375rem;resize:none;font-family:inherit;line-height:1.5;min-height:72px}
.s-pub-fields{display:flex;flex-wrap:wrap;gap:8px;padding:0 16px 10px}
.s-pub-fields input,.s-pub-fields select{background:var(--bg-input);border:1px solid var(--border-light);color:var(--text-primary);border-radius:8px;padding:6px 10px;font-size:.8125rem;font-family:inherit;outline:none;width:100%;max-width:160px}
.s-field-row{display:flex;gap:8px;width:100%;flex-wrap:wrap}
.s-pub-preview{display:flex;flex-wrap:wrap;gap:6px;padding:0 16px 8px}
.s-preview-wrap{position:relative}
.s-preview-img{width:72px;height:72px;object-fit:cover;border-radius:8px;border:2px solid var(--border)}
.s-preview-remove{position:absolute;top:-5px;right:-5px;width:20px;height:20px;border-radius:50%;background:#ef4444;color:#fff;border:none;cursor:pointer;font-size:11px;display:flex;align-items:center;justify-content:center;line-height:1}
.s-pub-divider{height:1px;background:var(--border-light);margin:0 16px}
.s-pub-toolbar{display:flex;align-items:center;gap:6px;padding:8px 16px;flex-wrap:wrap}
.s-pub-tool{display:flex;align-items:center;gap:6px;padding:6px 10px;border-radius:8px;cursor:pointer;color:var(--text-secondary);font-size:.8125rem;border:none;background:none;font-family:inherit;transition:color .15s,background .15s}
.s-pub-tool:hover,.s-pub-tool.active{color:var(--primary);background:var(--primary-light)}
.s-pub-right{display:flex;align-items:center;gap:10px;margin-left:auto}
.s-char-counter{font-size:.75rem;color:var(--text-muted)}
.s-pub-close{background:none;border:none;color:var(--text-muted);cursor:pointer;font-family:inherit;font-size:.8125rem;padding:4px 8px;border-radius:6px}
.s-pub-close:hover{color:var(--text-primary)}
.s-pub-btn{padding:8px 20px!important;font-size:.875rem!important}

/* ── Privacy selector ── */
.snp-privacy-wrap{display:flex;align-items:center}
.s-pub-privacy{background:var(--bg-input);color:var(--text-secondary);border:1px solid var(--border-light);border-radius:8px;padding:5px 8px;font-size:.75rem;cursor:pointer;font-family:inherit;outline:none;transition:border-color .15s}
.s-pub-privacy:hover,.s-pub-privacy:focus{border-color:var(--primary)}

/* ── Feed Controls ── */
.s-controls-row{display:flex;align-items:center;gap:8px;margin-bottom:8px;flex-wrap:wrap}
.s-tabs{display:flex;gap:2px}
.s-tab{padding:7px 16px;border-radius:var(--radius-md);border:none;background:none;color:var(--text-muted);font-size:.8125rem;font-weight:600;cursor:pointer;font-family:inherit;transition:color var(--transition-fast),background var(--transition-fast);letter-spacing:-.01em}
.s-tab:hover{color:var(--text-primary)}
.s-tab.active{color:var(--primary);background:var(--primary-light)}
.s-filter-bar{display:flex;gap:6px;align-items:center}
.s-filter-bar select{background:var(--bg-input);border:1px solid var(--border-light);color:var(--text-secondary);border-radius:8px;padding:6px 10px;font-size:.8125rem;font-family:inherit;outline:none;cursor:pointer}

/* ── Search button ── */
.sn-search-btn{background:none;border:1px solid var(--border-light);border-radius:8px;color:var(--text-secondary);cursor:pointer;padding:6px 10px;display:flex;align-items:center;gap:6px;font-size:.8125rem;font-family:inherit;transition:border-color .15s,color .15s;margin-left:auto}
.sn-search-btn:hover{border-color:var(--primary);color:var(--primary)}

/* ── Post Card ── */
.s-post{background:var(--bg-card-raised);border:1px solid var(--border-light);border-radius:var(--radius-lg);margin-bottom:10px;overflow:hidden;position:relative;box-shadow:var(--shadow-sm);transition:box-shadow var(--transition-base),transform var(--transition-base)}
.s-post:hover{box-shadow:var(--shadow-md);}
.s-post-header{display:flex;align-items:center;gap:10px;padding:14px 16px 10px}
.s-post-avatar{width:40px;height:40px;border-radius:50%;overflow:visible;flex-shrink:0;display:block;position:relative}
.s-post-avatar img,.s-post-avatar span{width:40px;height:40px;border-radius:50%;object-fit:cover;display:flex;align-items:center;justify-content:center;background:var(--primary-light);color:var(--primary);font-weight:700;font-size:.875rem}
.s-post-meta{flex:1;min-width:0}
/* ── Post type badges ─────────────────────────────────────── */
.s-post-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 99px;
    margin-bottom: 3px;
    letter-spacing: .02em;
    width: fit-content;
}
.badge-job {
    background: rgba(59,130,246,.10);
    color: #185FA5;
    border: 1px solid rgba(59,130,246,.18);
}
.badge-tradie {
    background: rgba(232,93,32,.10);
    color: #C94D18;
    border: 1px solid rgba(232,93,32,.18);
}

.s-post-username{font-size:.875rem;font-weight:700;color:var(--text-primary);display:flex;align-items:center;gap:4px;letter-spacing:-.01em}
.s-post-username a{color:inherit;text-decoration:none}
.s-post-username a:hover{text-decoration:underline}
.s-post-time{text-decoration:none;font-size:.75rem;color:var(--text-muted);margin-top:1px}.s-post-time:hover{text-decoration:underline;color:var(--accent)}
.s-dot-btn{background:none;border:none;color:var(--text-muted);cursor:pointer;font-size:1.25rem;line-height:1;padding:4px 8px;border-radius:6px;transition:color .15s}
.s-dot-btn:hover{color:var(--text-primary);background:var(--bg-hover)}
.s-post-menu{display:none;position:absolute;top:42px;right:14px;background:var(--bg-card-raised);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);z-index:50;min-width:180px;overflow:hidden}
.s-post-menu.open{display:block}
.s-mi{display:flex;align-items:center;gap:10px;padding:10px 14px;color:var(--text-secondary);cursor:pointer;font-size:.875rem;transition:background .1s,color .1s}
.s-mi:hover{background:var(--bg-hover);color:var(--text-primary)}
.s-mi-danger:hover{color:#ef4444!important}
.s-post-body{padding:2px 16px 10px}
.s-post-desc{font-size:.9375rem;line-height:1.6;color:var(--text-primary);white-space:pre-wrap;word-break:break-word;letter-spacing:-.005em}
.s-post-desc.truncated{display:-webkit-box !important;-webkit-line-clamp:2 !important;-webkit-box-orient:vertical !important;overflow:hidden !important;white-space:normal !important;max-height:none !important}
.s-post-more{color:var(--primary);font-size:.875rem;cursor:pointer;display:inline-block;padding:2px 0;font-weight:500}
.s-post-desc.s-editing{border:1px solid var(--primary);border-radius:6px;padding:8px;outline:none;background:var(--bg-input)}
.s-edit-bar{display:flex;gap:8px;padding:0 16px 12px}
.s-mention{color:var(--primary);text-decoration:none}
.s-mention:hover{text-decoration:underline}
.s-hashtag-link{color:var(--primary);text-decoration:none}
.s-hashtag-link:hover{text-decoration:underline}
.s-priv-icon{font-size:.75rem;opacity:.7}
.s-post-tags{display:flex;flex-wrap:wrap;gap:6px;padding:0 16px 8px}
.s-tag{background:var(--bg-input);color:var(--text-secondary);border:1px solid var(--border-light);border-radius:var(--radius-full);padding:3px 11px;font-size:.7rem;font-weight:600;letter-spacing:.01em}
.s-price-tag{background:var(--primary-light);color:var(--primary);border-color:var(--primary-border);font-weight:700}
.s-hash-tag{text-decoration:none;cursor:pointer}
.s-hash-tag:hover,.s-hashtag-tag:hover{border-color:var(--primary);color:var(--primary)}
.s-hashtag-tag{text-decoration:none;cursor:pointer}
.s-keyword-tag{text-decoration:none;cursor:pointer;background:var(--primary-light);color:var(--primary);border-color:color-mix(in srgb,var(--primary) 25%,transparent)}
.s-keyword-tag:hover{background:var(--primary);color:#fff;border-color:var(--primary)}
.s-pin-badge{display:flex;align-items:center;gap:5px;font-size:.7rem;color:var(--primary);padding:4px 16px 0;font-weight:600;opacity:.8}

/* ── Collapsible keyword tags ── */
.s-post-tags-wrap{display:flex;align-items:flex-start;gap:0;padding:0 16px 6px}
.s-post-tags-wrap .s-post-tags{padding:0;flex:1;overflow:hidden;max-height:500px;transition:max-height .3s ease}
.s-post-tags-collapsed{max-height:28px!important}
.s-tags-toggle{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:20px;height:20px;margin-top:3px;margin-left:6px;background:none;border:1px solid var(--border-light);border-radius:50%;cursor:pointer;padding:0;color:var(--text-muted);transition:border-color .15s,color .15s}
.s-tags-toggle:hover{border-color:var(--primary);color:var(--primary)}
.s-tags-arrow{display:block;transition:transform .25s ease}

/* ── Gallery ── */
/* ── Legacy s-gallery (single media / story wrapper) ── */
.s-gallery{display:block;margin-top:0;overflow:hidden}
.s-gal-img{position:relative;overflow:hidden}
.s-gal-img img{width:100%;height:auto;object-fit:cover;display:block}
.s-gal-more{position:absolute;inset:0;background:rgba(0,0,0,.52);display:flex;align-items:center;justify-content:center;font-size:1.6rem;font-weight:800;color:#fff;cursor:pointer;letter-spacing:-.02em}

/* ══════════════════════════════════════════════════════
   Inline swipe slider  (czsl-*)
══════════════════════════════════════════════════════ */
.czsl-wrap {
    position: relative;
    margin-top: 10px;
    touch-action: pan-y;
}
.s-post-post .czsl-wrap { margin-top: 0; }

/* Track viewport clips the sliding images */
.czsl-track-viewport {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.czsl-track {
    display: flex;
    width: 100%;
    will-change: transform;
    cursor: grab;
}
.czsl-track:active { cursor: grabbing; }

.czsl-slide {
    flex: 0 0 100%;
    width: 100%;
    overflow: hidden;
    position: relative;
}
.czsl-slide .czsl-img,
.czsl-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 200px;
    max-height: 520px;
    user-select: none;   /* prevent text selection during drag */
    -webkit-user-drag: none;
    draggable: false;
}
/* Video inside slider */
.czsl-slide .s-gal-video { width: 100%; }
.czsl-slide .czv-vid { max-height: 75vh; pointer-events: none; }

/* ── Dots — overlaid on image, bottom-center ── */
.czsl-dots {
    position: absolute;
    bottom: 10px;
    left: 0; right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    pointer-events: none;
    z-index: 4;
}
.czsl-dot {
    width: 6px; height: 6px;
    border-radius: 50px;
    background: rgba(255,255,255,.5);
    transition: width .2s ease, background .2s ease;
    flex-shrink: 0;
}
.czsl-dot.active {
    width: 18px;
    background: #fff;
}

/* ── Counter badge (top-right) ── */
.czsl-counter {
    position: absolute;
    top: 10px; right: 10px;
    background: rgba(0,0,0,.45);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    pointer-events: none;
    z-index: 4;
    letter-spacing: .02em;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Mobile */
@media (max-width: 640px) {
    .czsl-slide img { min-height: 160px; max-height: 420px; }
    .czsl-slide .czv-vid { max-height: 65vh; }
}
.s-yt-embed{margin-top:10px;position:relative;padding-bottom:56.25%;height:0;border-radius:8px;overflow:hidden}
.s-yt-embed iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:0}

/* ── Post Actions ── */
.s-views{font-size:.75rem;color:var(--text-muted);padding:2px 16px 0;display:flex;align-items:center;gap:4px}
.s-reaction-bar{display:flex;align-items:center;gap:4px;padding:6px 16px 2px;cursor:pointer;transition:opacity .15s}
.s-reaction-bar:hover{opacity:.8}
.s-r-emoji{font-size:.875rem}
.s-r-count{font-size:.8125rem;color:var(--text-secondary);margin-left:2px}
.s-post-actions{display:flex;align-items:center;gap:2px;padding:6px 10px 8px;border-top:1px solid var(--border-light);margin-top:4px}
.s-action{display:flex;align-items:center;gap:5px;padding:7px 10px;border-radius:var(--radius-md);border:none;background:none;color:var(--text-muted);font-size:.8rem;font-weight:600;cursor:pointer;font-family:inherit;transition:color var(--transition-fast),background var(--transition-fast);position:relative;letter-spacing:-.01em}
.s-action:hover{color:var(--text-primary);background:var(--bg-hover)}
.s-action.reacted{color:var(--primary)}
.s-action.saved svg{fill:var(--primary);stroke:var(--primary);color:var(--primary)}
.s-act-wrap{position:relative;display:flex;align-items:center}
.s-my-r{font-size:1rem}
.s-rp{display:none;position:absolute;bottom:44px;left:0;background:var(--bg-card);border:1px solid var(--border);border-radius:24px;padding:6px 8px;gap:4px;box-shadow:0 6px 24px rgba(0,0,0,.35);z-index:30;white-space:nowrap;flex-direction:row}
.s-act-wrap:hover .s-rp{display:flex}
.s-rp-btn{background:none;border:none;cursor:pointer;font-size:1.3rem;padding:2px 5px;border-radius:10px;transition:transform .12s,background .12s;line-height:1}
.s-rp-btn:hover,.s-rp-btn.active{transform:scale(1.35);background:var(--primary-light)}

/* ── Comments ── */
.s-comments-section{border-top:1px solid var(--border-light)}
.s-comment-input{display:flex;align-items:center;gap:8px;padding:10px 16px;border-bottom:1px solid var(--border-light)}
.s-comment-input input{flex:1;background:var(--bg-input);border:1px solid var(--border-light);color:var(--text-primary);border-radius:20px;padding:8px 14px;font-size:.8125rem;font-family:inherit;outline:none;transition:border-color .15s}
.s-comment-input input:focus{border-color:var(--primary)}
.s-comment-input button{background:none;border:none;color:var(--primary);cursor:pointer;padding:4px;display:flex}
.s-comments{padding:8px 16px;display:flex;flex-direction:column;gap:10px}
.s-comment{display:flex;gap:8px;align-items:flex-start}
.s-comment-avatar{width:32px;height:32px;border-radius:50%;overflow:hidden;flex-shrink:0;background:var(--primary-light);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.75rem;color:var(--primary);text-decoration:none}
.s-comment-avatar img{width:32px;height:32px;object-fit:cover;border-radius:50%}
/* Thread line column: avatar on top, line stretches below */
.s-comment-left{display:flex;flex-direction:column;align-items:center;flex-shrink:0;width:36px;position:relative}
.s-comment-left.has-replies::after{content:'';position:absolute;top:34px;bottom:0;left:50%;transform:translateX(-50%);width:2px;background:var(--border-light);border-radius:2px}
.s-comment-thread-line{width:2px;flex:1;min-height:8px;background:var(--border-light);margin-top:2px}
.s-comment-body{flex:1;min-width:0}
.s-comment-bubble{background:var(--bg-input);border-radius:var(--radius-lg);border-bottom-left-radius:var(--radius-xs);padding:8px 12px;display:inline-block;max-width:100%}
.s-comment-user{font-size:.8125rem;font-weight:700;color:var(--text-primary);text-decoration:none;display:block}
.s-comment-user:hover{text-decoration:underline}
.s-comment-text{font-size:.8125rem;color:var(--text-primary);line-height:1.45;word-break:break-word}
.s-comment-footer{display:flex;align-items:center;gap:8px;margin-top:4px;padding:0 4px}
.s-cf-time{font-size:.6875rem;color:var(--text-muted)}
.s-cf-btn{background:none;border:none;font-size:.6875rem;color:var(--text-muted);cursor:pointer;font-family:inherit;font-weight:600;padding:2px 4px;border-radius:4px;transition:color .1s}
.s-cf-btn:hover{color:var(--primary)}
.s-cf-btn.active{color:var(--primary)}
.sc-del-btn:hover{color:#ef4444!important}
.s-replies{margin-top:0;display:flex;flex-direction:column;gap:4px}
.s-reply .s-comment-avatar{width:26px;height:26px;font-size:.6875rem}
.s-reply .s-comment-avatar img{width:26px;height:26px}
.s-reply-connector{flex-shrink:0;width:36px;display:flex;align-items:flex-start;justify-content:center}
.snc-load-more-wrap{padding:8px 0}
.snc-load-more{background:none;border:1px solid var(--border-light);color:var(--text-secondary);border-radius:8px;padding:6px 16px;font-size:.8125rem;cursor:pointer;font-family:inherit;width:100%;transition:border-color .15s,color .15s}
.snc-load-more:hover{border-color:var(--primary);color:var(--primary)}

/* ── Autocomplete ── */
.s-autocomplete{position:absolute;bottom:100%;left:0;right:0;background:var(--bg-card-raised);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);z-index:99;overflow:hidden;max-height:220px;overflow-y:auto}
.s-ac-item{display:flex;align-items:center;gap:10px;padding:8px 12px;cursor:pointer;font-size:.875rem;color:var(--text-primary);transition:background .1s}
.s-ac-item:hover,.s-ac-item.active{background:var(--bg-hover)}
.s-ac-avatar{width:28px;height:28px;border-radius:50%;object-fit:cover;background:var(--primary-light);flex-shrink:0}

/* ── Feed states ── */
.s-loader{display:flex;justify-content:center;padding:24px}
.s-spinner{width:24px;height:24px;border:2.5px solid var(--border-light);border-top-color:var(--primary);border-radius:50%;animation:spin .65s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.s-empty{display:flex;flex-direction:column;align-items:center;gap:12px;padding:48px 24px;color:var(--text-muted)}
.s-empty p{font-size:.9rem;margin:0}
/* Following empty state */
.snf-empty{padding:40px 24px;text-align:center;color:var(--text-secondary)}
.snf-empty svg{opacity:.3;margin-bottom:12px;display:block;margin-left:auto;margin-right:auto}
.snf-empty h3{font-size:1rem;font-weight:700;color:var(--text-primary);margin:0 0 8px}
.snf-empty p{font-size:.875rem;margin:0;line-height:1.5}

/* ── Back bar ── */
.s-back-bar{display:flex;align-items:center;gap:8px;padding:10px 16px;background:var(--bg-card-raised);border:1px solid var(--border-light);border-radius:var(--radius-lg);margin-bottom:12px;color:var(--text-secondary);text-decoration:none;font-size:.875rem;font-weight:500;transition:color var(--transition-fast);box-shadow:var(--shadow-xs)}
.s-back-bar:hover{color:var(--text-primary)}

/* ── Right Sidebar ── */
.s-right-sidebar{display:flex;flex-direction:column;gap:14px}
.s-sidebar-card{background:var(--bg-card-raised);border:1px solid var(--border-light);border-radius:var(--radius-lg);padding:14px 16px;box-shadow:var(--shadow-xs)}
.s-sidebar-title{font-size:.6875rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--text-muted);margin-bottom:12px;opacity:.8}
.s-sidebar-link{display:flex;align-items:center;gap:10px;padding:8px 0;color:var(--text-secondary);text-decoration:none;font-size:.875rem;transition:color .15s;border:none;background:none;cursor:pointer;font-family:inherit;width:100%}
.s-sidebar-link:hover{color:var(--primary)}
.s-trending-tags{display:flex;flex-direction:column;gap:0}
.s-trending-tag{
    display:flex;align-items:center;gap:10px;
    text-decoration:none;padding:7px 8px;border-radius:8px;
    transition:background .12s;
}
.s-trending-tag:hover{background:var(--bg-hover)}
.s-trending-tag-icon{
    display:flex;align-items:center;justify-content:center;
    width:28px;height:28px;min-width:28px;
    background:var(--primary-light);border-radius:7px;
    flex-shrink:0;overflow:hidden;
}
.s-trending-tag-icon svg{width:16px;height:16px;display:block;color:var(--primary);fill:none;stroke:var(--primary)}
.s-trending-tag-hash{
    display:flex;align-items:center;justify-content:center;
    width:28px;height:28px;min-width:28px;
    background:var(--bg-page);border-radius:7px;
    flex-shrink:0;font-size:.875rem;font-weight:800;
    color:var(--text-muted);
}
.s-trending-tag-body{flex:1;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:6px}
.s-trending-tag-name{font-size:.875rem;font-weight:600;color:var(--text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.s-trending-tag-name.is-hashtag{color:var(--primary)}
.s-trending-tag-count{font-size:.75rem;color:var(--text-muted);font-weight:500;flex-shrink:0}
.s-trending-hash{display:none} /* hide old hash span */

/* ── Suggested users ── */
.s-suggested-users{display:flex;flex-direction:column;gap:10px}
.s-sug-user{display:flex;align-items:center;gap:10px}
.s-sug-avatar{position:relative;width:40px;height:40px;border-radius:50%;overflow:visible;flex-shrink:0;display:block}
.s-sug-avatar img,.s-sug-avatar span{width:40px;height:40px;border-radius:50%;object-fit:cover;display:flex;align-items:center;justify-content:center;background:var(--primary-light);color:var(--primary);font-weight:700;font-size:.875rem}
.s-sug-info{flex:1;min-width:0}
.s-sug-name{font-size:13px;font-weight:600;color:var(--text-primary);text-decoration:none;display:flex;align-items:center}
.s-sug-name:hover{text-decoration:underline}
.s-sug-meta{font-size:11px;color:var(--text-secondary);display:block}
.s-sug-follow{padding:4px 14px!important;font-size:.7rem!important;border-radius:6px!important}

/* ── Verified / Online badges ── */
/* Verified badge — SVG shield checkmark style (overrides feed.js circle) */
.s-verified{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;flex-shrink:0;background:none;color:transparent;font-size:0;position:relative}
.s-verified::after{content:'';position:absolute;inset:0;background:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'><circle cx='11' cy='11' r='11' fill='%231d9bf0'/><path d='M6.5 11.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat}
.s-verified-sm{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;flex-shrink:0;background:none;color:transparent;font-size:0;margin-left:2px;vertical-align:middle;position:relative}
.s-verified-sm::after{content:'';position:absolute;inset:0;background:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'><circle cx='11' cy='11' r='11' fill='%231d9bf0'/><path d='M6.5 11.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat}
/* New SVG badge */
.s-verified-badge{display:inline-flex;align-items:center;vertical-align:middle;margin-left:4px;flex-shrink:0}
.s-verified-badge svg{display:block}
/* Badge tooltip */
.s-verified-badge[title]{cursor:help;position:relative}
.s-verified-badge-sm{display:inline-flex;vertical-align:middle;margin-left:2px;flex-shrink:0}

/* Verified badge tooltip */
.tsa-verified-wrap{position:relative;display:inline-flex;align-items:center;vertical-align:middle;cursor:default}
.tsa-verified-tooltip{
    visibility:hidden;opacity:0;
    position:absolute;bottom:calc(100% + 7px);left:50%;transform:translateX(-50%);
    background:var(--bg-card,#f8fdfd);color:var(--text-primary,#081818);
    font-size:.7rem;font-weight:600;white-space:nowrap;
    padding:5px 10px;border-radius:7px;
    border:1px solid #2e2e35;
    box-shadow:0 4px 16px rgba(0,0,0,.4);
    pointer-events:none;
    transition:opacity .18s ease,visibility .18s ease;
    z-index:9999;
    font-family:-apple-system,system-ui,sans-serif;
    letter-spacing:.01em;
}
.tsa-verified-tooltip::after{
    content:'';position:absolute;top:100%;left:50%;transform:translateX(-50%);
    border:5px solid transparent;border-top-color:#2e2e35;
}
.tsa-verified-wrap:hover .tsa-verified-tooltip{visibility:visible;opacity:1}

/* Also apply tooltip wrapper styles to s-verified-sm (feed.js rendered) */
.s-post-username .s-verified-sm,
.sns-name .s-verified-sm{position:relative;cursor:default}
.s-online-dot{position:absolute;bottom:4px;right:4px;width:14px;height:14px;background:#4ade80;border:3px solid var(--bg-card);border-radius:50%}
.s-online-dot-sm{position:absolute;bottom:0;right:0;width:10px;height:10px;background:#4ade80;border:2px solid var(--bg-card);border-radius:50%}

/* ── Profile page ── */
.s-profile-layout .s-feed-col{max-width:100%}
.s-pro-card{background:var(--bg-card);border:1px solid var(--border-light);border-radius:12px;overflow:hidden;margin-bottom:16px}
.s-cover{height:220px;background:var(--border-light,#cceaea) center/cover no-repeat;position:relative}
.s-cover-edit-wrap{position:absolute;bottom:12px;right:12px;display:inline-block}
.s-cover-edit{background:rgba(0,0,0,.65);color:#fff;padding:7px 14px;border-radius:8px;font-size:.75rem;font-weight:600;cursor:pointer;transition:background .15s;backdrop-filter:blur(4px);border:none;display:flex;align-items:center;gap:6px;font-family:inherit}
.s-cover-edit:hover{background:rgba(0,0,0,.85)}
.s-pro-info{display:flex;align-items:flex-start;gap:16px;padding:0 20px 20px;flex-wrap:wrap}
.s-pro-avatar-wrap{position:relative;margin-top:-40px;flex-shrink:0}
.s-pro-avatar{width:100px;height:100px;border-radius:50%;overflow:hidden;border:4px solid var(--bg-card);background:var(--primary-light);display:flex;align-items:center;justify-content:center}
.s-pro-avatar img{width:100%;height:100%;object-fit:cover}
.s-pro-avatar span{font-size:2.5rem;font-weight:700;color:var(--primary)}
.s-pro-details{flex:1;min-width:0;padding-top:12px}
.s-pro-name{font-size:1.5rem;font-weight:700;color:var(--text-primary);margin:0 0 4px;display:flex;align-items:center;gap:6px}
.s-pro-bio{font-size:.875rem;color:var(--text-secondary);margin:0 0 8px;line-height:1.4}
.s-pro-stats{display:flex;gap:20px;font-size:.875rem;color:var(--text-secondary)}
.s-pro-stats strong{color:var(--text-primary);font-weight:700}
.s-pro-actions{padding-top:16px;flex-shrink:0;display:flex;gap:8px}
.s-follow-btn{}
.s-edit-profile-card{padding:20px;margin-bottom:16px}
.s-edit-profile-card input,.s-edit-profile-card textarea{outline:none;transition:border-color .15s}
.s-edit-profile-card input:focus,.s-edit-profile-card textarea:focus{border-color:var(--primary)!important}

/* ── Link preview ── */
.s-link-preview{display:flex;border:1px solid var(--border-light);border-radius:10px;overflow:hidden;margin-top:10px;text-decoration:none;transition:border-color .15s}
.s-link-preview:hover{border-color:var(--primary)}
.s-lp-img{width:120px;flex-shrink:0;background:var(--bg-page) center/cover no-repeat}
.s-lp-body{padding:10px 14px;flex:1;min-width:0}
.s-lp-title{font-size:.875rem;font-weight:600;color:var(--text-primary);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.s-lp-desc{font-size:.75rem;color:var(--text-secondary);margin-top:4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.s-lp-domain{font-size:.6875rem;color:var(--text-muted);margin-top:6px}

/* ═══════════════════════════════════════════════════════
   CONFIRM MODAL
   ═══════════════════════════════════════════════════════ */
.sc-modal-wrap{position:fixed;inset:0;z-index:100010;display:flex;align-items:center;justify-content:center;padding:16px;pointer-events:none;opacity:0;transition:opacity .22s}
.sc-modal-wrap.sc-open{opacity:1;pointer-events:auto}
.sc-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.6);backdrop-filter:blur(3px)}
.sc-modal-box{position:relative;background:var(--bg-card);border:1px solid var(--border);border-radius:16px;width:380px;max-width:calc(100vw - 32px);padding:28px 24px 22px;box-shadow:0 24px 64px rgba(0,0,0,.55);transform:scale(.95) translateY(8px);transition:transform .25s,opacity .25s;text-align:center}
.sc-modal-wrap.sc-open .sc-modal-box{transform:scale(1) translateY(0)}
.sc-modal-ico{width:52px;height:52px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 16px;font-size:1.25rem}
.sc-ico-danger{background:rgba(239,68,68,.15);color:#ef4444}
.sc-ico-info{background:var(--primary-light);color:var(--primary)}
.sc-modal-title{font-size:1.0625rem;font-weight:700;color:var(--text-primary);margin-bottom:8px}
.sc-modal-body{font-size:.875rem;color:var(--text-secondary);margin-bottom:20px;line-height:1.5}
.sc-modal-foot{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
.sc-modal-foot .btn{min-width:100px}
.sn-x-btn{background:none;border:none;color:var(--text-muted);cursor:pointer;padding:4px;display:flex;align-items:center;border-radius:6px}
.sn-x-btn:hover{color:var(--text-primary)}

/* ── Report Modal ── */
.sc-report-box{text-align:left;width:400px}
.sc-reasons{display:flex;flex-direction:column;gap:6px;margin:12px 0}
.sc-reason{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:8px;cursor:pointer;transition:background .1s;font-size:.875rem;color:var(--text-primary)}
.sc-reason:hover{background:var(--bg-hover)}
.sc-reason input{accent-color:var(--primary)}
#sc-r-details{width:100%;background:var(--bg-input);color:var(--text-primary);border:1px solid var(--border-light);border-radius:8px;padding:8px 12px;font-size:.8125rem;resize:none;font-family:inherit;outline:none;margin-top:8px;box-sizing:border-box;transition:border-color .15s;margin-bottom:16px}
#sc-r-details:focus{border-color:var(--primary)}

/* ═══════════════════════════════════════════════════════
   TOASTS
   ═══════════════════════════════════════════════════════ */
.sc-toast-stack{position:fixed;bottom:24px;right:24px;z-index:100100;display:flex;flex-direction:column;gap:8px;width:300px}
.sc-toast{display:flex;align-items:center;gap:10px;padding:12px 16px;background:var(--bg-card);border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.35);font-size:.875rem;color:var(--text-primary);transform:translateX(120%);transition:transform .3s cubic-bezier(.34,1.56,.64,1),opacity .3s;opacity:0}
.sc-toast.sc-t-in{transform:translateX(0);opacity:1}
.sc-toast.sc-t-out{transform:translateX(120%);opacity:0}
.sc-toast-success{border-left:3px solid #22c55e}
.sc-toast-error{border-left:3px solid #ef4444}
.sc-t-ico{display:flex;flex-shrink:0}
.sc-toast-success .sc-t-ico{color:#22c55e}
.sc-toast-error .sc-t-ico{color:#ef4444}

/* ── Live notification toasts ── */
.sn-toast-container{position:fixed;bottom:24px;left:24px;z-index:100090;display:flex;flex-direction:column;gap:8px;width:320px}
.sn-toast{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;background:var(--bg-card);border:1px solid var(--border);border-radius:12px;box-shadow:0 8px 28px rgba(0,0,0,.4);cursor:pointer;transform:translateX(-120%);transition:transform .3s cubic-bezier(.34,1.56,.64,1),opacity .3s;opacity:0}
.sn-toast.sn-in{transform:translateX(0);opacity:1}
.sn-toast.sn-out{transform:translateX(-120%);opacity:0}
.sn-av{width:36px;height:36px;border-radius:50%;overflow:hidden;background:var(--primary-light);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.875rem;color:var(--primary);flex-shrink:0}
.sn-av img{width:36px;height:36px;object-fit:cover;border-radius:50%}
.sn-body{flex:1;min-width:0;font-size:.8125rem;color:var(--text-primary);line-height:1.4}
.sn-sub{font-size:.75rem;color:var(--text-secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sn-x{background:none;border:none;color:var(--text-muted);cursor:pointer;padding:2px;display:flex;flex-shrink:0}

/* ═══════════════════════════════════════════════════════
   NOTIFICATIONS SLIDE PANEL
   ═══════════════════════════════════════════════════════ */
.snp-wrap{position:fixed;inset:0;z-index:100010;pointer-events:none;opacity:0;transition:opacity .25s}
.snp-wrap.snp-open{opacity:1;pointer-events:auto}
.snp-overlay{position:absolute;inset:0;background:rgba(0,0,0,.55)}
.snp-panel{position:absolute;top:0;right:0;width:380px;max-width:100vw;height:100%;background:var(--bg-card);border-left:1px solid var(--border);box-shadow:-12px 0 40px rgba(0,0,0,.4);display:flex;flex-direction:column;transform:translateX(100%);transition:transform .28s cubic-bezier(.4,0,.2,1)}
.snp-wrap.snp-open .snp-panel{transform:translateX(0)}
.snp-header{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-bottom:1px solid var(--border-light);flex-shrink:0}
.snp-title{display:flex;align-items:center;gap:8px;font-size:.9375rem;font-weight:700;color:var(--text-primary)}
.snp-hdr-actions{display:flex;align-items:center;gap:6px}
.snp-mark-all{background:none;border:none;font-size:.75rem;color:var(--primary);cursor:pointer;font-family:inherit;padding:4px 10px;border-radius:6px;font-weight:600;transition:background .15s}
.snp-mark-all:hover{background:rgba(232,93,32,.1)}
.snp-close{background:none;border:none;color:var(--text-muted);cursor:pointer;padding:4px;display:flex;border-radius:6px}
.snp-close:hover{color:var(--text-primary)}
.snp-list{flex:1;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.snp-loading,.snp-empty{padding:32px;text-align:center;color:var(--text-muted);font-size:.875rem}
.snp-empty p{margin:8px 0 0}
.snp-item{display:flex;align-items:flex-start;gap:12px;padding:14px 18px;border-bottom:1px solid var(--border-light);cursor:pointer;transition:background .1s;position:relative}
.snp-item:hover{background:var(--bg-hover)}
.snp-item.snp-unread{background:rgba(232,93,32,.04)}
.snp-av{width:44px;height:44px;border-radius:50%;overflow:hidden;flex-shrink:0;background:var(--primary-light);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.875rem;color:var(--primary);position:relative}
.snp-av img{width:44px;height:44px;object-fit:cover;border-radius:50%}
.snp-type-dot{position:absolute;bottom:-2px;right:-4px;width:20px;height:20px;background:var(--bg-card);border:2px solid var(--border);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:10px;line-height:1}
.snp-body{flex:1;min-width:0}
.snp-text{font-size:.8125rem;color:var(--text-primary);line-height:1.5}
.snp-msg{font-size:.75rem;color:var(--text-secondary);margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.snp-time{font-size:.6875rem;color:var(--text-muted);margin-top:4px}
.snp-dot{width:8px;height:8px;background:var(--primary);border-radius:50%;flex-shrink:0;align-self:center}
.snp-footer{padding:12px 18px;border-top:1px solid var(--border-light);flex-shrink:0}
.snp-load-more{width:100%;background:none;border:1px solid var(--border);color:var(--text-secondary);border-radius:8px;padding:8px;font-size:.8125rem;cursor:pointer;font-family:inherit;transition:border-color .15s,color .15s}
.snp-load-more:hover{border-color:var(--primary);color:var(--primary)}

/* ─── Skeleton loading ───────────────────────────────────── */
.snp-skeleton{display:flex;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid var(--border-light)}
.snp-sk-av{width:44px;height:44px;border-radius:50%;background:linear-gradient(90deg,var(--bg-page,#f0f0f0) 0%, var(--bg-hover,#e8e8e8) 50%, var(--bg-page,#f0f0f0) 100%);background-size:200% 100%;animation:snpShimmer 1.4s linear infinite;flex-shrink:0}
.snp-sk-body{flex:1;display:flex;flex-direction:column;gap:8px}
.snp-sk-line{height:10px;border-radius:4px;background:linear-gradient(90deg,var(--bg-page,#f0f0f0) 0%, var(--bg-hover,#e8e8e8) 50%, var(--bg-page,#f0f0f0) 100%);background-size:200% 100%;animation:snpShimmer 1.4s linear infinite}
.snp-sk-line-1{width:80%}
.snp-sk-line-2{width:50%;height:8px}
@keyframes snpShimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}

/* ─── Empty state — friendly, not blank ──────────────────── */
.snp-empty{padding:48px 24px;text-align:center;color:var(--text-secondary)}
.snp-empty-icon{font-size:48px;margin-bottom:12px;opacity:.6}
.snp-empty h3{margin:0 0 8px;font-size:1rem;font-weight:600;color:var(--text-primary)}
.snp-empty p{margin:0;font-size:.8125rem;line-height:1.5;color:var(--text-muted)}

/* ─── Per-reaction badge colors ──────────────────────────── */
.snp-type-dot.snp-type-like   {background:#1d9bf0;color:#fff;border-color:#1d9bf0}
.snp-type-dot.snp-type-love   {background:#e0245e;color:#fff;border-color:#e0245e}
.snp-type-dot.snp-type-haha   {background:#fbbf24;color:#1a1a1a;border-color:#fbbf24}
.snp-type-dot.snp-type-wow    {background:#fbbf24;color:#1a1a1a;border-color:#fbbf24}
.snp-type-dot.snp-type-sad    {background:#9ca3af;color:#fff;border-color:#9ca3af}
.snp-type-dot.snp-type-angry  {background:#ef4444;color:#fff;border-color:#ef4444}
.snp-type-dot.snp-type-comment{background:var(--primary,#E85D20);color:#fff;border-color:var(--primary,#E85D20)}
.snp-type-dot.snp-type-reply  {background:var(--primary,#E85D20);color:#fff;border-color:var(--primary,#E85D20)}
.snp-type-dot.snp-type-follow {background:#22c55e;color:#fff;border-color:#22c55e}
.snp-type-dot.snp-type-mention{background:#a855f7;color:#fff;border-color:#a855f7}

/* ─── Settings + sticky header ───────────────────────────── */
.snp-settings-btn{background:none;border:none;color:var(--text-muted);cursor:pointer;padding:6px;display:flex;border-radius:6px;align-items:center;justify-content:center}
.snp-settings-btn:hover{color:var(--primary);background:rgba(232,93,32,.08)}
.snp-header{position:sticky;top:0;background:var(--bg-card);z-index:2}

/* ─── Mobile bottom-sheet (replaces side-slide on small screens) ── */
.snp-wrap.snp-mobile .snp-panel{
    top:auto;bottom:0;right:0;left:0;
    width:100%;max-width:100%;height:auto;max-height:90vh;
    border-left:none;border-top:1px solid var(--border);
    border-radius:18px 18px 0 0;
    box-shadow:0 -12px 40px rgba(0,0,0,.25);
    transform:translateY(100%);
    transition:transform .3s cubic-bezier(.4,0,.2,1);
}
.snp-wrap.snp-mobile.snp-open .snp-panel{transform:translateY(0)}
.snp-grabber{
    width:36px;height:4px;background:var(--border);border-radius:2px;
    margin:8px auto 0;flex-shrink:0;cursor:grab;
}
.snp-grabber:active{cursor:grabbing}
.snp-wrap.snp-mobile .snp-item{padding:16px 18px;min-height:44px}
.snp-wrap.snp-mobile .snp-mark-all,
.snp-wrap.snp-mobile .snp-settings-btn,
.snp-wrap.snp-mobile .snp-close{min-width:44px;min-height:44px}

/* ═══════════════════════════════════════════════════════
   NOTIFICATION SETTINGS PANEL
   ═══════════════════════════════════════════════════════ */
.sn-settings-box{text-align:left;width:440px;max-width:calc(100vw - 32px);padding:0;overflow:hidden;max-height:90vh;display:flex;flex-direction:column}
.sn-hdr{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid var(--border-light);flex-shrink:0;font-size:.9375rem;font-weight:700;color:var(--text-primary);gap:8px}
.sn-section{padding:14px 20px 6px;font-size:.6875rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--text-muted)}
.sn-hint{padding:0 20px 10px;font-size:.8125rem;color:var(--text-secondary)}
#sn-body{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch}
.sn-row{display:flex;align-items:center;gap:12px;padding:12px 20px;border-bottom:1px solid var(--border-light);font-size:.875rem;color:var(--text-primary)}
.sn-row svg{color:var(--text-muted);flex-shrink:0}
.sn-row span{flex:1}
.sn-foot{padding:14px 20px;border-top:1px solid var(--border-light);display:flex;justify-content:flex-end;gap:10px;flex-shrink:0}
.sn-toggle{position:relative;display:inline-flex;cursor:pointer;flex-shrink:0}
.sn-toggle input{opacity:0;width:0;height:0;position:absolute}
.sn-track{width:44px;height:24px;background:var(--border);border-radius:12px;position:relative;transition:background .2s}
.sn-toggle input:checked+.sn-track{background:var(--primary)}
.sn-thumb{position:absolute;top:3px;left:3px;width:18px;height:18px;background:#fff;border-radius:50%;transition:transform .2s;box-shadow:0 1px 4px rgba(0,0,0,.3)}
.sn-toggle input:checked+.sn-track .sn-thumb{transform:translateX(20px)}

/* Settings matrix (channels × types) */
.sn-matrix{padding:0 8px 8px}
.sn-matrix-head{display:grid;grid-template-columns:1.4fr repeat(3, 64px);align-items:center;padding:6px 12px;font-size:.6875rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--text-muted);border-bottom:1px solid var(--border-light)}
.sn-ch-head{text-align:center}
.sn-matrix-row{display:grid;grid-template-columns:1.4fr repeat(3, 64px);align-items:center;padding:10px 12px;border-bottom:1px solid var(--border-light)}
.sn-matrix-row:last-child{border-bottom:none}
.sn-row-label{display:flex;align-items:center;gap:10px;font-size:.875rem;color:var(--text-primary)}
.sn-row-label svg{color:var(--text-muted);flex-shrink:0}
.sn-cell{display:flex;justify-content:center;align-items:center}

/* Dropdowns inside settings */
.sn-row select{background:var(--bg-page);border:1px solid var(--border);border-radius:6px;padding:6px 10px;font-size:.875rem;color:var(--text-primary);font-family:inherit;cursor:pointer}
.sn-row select:focus{outline:none;border-color:var(--primary)}

/* Compact button inside row */
.sn-row .btn-sm{padding:6px 14px;font-size:.8125rem;border-radius:6px}

@media (max-width:680px){
    .sn-matrix-head, .sn-matrix-row{grid-template-columns:1.4fr repeat(3, 52px)}
    .sn-row-label{font-size:.8125rem}
}

/* ═══════════════════════════════════════════════════════
   SEARCH OVERLAY
   ═══════════════════════════════════════════════════════ */
.sns-wrap{position:fixed;inset:0;z-index:100010;pointer-events:none;opacity:0;transition:opacity .2s}
.sns-wrap.sns-open{opacity:1;pointer-events:auto}
.sns-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.6);backdrop-filter:blur(4px)}
.sns-box{position:absolute;top:64px;left:50%;transform:translateX(-50%) translateY(-8px);width:540px;max-width:calc(100vw - 24px);background:var(--bg-card);border:1px solid var(--border);border-radius:14px;box-shadow:0 16px 48px rgba(0,0,0,.5);transition:transform .2s}
.sns-wrap.sns-open .sns-box{transform:translateX(-50%) translateY(0)}
.sns-input-row{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--border-light)}
.sns-input-row svg{color:var(--text-muted);flex-shrink:0}
.sns-input{flex:1;background:none;border:none;outline:none;font-size:.9375rem;color:var(--text-primary);font-family:inherit}
.sns-x{background:none;border:none;color:var(--text-muted);cursor:pointer;padding:4px;display:flex;flex-shrink:0;border-radius:6px}
.sns-x:hover{color:var(--text-primary)}
.sns-results{max-height:400px;overflow-y:auto}
.sns-hint{padding:24px;text-align:center;color:var(--text-muted);font-size:.875rem}
.sns-section{padding:8px 16px 4px;font-size:.6875rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--text-muted);border-top:1px solid var(--border-light)}
.sns-section:first-child{border-top:none}
.sns-item{display:flex;align-items:center;gap:12px;padding:10px 16px;cursor:pointer;text-decoration:none;transition:background .1s}
.sns-item:hover{background:var(--bg-hover)}
.sns-av{width:36px;height:36px;border-radius:50%;overflow:hidden;background:var(--primary-light);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.875rem;color:var(--primary);flex-shrink:0}
.sns-av img{width:36px;height:36px;object-fit:cover;border-radius:50%}
.sns-hash{font-size:1.1rem;font-weight:700;border-radius:8px}
.sns-info{flex:1;min-width:0}
.sns-name{font-size:.875rem;font-weight:600;color:var(--text-primary)}
.sns-sub{font-size:.75rem;color:var(--text-secondary)}

/* ═══════════════════════════════════════════════════════
   REACTION LIST POPUP
   ═══════════════════════════════════════════════════════ */
.snr-box{text-align:left;width:360px;padding:0;overflow:hidden}
.snr-hdr{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-bottom:1px solid var(--border-light);font-size:.9rem;font-weight:700;color:var(--text-primary)}
.snr-list{padding:8px;max-height:400px;overflow-y:auto}
.snr-item{display:flex;align-items:center;gap:12px;padding:8px 10px;border-radius:8px;text-decoration:none;transition:background .1s}
.snr-item:hover{background:var(--bg-hover)}
.snr-av{width:36px;height:36px;border-radius:50%;overflow:hidden;background:var(--primary-light);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.875rem;color:var(--primary);flex-shrink:0}
.snr-av img{width:36px;height:36px;object-fit:cover;border-radius:50%}
.snr-name{flex:1;font-size:.875rem;color:var(--text-primary);font-weight:500}
.snr-emoji{font-size:1.25rem}

/* ═══════════════════════════════════════════════════════
   REPOST MODAL
   ═══════════════════════════════════════════════════════ */
.snrp-box{text-align:left;width:420px}
.snrp-hdr{display:flex;align-items:center;gap:8px;font-size:.9375rem;font-weight:700;color:var(--text-primary);margin-bottom:14px}
.snrp-original{background:var(--bg-page);border:1px solid var(--border-light);border-radius:8px;padding:12px;margin-bottom:12px;font-size:.8125rem;color:var(--text-secondary)}
.snrp-textarea{width:100%;background:var(--bg-input);color:var(--text-primary);border:1px solid var(--border-light);border-radius:8px;padding:10px 12px;font-size:.875rem;resize:none;font-family:inherit;outline:none;box-sizing:border-box;margin-bottom:16px;transition:border-color .15s}
.snrp-textarea:focus{border-color:var(--primary)}

/* ═══════════════════════════════════════════════════════
   MOBILE BOTTOM NAV
   ═══════════════════════════════════════════════════════ */
/* ── Mobile bottom nav ───────────────────────────────────────────── */
.s-mobile-nav{display:none;position:fixed;bottom:0;left:0;right:0;z-index:9000;background:var(--bg-card);border-top:0.5px solid var(--border-light);height:64px;padding:0 4px;align-items:stretch;padding-bottom:env(safe-area-inset-bottom,0);transform:translateY(0);transition:transform .3s cubic-bezier(.4,0,.2,1)}
.s-mobile-nav.nav-hidden{transform:translateY(100%)}
.s-nav-item{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-decoration:none;color:var(--text-muted);font-size:.6rem;font-weight:600;padding:6px 2px;transition:color .2s;border:none;background:none;cursor:pointer;position:relative;letter-spacing:.02em;-webkit-tap-highlight-color:transparent}
.s-nav-item:hover{color:var(--text-secondary)}
.s-nav-icon{width:40px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:20px;transition:background .2s,transform .15s}
.s-nav-item>svg{transition:transform .15s}
.s-nav-item.active .s-nav-icon{background:var(--primary-light,rgba(232,93,32,.1))}
.s-nav-item.active{color:var(--primary)}
.s-nav-item.active svg{stroke:var(--primary)}
.s-nav-item:active .s-nav-icon{transform:scale(.9)}
/* Post button — elevated pill */
.s-nav-icon-post{background:var(--primary)!important;width:44px;height:36px;border-radius:22px}
.s-nav-post svg{stroke:#fff!important}
.s-nav-post{color:var(--primary)}
/* Badge */
.s-nav-badge{position:absolute;top:-2px;right:-4px;min-width:16px;height:16px;background:#ef4444;color:#fff;border-radius:8px;font-size:.5rem;font-weight:800;display:none;align-items:center;justify-content:center;padding:0 4px;border:2px solid var(--bg-card);line-height:1}

/* ═══════════════════════════════════════════════════════
   TABLET (≤800px)
   ═══════════════════════════════════════════════════════ */
@media(max-width:800px){
    .s-layout{grid-template-columns:1fr;padding:12px 10px 80px}
    .s-right-sidebar{display:none}
    .s-post{border-radius:8px}
    .s-cover{height:140px}
    .s-pro-avatar{width:72px;height:72px}
    .s-pro-name{font-size:1.2rem}
    /* keep instagram 3-col thumbnails on mobile */
    .sc-modal-box,.sn-settings-box,.sc-report-box,.snr-box,.snrp-box{width:calc(100vw - 24px)}
}

/* ═══════════════════════════════════════════════════════
   PHONE (≤600px)
   ═══════════════════════════════════════════════════════ */
@media(max-width:600px){
    /* Layout */
    .s-post-desc.truncated{-webkit-line-clamp:1}
    .s-layout{padding:0 0 80px;gap:0}
    .s-page-scroll{padding-bottom:72px}
    .post-publisher{margin-top:12px}

    /* Posts — full bleed with visible gap between cards */
    .s-post{border-radius:0;border-left:none;border-right:none;margin-bottom:8px;border-bottom-width:1px}
    .s-publisher{border-radius:0;border-left:none;border-right:none;margin-bottom:8px}
    /* Fix right-side overflow on mobile */
    .s-feed-col{overflow-x:hidden}
    .s-post-header{padding:12px 14px 8px}
    .s-post-body{padding:0 14px 8px}
    .s-post-tags{padding:0 14px 8px}
    .s-views{padding:0 14px 0}
    .s-reaction-bar{padding:4px 14px 2px}
    .s-post-actions{padding:4px 8px 8px}
    .s-action{font-size:.75rem;padding:6px 8px;gap:4px}
    .s-action svg{width:15px;height:15px}
    .s-dot-btn{padding:6px 10px;font-size:18px}
    .s-post-menu{right:8px;top:38px}
    .s-pin-badge{margin:6px 14px 0}
    .s-post-desc{font-size:.9rem}

    /* Publisher */
    .s-pub-bar{padding:10px 14px}
    .s-pub-input-wrap textarea{padding:0;font-size:.9rem}
    .s-pub-fields{padding:0 14px;flex-wrap:wrap;gap:8px}
    .s-pub-fields select,.s-pub-fields input{font-size:.75rem;padding:5px 8px;max-width:120px}
    .s-pub-toolbar{padding:8px 14px;gap:4px}
    .s-pub-btn{padding:8px 16px!important;font-size:.8125rem!important}
    .s-char-counter{font-size:.7rem}

    /* Tabs */
    .s-controls-row{padding:6px 10px 4px;gap:0;flex-wrap:wrap;overflow:visible}
    .s-tabs{flex:1;display:flex;gap:2px;overflow-x:auto;scrollbar-width:none;min-width:0}
    .s-tabs::-webkit-scrollbar{display:none}
    .s-sort-dropdown-wrap{flex-shrink:0;margin-left:auto}
    .s-tab{font-size:.8125rem;padding:6px 12px;white-space:nowrap}
    .sn-search-btn{display:none}
    .s-sort-menu{z-index:9999;position:fixed;right:10px;top:auto;min-width:180px}

    /* Comments */
    .s-comments{padding:8px 14px}
    .s-comment-input{padding:10px 14px}
    .s-comment-avatar{width:30px;height:30px;font-size:.75rem}
    .s-comment-bubble{padding:7px 10px}
    .s-comment-text{font-size:.8125rem}

    /* Modals — slide up from bottom */
    .sc-modal-wrap{align-items:flex-end;padding:0}
    .sc-modal-box{width:100%!important;max-width:100%!important;border-radius:20px 20px 0 0;padding:24px 20px 32px;transform:translateY(100%);transition:transform .28s cubic-bezier(.4,0,.2,1),opacity .25s}
    .sc-modal-wrap.sc-open .sc-modal-box{transform:translateY(0)}
    .sc-modal-foot{justify-content:stretch}
    .sc-modal-foot .btn{flex:1}
    .sn-settings-box{border-radius:20px 20px 0 0!important;max-height:88vh!important}
    .sc-report-box{border-radius:20px 20px 0 0!important}
    .snr-box,.snrp-box{border-radius:20px 20px 0 0!important;width:100%!important}

    /* Notification settings scrollable */
    #sn-body{max-height:55vh;overflow-y:auto;-webkit-overflow-scrolling:touch}
    .sn-hdr{position:sticky;top:0;background:var(--bg-card);z-index:2}
    .sn-foot{position:sticky;bottom:0;background:var(--bg-card);z-index:2}

    /* Notif panel stops above bottom nav */
    .snp-wrap{bottom:68px}
    .snp-panel{width:100%;border-left:none;height:100%}

    /* Toasts above nav */
    .sc-toast-stack{bottom:72px;left:10px;right:10px;width:auto}
    .sn-toast-container{bottom:72px;left:10px;right:10px;width:auto}

    /* Profile */
    .s-pro-info{flex-wrap:wrap;padding:0 14px 16px}
    .s-pro-avatar-wrap{margin-top:-36px}
    .s-pro-avatar{width:80px;height:80px;border-width:3px}
    .s-pro-name{font-size:1.2rem}
    .s-pro-stats{gap:14px;font-size:.8rem}
    .s-pro-actions{width:100%;padding-top:10px;flex-wrap:wrap}
    .s-pro-actions .btn{flex:1}
    .s-cover{height:150px}

    /* Gallery */
    .s-gal-img img{min-height:100px;max-height:240px}
    .s-gallery-1 .s-gal-img img{max-height:340px}
    .s-gallery-3 .s-gal-img:first-child img,
    .s-gallery-4   .s-gal-img:first-child img,
    .s-gallery-more .s-gal-img:first-child img{max-height:300px;min-height:180px}
    .s-gallery-3   .s-gal-img:not(:first-child) img,
    .s-gallery-4   .s-gal-img:not(:first-child) img,
    .s-gallery-more .s-gal-img:not(:first-child) img{height:120px;min-height:120px;max-height:120px}

    /* Reaction picker */
    .s-rp{left:50%;transform:translateX(-50%);bottom:44px}

    /* Search overlay */
    .sns-box{top:56px;width:calc(100vw - 16px)}

    /* Mobile nav active */
    .s-mobile-nav{display:flex!important}
    nav#mobileNav{display:flex!important}
    /* Add space so content doesn't hide behind nav */
    .app-layout{padding-bottom:0}
}
@media(max-width:768px){
    .s-mobile-nav{display:flex!important}
    nav#mobileNav{display:flex!important}
    .desktop-only{display:none!important}
    /* Ensure nav isn't hidden by app-layout overflow */
    body{overflow-x:hidden}
    .app-layout{overflow:visible!important}
    .s-page-scroll{padding-bottom:72px!important}
}

/* ── Link Preview Card ─────────────────────────────────────────── */
.s-link-card{display:flex;flex-direction:column;border:1px solid var(--border-light);border-radius:12px;overflow:hidden;text-decoration:none;color:inherit;background:var(--bg-secondary,var(--bg-card,#f8fdfd));transition:box-shadow .15s,border-color .15s;margin:10px 0;position:relative}
.s-link-card:hover{box-shadow:0 4px 16px rgba(0,0,0,.25);border-color:var(--accent)}
.s-link-card.loading{flex-direction:row;padding:12px 16px;align-items:center;gap:10px;color:var(--text-muted);font-size:.85rem}
.s-link-spinner{width:16px;height:16px;border:2px solid var(--border-light);border-top-color:var(--accent);border-radius:50%;animation:spin .7s linear infinite;flex-shrink:0}
@keyframes spin{to{transform:rotate(360deg)}}
.s-lc-img{width:100%;max-height:220px;overflow:hidden;flex-shrink:0}
.s-lc-img img{width:100%;height:220px;object-fit:cover;display:block}
.s-lc-body{padding:12px 16px 14px;flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.s-lc-domain{font-size:.68rem;color:var(--accent);text-transform:uppercase;letter-spacing:.06em;font-weight:500}
.s-lc-title{font-size:.95rem;font-weight:700;color:var(--text-primary);line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.s-lc-desc{font-size:.8rem;color:var(--text-secondary);line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:1px}
.s-lc-no-img .s-lc-body{padding:14px 16px}
.s-lc-dismiss{position:absolute;top:8px;right:10px;background:rgba(0,0,0,.6);border:none;color:#fff;width:22px;height:22px;border-radius:50%;font-size:11px;cursor:pointer;display:flex;align-items:center;justify-content:center;line-height:1;padding:0;z-index:2}
.s-lc-dismiss:hover{background:rgba(0,0,0,.85)}
@media(max-width:480px){.s-lc-img img{height:160px}}

/* ── Live new posts banner ─────────────────────────────────────── */
.s-live-banner{display:flex;align-items:center;gap:8px;background:var(--accent);color:#fff;padding:10px 18px;border-radius:12px;font-size:.875rem;font-weight:600;cursor:pointer;margin-bottom:12px;opacity:0;transform:translateY(-8px);transition:opacity .25s,transform .25s;pointer-events:none;user-select:none;position:sticky;top:8px;z-index:90;}
.s-live-banner.visible{opacity:1;transform:translateY(0);pointer-events:auto}
.s-live-banner:hover{filter:brightness(1.1)}
.s-live-banner svg{flex-shrink:0}
.s-live-banner-icon{animation:dp-hg-flip 1.8s ease-in-out infinite;flex-shrink:0}
/* Radius pill buttons — shown only when Nearest tab is active */
.s-radius-pills { display:none; align-items:center; gap:4px; }
.s-radius-pills.visible { display:flex; }
.s-radius-pill {
    padding: 4px 10px;
    border-radius: 100px;
    border: 1px solid var(--border-light);
    background: var(--bg-input);
    color: var(--text-secondary);
    font-size: .72rem; font-weight: 700;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
    white-space: nowrap;
}
.s-radius-pill:hover { border-color: var(--primary); color: var(--primary); }
.s-radius-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── Hashtag & keyword tag custom icons ─────────────────────────── */
.s-hash-tag,.s-hashtag-tag,.s-keyword-tag { display:inline-flex; align-items:center; gap:4px; }
.s-hash-icon { display:inline-flex; align-items:center; width:14px; height:14px; flex-shrink:0; }
.s-hash-icon svg { width:14px; height:14px; }
.s-trending-tag { display:flex; align-items:center; gap:10px; }
.s-trending-tag-icon { display:flex; align-items:center; justify-content:center; width:28px; height:28px; min-width:28px; background:var(--primary-light); border-radius:7px; flex-shrink:0; overflow:hidden; }
.s-trending-tag-icon svg { width:16px; height:16px; display:block; color:var(--primary); fill:none; stroke:var(--primary); }
.sns-hash-icon { display:inline-flex; align-items:center; justify-content:center; width:100%; height:100%; }
.sns-hash-icon svg { width:16px; height:16px; }


/* ═══════════════════════════════════════════════════════════════
   DEAL MARKETPLACE — Price Rating System v2
   Visual priority: DISCOUNT > URGENCY > RATING > SOCIAL
   ═══════════════════════════════════════════════════════════════ */

/* ── Post post card — elevated treatment ─────────────────────── */
.s-post-post {
    position: relative;
}
.s-post-post .s-post-header { padding-bottom: 6px; }

/* ── Post panel wrapper ──────────────────────────────────────── */
.post-panel {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 0 0 var(--radius-lg, 12px) var(--radius-lg, 12px);
}

/* ── Hero price strip (top of post panel) ────────────────────── */
.dp-hero {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: var(--bg-elevated, rgba(255,255,255,.03));
    position: relative;
    overflow: hidden;
}
.dp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(255,78,0,.06) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Selling price (main focus) ─────────────────────────────── */
.dp-price-main {
    display: flex;
    flex-direction: column;
    padding: 10px 14px 10px;
    flex: 1;
    min-width: 0;
}
.dp-price-eyebrow {
    font-size: .5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.dp-price-amount {
    font-size: 1.4375rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dp-price-currency {
    font-size: .75rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-right: 4px;
}
.dp-price-mkt-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 3px;
}
.dp-price-mkt {
    font-size: .72rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 500;
}
/* Inline location on market-price row */
.dp-inline-dir {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: .72rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    padding: 2px 7px;
    border-radius: 20px;
    background: var(--primary-light, rgba(0,102,102,.08));
    transition: background .15s;
    white-space: nowrap;
}
.dp-inline-dir:hover { background: rgba(0,102,102,.15); }
.dp-inline-loc {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: .72rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

/* ── Discount badge (hero right side) ───────────────────────── */
.dp-discount-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    min-width: 66px;
    background: linear-gradient(135deg, #ff4e00 0%, #ec9f05 100%);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.dp-discount-block::before {
    content: '';
    position: absolute;
    top: -10px; right: -10px;
    width: 50px; height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
}
.dp-discount-pct {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    letter-spacing: -.02em;
}
.dp-discount-off {
    font-size: .5rem;
    font-weight: 800;
    color: rgba(255,255,255,.85);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-top: 2px;
}

/* no discount — no right block */
.dp-discount-block.dp-nodiscount { display: none; }

/* ── Post badge + timer row ─────────────────────────────────── */
.dp-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px 4px;
    flex-wrap: wrap;
}

.dp-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: .625rem;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.dp-badge svg { flex-shrink:0; }
.dp-badge-hot  {
    background: linear-gradient(135deg, #ff4e00, #ec9f05);
    color: #fff;
    box-shadow: 0 2px 10px rgba(255,78,0,.4);
    animation: badge-pulse 2.5s ease-in-out infinite;
}
.dp-badge-hot svg  { stroke: #fff; }
.dp-badge-fair { background: linear-gradient(135deg, #11998e, #38ef7d); color: #fff; }
.dp-badge-fair svg { stroke: #fff; }
.dp-badge-over { background: rgba(231,76,60,.15); border: 1px solid rgba(231,76,60,.4); color: #e74c3c; }
.dp-badge-over svg { stroke: #e74c3c; }

@keyframes badge-pulse {
    0%,100% { box-shadow: 0 2px 10px rgba(255,78,0,.4); }
    50%      { box-shadow: 0 2px 20px rgba(255,78,0,.7); }
}

/* ── Countdown timer ─────────────────────────────────────────── */
@keyframes dp-pulse { 0%,100%{opacity:1} 50%{opacity:.6} }

/* Timer inline inside dp-price-main */

/* ── Animated hourglass ─────────────────────────────────────── */
@keyframes dp-hg-flip {
    0%,  40% { transform: rotate(0deg);   }
    50%, 90% { transform: rotate(180deg); }
    100%     { transform: rotate(180deg); }
}
@keyframes dp-hg-drain {
    0%       { transform: scaleY(1);   opacity: .75; }
    40%      { transform: scaleY(0);   opacity: 0;   }
    50%      { transform: scaleY(0);   opacity: 0;   }
    55%      { transform: scaleY(1);   opacity: .75; }
    100%     { transform: scaleY(1);   opacity: .75; }
}
@keyframes dp-hg-fill {
    0%       { transform: scaleY(0);   opacity: 0;   }
    40%      { transform: scaleY(1);   opacity: .5;  }
    50%      { transform: scaleY(1);   opacity: .5;  }
    55%      { transform: scaleY(0);   opacity: 0;   }
    100%     { transform: scaleY(0);   opacity: 0;   }
}

/* ── Rating bar section ─────────────────────────────────────── */

/* ── Vote ticker: slides through count+icon for each rating type ── */
/* ── Vote ticker: slideUp each item endlessly ── */
@keyframes dpTickUp {
    0%      { opacity:0; transform:translateY(110%); }
    8%      { opacity:1; transform:translateY(0);    }
    22%     { opacity:1; transform:translateY(0);    }
    30%,100%{ opacity:0; transform:translateY(-110%);}
}
.dp-vote-ticker {
    display:inline-block;
    position:relative;
    overflow:hidden;
    height:16px;
    width:36px;
    margin-left:0;
    vertical-align:middle;
}
.dp-tick-item {
    position:absolute;
    left:0; top:0;
    width:100%; height:100%;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:3px;
    opacity:0;
    white-space:nowrap;
    pointer-events:none;
}
.dp-tick-num {
    font-size:.55rem;
    font-weight:700;
    color:#6b6b73;
    line-height:1;
}
.dp-tick-item svg { width:14px; height:14px; flex-shrink:0; }

/* Segmented bar */
.dp-bar-seg { height: 100%; min-width: 0; transition: width .5s cubic-bezier(.4,0,.2,1); border-radius: 100px; }

/* Percentage labels row */


/* ── Rate buttons ────────────────────────────────────────────── */




/* shimmer after voting */
@keyframes vote-pop { 0%{transform:scale(.92)} 60%{transform:scale(1.05)} 100%{transform:scale(1)} }

/* ══════════════════════════════════════════════════════════════
   Stories-style video post layout
   Applied when a post post has exactly one video
═══════════════════════════════════════════════════════════════ */
.s-post.s-post-story {
    background: #000;
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
    padding: 0;
    position: relative;
}
/* Comments and action bar inside story post get card background */
.s-post-story > .s-post-actions,
.s-post-story > .s-comments-section,
.s-post-story > .mod-actions {
    background: var(--bg-card, #fff);
    position: relative;
    z-index: 2;
}
/* Hide the normal header, body text, tags and post panel — all info is inside the video overlay */
.s-post-story > .s-post-header,
.s-post-story > .s-post-body,
.s-post-story > .s-post-tags-wrap,
.s-post-story > .post-panel {
    display: none !important;
}
.s-post-story > .s-gallery {
    margin: 0;
    border-radius: 0;
}

/* ── The stories wrapper ── */
.czv-story {
    position: relative;
    width: 100%;
    aspect-ratio: 9/16;
    max-height: 85vh;
    overflow: hidden;
    background: #000;
    cursor: pointer;
    border-radius: var(--radius-lg, 12px);
}
.czv-story-vid {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Gradients for readability ── */
.czv-story-grad-top {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 140px;
    background: linear-gradient(to bottom, rgba(0,0,0,.65) 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}
.czv-story-grad-bot {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 220px;
    background: linear-gradient(to top, rgba(0,0,0,.82) 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

/* ── Top header overlay: avatar + name + time + controls ── */
.czv-story-header {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 14px 0;
}
.czv-story-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,.7);
    display: block;
}
.czv-story-avatar img,
.czv-story-avatar span {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700; font-size: .875rem;
}
.czv-story-meta { flex: 1; min-width: 0; }
.czv-story-name {
    font-size: .875rem;
    font-weight: 700;
    color: #fff;
    display: flex; align-items: center; gap: 4px;
    line-height: 1.2;
}
.czv-story-name a { color: #fff; text-decoration: none; }
.czv-story-name a:hover { text-decoration: underline; }
.czv-story-tick { color: #4ade80; font-size: .75rem; }
.czv-story-time { font-size: .75rem; color: rgba(255,255,255,.7); margin-top: 1px; }
.czv-story-controls { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.czv-story-ctrl {
    background: none; border: none;
    padding: 4px; cursor: pointer;
    color: #fff; display: flex; align-items: center;
    opacity: .9;
}
.czv-story-ctrl:hover { opacity: 1; }

/* ── Bottom info overlay: price + specs + CTA buttons ── */
.czv-story-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 10;
    padding: 0 14px 14px;
}
.czv-story-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
    display: flex; align-items: center; gap: 8px;
    line-height: 1.2;
}
.czv-story-disc {
    font-size: .72rem;
    font-weight: 700;
    background: #ef4444;
    color: #fff;
    padding: 2px 7px;
    border-radius: 20px;
    letter-spacing: .02em;
}
.czv-story-desc {
    font-size: .875rem;
    color: rgba(255,255,255,.9);
    font-weight: 500;
    margin-bottom: 2px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.czv-story-specs {
    font-size: .78rem;
    color: rgba(255,255,255,.72);
    margin-bottom: 10px;
    font-weight: 500;
}
.czv-story-btns {
    display: flex;
    align-items: center;
    gap: 8px;
}
.czv-story-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: .875rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .15s, transform .1s;
    cursor: pointer;
    border: none;
    font-family: inherit;
}
.czv-story-btn:active { transform: scale(.97); }
.czv-story-call {
    background: rgba(255,255,255,.15);
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.25);
}
.czv-story-call:hover { background: rgba(255,255,255,.25); }
.czv-story-wa {
    background: #25D366;
    color: #fff;
}
.czv-story-wa:hover { background: #1fba57; }
.czv-story-save-btn {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background .15s;
}
.czv-story-save-btn:hover { background: rgba(255,255,255,.28); }
.czv-story-save-btn.saved svg { fill: #fff; }

/* ── Actions bar sits below the stories card ── */
.s-post-story .s-post-actions { border-top: none; background: var(--bg-card); }
/* 3-dot menu for story posts — positioned top-right of the card */
.s-story-menu { position: absolute; top: 52px; right: 12px; z-index: 30; }
.czv-story .s-dot-btn { color: #fff; }
.czv-story .s-dot-btn:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ── Mobile: slightly reduced ── */
@media (max-width: 640px) {
    .czv-story { aspect-ratio: 9/16; max-height: 80vh; }
    .czv-story-price { font-size: 1.15rem; }
}

/* ── Vote bar (post posts) ─────────────────────────────────── */
.s-post-actions-post { gap: 4px; }
.s-vote-bar {
    display: inline-flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
}
.s-vote-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: .8rem;
    font-weight: 700;
    color: var(--text-muted);
    font-family: inherit;
    transition: color .15s, background .15s;
    line-height: 1;
}
.s-vote-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.s-vote-btn:disabled { cursor: default; opacity: .6; }




.s-vote-count { min-width: 14px; text-align: center; }
.s-vote-divider { width: 1px; height: 20px; background: var(--border-light); flex-shrink: 0; }
.s-view-count { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--text-muted); padding: 5px 8px; pointer-events: none; user-select: none; }
.s-view-count-right { margin-left: auto; }
.vote-pop { animation: vote-pop .35s ease forwards; }


/* ── Location chip ──────────────────────────────────────────── */
.dp-location {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .6875rem;
    color: var(--text-muted);
    padding: 0 16px 10px;
    font-weight: 500;
}
.dp-location-pin { display:flex;align-items:center;flex-shrink:0; }

/* ── Market price row (when no discount) ─────────────────────── */
.dp-market-only {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px 10px;
}

/* ── Filter bar redesign ─────────────────────────────────────── */
.s-controls-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.s-tabs { display: flex; gap: 2px; }
.s-tab {
    padding: 7px 16px;
    border-radius: 8px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: color .15s, background .15s;
}
.s-tab:hover { color: var(--text-primary); }
.s-tab.active { color: var(--primary); background: var(--primary-light); }

/* Sort pills */
.s-filter-bar {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
    margin-left: auto;
}
.s-sort-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 11px;
    border-radius: 100px;
    border: 1.5px solid var(--border-light);
    background: var(--bg-input);
    color: var(--text-secondary);
    font-size: .75rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
    white-space: nowrap;
    user-select: none;
}
.s-sort-pill:hover { border-color: var(--primary); color: var(--text-primary); }
.s-sort-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.s-sort-pill-icon { font-size: .875rem; line-height: 1; }

/* Location pill special */
.s-sort-pill-location.locating { opacity: .6; }

/* ── Post composer fields ────────────────────────────────────── */
.s-post-fields {
    border-top: 1px solid var(--border-light);
    padding: 12px 16px;
    background: rgba(var(--primary-rgb, 232,93,32), .03);
    animation: dp-slide-in .2s ease;
}
@keyframes dp-slide-in { from{opacity:0;transform:translateY(-6px)} to{opacity:1;transform:translateY(0)} }
.s-post-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.s-df-group { display: flex; flex-direction: column; gap: 4px; }
.s-df-label { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.s-df-input {
    background: var(--bg-input);
    border: 1.5px solid var(--border-light);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 7px 10px;
    font-size: .8125rem;
    font-family: inherit;
    outline: none;
    transition: border-color .15s;
    width: 100%;
}
.s-df-input:focus { border-color: var(--primary); }
.s-df-input[type=datetime-local]::-webkit-calendar-picker-indicator { filter: invert(.5); }
.s-df-discount-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 6px 10px;
    background: rgba(255,78,0,.08);
    border-radius: 8px;
    border: 1px dashed rgba(255,78,0,.3);
}
.s-df-disc-badge { font-size: .8125rem; font-weight: 900; color: #ff4e00; }
.s-df-disc-txt   { font-size: .8125rem; color: var(--text-secondary); }

/* ── Post toggle button active state ─────────────────────────── */
.s-pub-post-btn { position: relative; }
.s-pub-post-active { color: var(--primary) !important; }
.s-pub-post-active::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 50%;
    transform: translateX(-50%);
    width: 4px; height: 4px;
    background: var(--primary);
    border-radius: 50%;
}

/* ── Mobile post adjustments ─────────────────────────────────── */
@media (max-width: 520px) {
    .dp-price-amount { font-size: 1.1875rem; }
    .dp-discount-pct { font-size: 1.25rem; }
    .dp-discount-block { min-width: 60px; padding: 10px 12px; }
            .s-post-fields-grid { grid-template-columns: 1fr; }
    .s-filter-bar { gap: 4px; }
    .s-sort-pill { font-size: .6875rem; padding: 4px 8px; }
    .s-controls-row { gap: 0; padding-bottom: 4px; overflow: visible; flex-wrap: wrap; }
    .s-sort-dropdown-wrap { margin-left: auto; flex-shrink: 0; }
}

/* ── Post metadata chips ──────────────────────────────────────── */
.dp-chips {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    padding: 0 16px 10px;
}
.dp-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 9px;
    border-radius: 100px;
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .03em;
    border: 1px solid var(--border-light);
    background: var(--bg-input);
    color: var(--text-secondary);
}
.dp-chip-cat  { border-color: rgba(52,152,219,.3); color: #3498db; background: rgba(52,152,219,.07); }
.dp-chip-cond { border-color: rgba(17,153,142,.3); color: #11998e; background: rgba(17,153,142,.07); }
.dp-chip-neg  { border-color: rgba(236,159,5,.3);  color: #ec9f05; background: rgba(236,159,5,.07); }

/* ── WhatsApp contact button ──────────────────────────────────── */

/* ── Buy Now button (link_url posts) ────────────────────────── */
.s-desc-link { color: var(--accent, #ff4e00); text-decoration: none; word-break: break-all; font-size: inherit; }
.dp-wa-hint { display: none; font-size: .72rem; color: var(--primary, #ff4e00); margin-top: 4px; align-items: center; gap: 5px; }
.s-desc-link:hover { text-decoration: underline; }
.dp-buy-now-wrap { padding: 0 16px 14px; }
.dp-buy-now {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px 10px 10px;
    background: var(--bg-secondary, rgba(255,255,255,.04));
    border: 0.5px solid var(--border-light, rgba(255,255,255,.12));
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: border-color .15s, background .15s;
    justify-content: space-between;
}
.dp-buy-now:hover {
    background: var(--bg-elevated, rgba(255,255,255,.07));
    border-color: var(--border-medium, rgba(255,255,255,.22));
}
.dp-buy-now-left { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.dp-favicon-wrap {
    width: 36px; height: 36px;
    border-radius: 9px;
    background: var(--bg-card, rgba(255,255,255,.08));
    border: 0.5px solid var(--border-light, rgba(255,255,255,.12));
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; overflow: hidden;
}
.dp-favicon-wrap img { width: 22px; height: 22px; object-fit: contain; display: block; }
.dp-favicon-fallback {
    width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
}
.dp-buy-now-name { min-width: 0; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.dp-buy-now-label {
    font-size: .8125rem; font-weight: 600;
    color: var(--text-primary, #fff);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    line-height: 1.2;
}
.dp-buy-now-domain {
    font-size: .7rem;
    color: var(--text-secondary, rgba(255,255,255,.45));
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dp-buy-now-cta {
    display: inline-flex; align-items: center; gap: 5px;
    background: #0066ff;
    color: #fff;
    font-size: .75rem; font-weight: 700;
    padding: 7px 13px;
    border-radius: 8px;
    white-space: nowrap; flex-shrink: 0;
    transition: background .15s;
}
.dp-buy-now:hover .dp-buy-now-cta { background: #0052cc; }
.dp-buy-now-cta svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ── WhatsApp widget — inline footer row ── */
.dp-wa-widget {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px 6px 7px;
    background: var(--bg-card-raised);
    border: 1.5px solid #25D366;
    border-radius: 100px;
    text-decoration: none;
    flex-shrink: 0;
    transition: background .15s;
}
.dp-wa-widget:hover { background: rgba(37,211,102,.07); }
.dp-wa-avatar-wrap { position: relative; flex-shrink: 0; }
.dp-wa-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.dp-wa-avatar-fallback {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(37,211,102,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .6rem;
    font-weight: 700;
    color: #1a7a3a;
}
.dp-wa-wa-icon {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 13px;
    height: 13px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--bg-card-raised);
}
.dp-wa-wa-icon svg { display: block; }
.dp-wa-info { display: flex; flex-direction: column; min-width: 0; }
.dp-wa-name {
    font-size: .75rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}
.dp-wa-online {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: .62rem;
    font-weight: 600;
    color: #1a7a3a;
    line-height: 1.2;
}
.dp-wa-online::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #25D366;
    display: block;
    animation: dpWaPulse 2s ease infinite;
    flex-shrink: 0;
}
@keyframes dpWaPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}
.dp-wa-msg { display: none; }
.dp-wa-cta {
    flex-shrink: 0;
    background: #25D366;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Legacy fallback */
.dp-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    background: #25D366;
    color: #fff;
    font-size: .8125rem;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    transition: background .15s;
    width: 100%;
    justify-content: center;
}
.dp-wa-btn:hover { background: #1ebe5d; }


/* ── Video in gallery (CzVideo) ── */
.s-gal-video {
    position: relative;
    overflow: hidden;
    background: #000;
    width: 100%;
    /* Auto height based on video content */
    min-height: 200px;
}
.czv-vid {
    width: 100%;
    height: auto;
    display: block;
    max-height: 75vh;
    object-fit: contain;   /* show full video, no crop */
    background: #000;
}
/* Overlay covers video naturally */
.czv-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.15);
    cursor: pointer; z-index: 5;
}
.czv-overlay:active { background: rgba(0,0,0,.3); }
.czv-play-btn {
    width: 62px; height: 62px;
    background: rgba(0,0,0,.55);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: none;
}
/* Mobile: let video take natural height, max 85vh */
@media (max-width: 640px) {
    .czv-vid { max-height: 85vh; }
}

/* Video in lightbox */
.czlb-item video {
    max-width: min(860px, 100%);
    width: 100%; max-height: 90vh;
    object-fit: contain; display: block;
    background: #000;
}

/* ── Post post footer: Directions | Location | Save | Views ──── */
.dp-post-footer { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:10px 16px 12px; flex-wrap:wrap; }
.dp-post-footer-left  { display:flex; align-items:center; gap:8px; flex-wrap:wrap; min-width:0; }

/* ── Unified CTA bar (Call + WhatsApp + Save) ─────────────── */
.dp-cta-bar {
    padding: 10px 14px 14px;
    border-top: 1px solid var(--border-light);
}
.dp-cta-btns {
    display: flex;
    align-items: center;
    gap: 8px;
}
.dp-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 1;
    padding: 11px 16px;
    border-radius: 12px;
    font-size: .9rem;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: filter .15s, transform .1s;
    white-space: nowrap;
}
.dp-cta-btn:active { transform: scale(.97); }
.dp-cta-call {
    background: var(--bg-input, #f3f4f6);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}
.dp-cta-call:hover { filter: brightness(.95); }
.dp-cta-wa {
    background: #25D366;
    color: #fff;
}
.dp-cta-wa:hover { filter: brightness(1.07); }
.dp-cta-save {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-input, #f3f4f6);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    cursor: pointer;
    color: var(--text-muted);
    transition: background .15s, color .15s;
}
.dp-cta-save:hover { background: var(--bg-hover); color: var(--text-primary); }
.dp-cta-save.saved { color: var(--primary); }
.dp-cta-save.saved svg { fill: var(--primary); stroke: var(--primary); }
.dp-post-footer-right { display:flex; align-items:center; gap:10px; flex-shrink:0; }
.dp-directions-btn { display:inline-flex; align-items:center; gap:6px; padding:6px 14px; background:var(--primary); color:#fff; border-radius:100px; font-size:.78rem; font-weight:700; text-decoration:none; transition:opacity .15s; white-space:nowrap; flex-shrink:0; }
.dp-directions-btn:hover { opacity:.85; }
.dp-loc-chip { display:inline-flex; align-items:center; gap:5px; font-size:.76rem; color:var(--text-secondary); background:var(--bg-input); border:1px solid var(--border-light); border-radius:100px; padding:5px 10px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:200px; }
.dp-loc-chip svg { flex-shrink:0; opacity:.6; }
.dp-save-btn { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; background:var(--bg-input); border:1px solid var(--border-light); border-radius:50%; cursor:pointer; color:var(--text-secondary); transition:background .15s,color .15s,border-color .15s; }
.dp-save-btn:hover,.dp-save-btn.saved { background:rgba(255,78,0,.12); border-color:rgba(255,78,0,.5); color:var(--primary); }
.dp-views-chip { display:inline-flex; align-items:center; gap:4px; font-size:.76rem; font-weight:600; color:var(--text-muted); }
.dp-views-chip svg { opacity:.5; }


/* ── Sort Dropdown (replaces sort pills) ─────────────────────── */
.s-sort-dropdown-wrap {
    position: relative;
    margin-left: auto;
}
.s-sort-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-card, #f8fdfd);
    border: 1px solid var(--border-light, #3a3a42);
    border-radius: 8px;
    color: var(--text-secondary, #9898a0);
    font-size: .8125rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
    white-space: nowrap;
    user-select: none;
}
.s-sort-btn:hover,
.s-sort-dropdown-wrap.open .s-sort-btn {
    border-color: var(--primary, #E85D20);
    color: var(--text-primary, #e4e4e7);
}
.s-sort-chevron {
    transition: transform .2s;
    opacity: .6;
}
.s-sort-dropdown-wrap.open .s-sort-chevron {
    transform: rotate(180deg);
    opacity: 1;
}
.s-sort-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 180px;
    background: var(--bg-card, #f8fdfd);
    border: 1px solid var(--border-light, #3a3a42);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,.35);
    padding: 5px;
    z-index: 200;
    opacity: 0;
    transform: translateY(-6px) scale(.97);
    pointer-events: none;
    transition: opacity .15s, transform .15s;
}
.s-sort-menu.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.s-sort-option {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 8px 10px;
    background: none;
    border: none;
    border-radius: 7px;
    color: var(--text-secondary, #9898a0);
    font-size: .8125rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    transition: background .12s, color .12s;
}
.s-sort-option:hover {
    background: var(--bg-hover, rgba(255,255,255,.05));
    color: var(--text-primary, #e4e4e7);
}
.s-sort-option.active {
    color: var(--primary, #E85D20);
    background: var(--primary-light, rgba(232,93,32,.1));
    font-weight: 600;
}
.s-sort-option-location {
    color: var(--text-secondary, #9898a0);
}
.s-sort-option-location:hover {
    color: #3b82f6;
}
.s-sort-divider {
    height: 1px;
    background: var(--border-light, #3a3a42);
    margin: 4px 5px;
}
/* Hide old pills + search btn */
.s-filter-bar,
.sn-search-btn {
    display: none !important;
}
@media (max-width: 480px) {
    .s-sort-btn { padding: 5px 10px; font-size: .75rem; }
    .s-sort-menu { position: fixed; right: 10px; top: auto; min-width: 180px; z-index: 9999; }
}
/* ── Live Feed Banner ──────────────────────────────────────────── */
.s-live-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 18px;
    margin-bottom: 10px;
    background: var(--primary, #E85D20);
    color: #fff;
    border-radius: 10px;
    font-size: .875rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(232,93,32,.35);
}
.s-live-banner.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.s-live-banner:hover {
    background: #d44e32;
    box-shadow: 0 6px 20px rgba(232,93,32,.45);
}
.s-live-banner svg {
    animation: lb-bounce .9s ease-in-out infinite alternate;
    flex-shrink: 0;
}
@keyframes lb-bounce {
    from { transform: translateY(0); }
    to   { transform: translateY(-2px); }
}

/* Live pulse dot on Latest tab */
.s-tab-live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    margin-left: 5px;
    vertical-align: middle;
    opacity: 0;
    transition: opacity .3s;
}
.s-tab-live-dot.active {
    opacity: 1;
    animation: live-pulse 2s ease-in-out infinite;
}
@keyframes live-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,.5); }
    50%       { box-shadow: 0 0 0 5px rgba(16,185,129,0); }
}

/* ── WhatsApp share button ─────────────────────────────────────── */
.s-action-wa { color: #25D366 !important; }
.s-action-wa:hover { background: rgba(37,211,102,.12) !important; }
.s-action-wa svg { fill: currentColor; }

/* ── Skeleton loader ───────────────────────────────────────────── */
.s-skeleton { background: var(--card-bg, var(--bg-card, #f8fdfd)); border: 1px solid var(--border-color, var(--border-light, #cceaea)); border-radius: 14px; padding: 1rem; margin-bottom: .875rem; overflow: hidden; }
.s-skel-row { display: flex; align-items: center; gap: .75rem; margin-bottom: .875rem; }
.s-skel-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--skel-color, #e8e2d6); flex-shrink: 0; }
.s-skel-line { height: 10px; border-radius: 5px; background: var(--skel-color, #e8e2d6); }
.s-skel-img { height: 220px; border-radius: 10px; background: var(--skel-color, #e8e2d6); margin-bottom: .875rem; }
@keyframes skel-shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position:  400px 0; }
}
.s-skeleton .s-skel-avatar,
.s-skeleton .s-skel-line,
.s-skeleton .s-skel-img {
    background: linear-gradient(90deg, var(--skel-color, #e8e2d6) 25%, #d8d2c8 50%, var(--skel-color, #e8e2d6) 75%);
    background-size: 800px 100%;
    animation: skel-shimmer 1.4s ease-in-out infinite;
}

/* ── Promote Post menu item ─────────────────────────────────── */
.s-mi-promote { color: #f59e0b !important; }
.s-mi-promote:hover { background: rgba(245,158,11,.08) !important; color: #f59e0b !important; }
.s-mi-promote svg { stroke: currentColor; }

/* ── Promoted badge on feed card ─────────────────────────────── */
.s-promoted-badge { display: inline-flex; align-items: center; gap: 4px; background: linear-gradient(135deg,#f59e0b,#ef6c00); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 20px; margin: -4px 0 8px 14px; }

/* ── Promote modal ───────────────────────────────────────────── */
.prm-box { width: 440px; padding: 0 !important; overflow: hidden; text-align: left !important; }
.prm-header { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); padding: 26px 26px 20px; border-bottom: 1px solid var(--border); }
.prm-title { font-size: 1.1rem; font-weight: 800; color: var(--text-primary); display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.prm-subtitle { font-size: .78rem; color: var(--text-secondary); }
.prm-active-badge { background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.3); border-radius: 8px; padding: 8px 14px; font-size: .8rem; color: #f59e0b; font-weight: 600; margin: 14px 20px 0; }
.prm-body { padding: 20px 24px; }
.prm-perks { display: flex; flex-direction: column; gap: 5px; margin-bottom: 18px; padding: 12px 16px; background: rgba(245,158,11,.05); border: 1px solid rgba(245,158,11,.12); border-radius: 10px; }
.prm-perk { font-size: .8rem; color: var(--text-secondary); }
.prm-days-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-secondary); margin-bottom: 10px; }
.prm-presets { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 14px; }
.prm-preset { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--bg-page); color: var(--text-primary); font-size: .8rem; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s; }
.prm-preset span { font-size: .7rem; color: var(--text-secondary); font-weight: 500; }
.prm-preset em { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); background: #E85D20; color: #fff; font-size: .55rem; font-weight: 800; font-style: normal; padding: 1px 6px; border-radius: 10px; white-space: nowrap; }
.prm-preset:hover, .prm-preset.active { border-color: #f59e0b; background: rgba(245,158,11,.06); color: #f59e0b; }
.prm-preset.active span { color: #f59e0b; }
.prm-preset-pop { border-color: rgba(245,158,11,.35); }
.prm-custom-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: .82rem; color: var(--text-secondary); }
.prm-days-inp { width: 70px; padding: 6px 10px; border-radius: 8px; border: 1.5px solid var(--border); background: var(--bg-page); color: var(--text-primary); font-size: .9rem; text-align: center; }
.prm-days-inp:focus { outline: none; border-color: #f59e0b; }
.prm-summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; background: var(--bg-page); border-radius: 9px; border: 1px solid var(--border); font-size: .82rem; }
.prm-cost-label { color: var(--text-secondary); }
.prm-cost-val { font-weight: 700; color: #f59e0b; font-size: 1rem; }
.prm-bal { margin-left: auto; color: var(--text-secondary); }
.prm-bal strong { color: var(--text-primary); }
.prm-warn { font-size: .8rem; color: #ef4444; margin-top: 8px; padding: 8px 12px; background: rgba(239,68,68,.07); border-radius: 8px; }
.prm-warn a { color: #ef4444; font-weight: 600; }
.prm-confirm-btn { background: linear-gradient(135deg, #f59e0b, #ef6c00) !important; border-color: transparent !important; font-weight: 700; }
.prm-confirm-btn:disabled { opacity: .45; cursor: not-allowed; }
.prm-box .sc-modal-foot { padding: 16px 24px 20px; border-top: 1px solid var(--border); justify-content: flex-end; }
@media (max-width:480px) { .prm-box { width: 100% !important; } .prm-presets { grid-template-columns: repeat(2,1fr); } }

/* ── Sponsored feed card ────────────────────────────────────── */
.s-post-sponsored { /* border removed */ }
.s-post-time-row { display:flex; align-items:center; gap:6px; margin-top:1px; }
.s-sponsored-inline {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: .65rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: .03em;
}
.s-sponsored-inline svg { opacity: .6; fill: var(--text-muted); flex-shrink:0; }

/* ── Promoted Posts Slider ──────────────────────────────────────── */
.promo-slider-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px; padding: 0 2px;
}
.promo-slider-title {
    display: flex; align-items: center; gap: 6px;
    font-size: .75rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: .07em; color: #f59e0b;
}
.promo-slider-nav { display: flex; gap: 6px; }
.promo-nav-btn {
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: 8px; color: var(--text-secondary); cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
    padding: 0;
}
.promo-nav-btn:hover { border-color: #f59e0b; color: #f59e0b; background: rgba(245,158,11,.08); }
.promo-nav-btn:disabled { opacity: .35; cursor: default; }

.promo-slider-viewport {
    overflow: hidden; border-radius: 12px; cursor: grab; user-select: none;
}
.promo-slider-viewport:active { cursor: grabbing; }
.promo-slider-track {
    display: flex; gap: 10px;
    transition: transform .35s cubic-bezier(.25,.46,.45,.94);
    will-change: transform;
}

/* Each promoted card */
.promo-card {
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    text-decoration: none;
    display: block;
}
.promo-card:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.25); border-color: rgba(245,158,11,.35); }
.promo-card-img {
    width: 100%; aspect-ratio: 16/9; object-fit: cover;
    background: var(--bg-elevated);
    display: block;
}
.promo-card-img-placeholder {
    width: 100%; aspect-ratio: 16/9;
    background: linear-gradient(135deg, rgba(245,158,11,.08), rgba(239,108,0,.05));
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
}
.promo-card-body { padding: 11px 13px 13px; }
.promo-card-badge {
    display: inline-flex; align-items: center; gap: 4px;
    background: linear-gradient(135deg,rgba(245,158,11,.18),rgba(239,108,0,.1));
    border: 1px solid rgba(245,158,11,.3); border-radius: 100px;
    color: #f59e0b; font-size: .6rem; font-weight: 800;
    letter-spacing: .05em; text-transform: uppercase;
    padding: 2px 8px; margin-bottom: 6px;
}
.promo-card-title {
    font-size: .8375rem; font-weight: 600; color: var(--text-primary);
    line-height: 1.35; margin-bottom: 6px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.promo-card-meta {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    flex-wrap: wrap;
}
.promo-card-price {
    font-size: 1rem; font-weight: 800; color: var(--primary);
    white-space: nowrap;
}
.promo-card-price small { font-size: .6rem; font-weight: 600; opacity: .7; margin-left: 2px; }
.promo-card-discount {
    font-size: .65rem; font-weight: 800; background: linear-gradient(135deg,#10b981,#059669);
    color: #fff; padding: 2px 7px; border-radius: 100px;
}
.promo-card-seller {
    display: flex; align-items: center; gap: 5px;
    font-size: .72rem; color: var(--text-muted);
    margin-top: 7px;
}
.promo-card-seller-av {
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--primary-light); color: var(--primary);
    font-size: .55rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; flex-shrink: 0;
}
.promo-card-seller-av img { width: 100%; height: 100%; object-fit: cover; }

/* Dots */
.promo-dots {
    display: flex; justify-content: center; gap: 5px; margin-top: 10px;
}
.promo-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--border); transition: background .2s, transform .2s;
    cursor: pointer;
}
.promo-dot.active { background: #f59e0b; transform: scale(1.3); }

/* Responsive card widths */
@media (min-width: 601px) {
    .promo-card { width: calc((100% - 20px) / 3); }
}
@media (max-width: 600px) {
    .promo-card { width: calc(85vw); }
    #promotedSliderWrap { margin: 0 -10px 12px; }
    .promo-slider-header { padding: 0 10px; }
    .promo-slider-viewport { border-radius: 0; }
    .promo-dots { margin-top: 8px; }
}

/* ─── Edit Post / Post Modal ─────────────────────────────────── */
.em-box { width:100%; max-width:560px; padding:0; max-height:90vh; display:flex; flex-direction:column; border-radius:14px; overflow:hidden; }
.em-hdr { display:flex; align-items:center; gap:10px; padding:16px 20px; border-bottom:1px solid var(--border-light); flex-shrink:0; }
.em-close { background:none; border:none; font-size:1.5rem; cursor:pointer; color:var(--text-muted); line-height:1; padding:0 2px; }
.em-body { padding:18px 20px; overflow-y:auto; display:flex; flex-direction:column; gap:13px; }
.em-foot { padding:14px 20px; border-top:1px solid var(--border-light); display:flex; gap:8px; justify-content:flex-end; flex-shrink:0; }
.em-sep { height:1px; background:var(--border-light); margin:2px 0; }
.em-field { display:flex; flex-direction:column; gap:5px; }
.em-lbl { font-size:.7rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--text-muted); }
.em-hint { font-size:.68rem; color:var(--text-muted); margin-top:2px; }
.em-inp { background:var(--bg-input,#fafafa); border:1.5px solid var(--border-light); border-radius:8px; padding:8px 11px; font-size:.875rem; color:var(--text-primary); font-family:inherit; outline:none; width:100%; box-sizing:border-box; transition:border-color .15s; }
.em-inp:focus { border-color:var(--primary); }
.em-sel { background:var(--bg-input,#fafafa); border:1.5px solid var(--border-light); border-radius:8px; padding:8px 11px; font-size:.875rem; color:var(--text-primary); font-family:inherit; outline:none; width:100%; box-sizing:border-box; cursor:pointer; -webkit-appearance:none; appearance:none; transition:border-color .15s; }
.em-sel:focus { border-color:var(--primary); }
.em-txt { background:var(--bg-input,#fafafa); border:1.5px solid var(--border-light); border-radius:8px; padding:9px 12px; font-size:.875rem; color:var(--text-primary); font-family:inherit; outline:none; width:100%; box-sizing:border-box; resize:vertical; min-height:90px; transition:border-color .15s; }
.em-txt:focus { border-color:var(--primary); }
.em-pfx { position:relative; display:flex; align-items:center; }
.em-pfx > span { position:absolute; left:10px; font-size:.75rem; font-weight:700; color:var(--text-muted); pointer-events:none; z-index:1; }
.em-pfx .em-inp { padding-left:40px; }
.em-row2 { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.em-chk { display:flex; align-items:center; gap:8px; font-size:.875rem; cursor:pointer; color:var(--text-primary); }
.em-chk input { cursor:pointer; }
@media(max-width:520px){ .em-row2 { grid-template-columns:1fr; } }

/* ── Professional Report Modal ─────────────────────────────────────── */
.czr-box {
    position:relative;background:var(--bg-card);border:1px solid var(--border);
    border-radius:16px;width:480px;max-width:calc(100vw - 32px);
    box-shadow:0 24px 64px rgba(0,0,0,.55);
    transform:scale(.95) translateY(10px);transition:transform .25s,opacity .25s;
    overflow:hidden;display:flex;flex-direction:column;max-height:90vh;
}
.sc-modal-wrap.sc-open .czr-box{transform:scale(1) translateY(0)}

/* Header */
.czr-header {
    display:flex;align-items:center;gap:12px;
    padding:20px 20px 16px;border-bottom:1px solid var(--border-light);flex-shrink:0;
}
.czr-header-icon {
    width:40px;height:40px;background:rgba(239,68,68,.1);border-radius:10px;
    display:flex;align-items:center;justify-content:center;color:#ef4444;flex-shrink:0;
}
.czr-title{font-size:1rem;font-weight:700;color:var(--text-primary);line-height:1.2}
.czr-subtitle{font-size:.75rem;color:var(--text-muted);margin-top:2px}
.czr-close {
    margin-left:auto;width:32px;height:32px;border:none;background:none;
    color:var(--text-muted);cursor:pointer;border-radius:8px;display:flex;
    align-items:center;justify-content:center;transition:background .15s,color .15s;flex-shrink:0;
}
.czr-close:hover{background:var(--bg-page);color:var(--text-primary)}

/* Step label */
.czr-step-label {
    padding:14px 20px 8px;font-size:.72rem;font-weight:700;text-transform:uppercase;
    letter-spacing:.06em;color:var(--text-muted);
}

/* Reason list */
.czr-reasons{padding:0 12px 12px;display:flex;flex-direction:column;gap:4px;overflow-y:auto}
.czr-reason-btn {
    display:flex;align-items:center;gap:12px;padding:11px 12px;
    background:none;border:1.5px solid transparent;border-radius:10px;
    cursor:pointer;text-align:left;width:100%;transition:all .15s;color:var(--text-primary);
    font-family:inherit;
}
.czr-reason-btn:hover{background:var(--bg-page);border-color:var(--border)}
.czr-reason-btn.selected{background:rgba(232,93,32,.07);border-color:var(--primary)}
.czr-reason-icon{
    width:36px;height:36px;flex-shrink:0;display:flex;align-items:center;justify-content:center;
    background:var(--bg-page);border-radius:9px;color:var(--text-secondary);transition:all .15s;
}
.czr-reason-btn:hover .czr-reason-icon,.czr-reason-btn.selected .czr-reason-icon{
    background:rgba(232,93,32,.1);color:var(--primary);
}
.czr-reason-text{flex:1;min-width:0}
.czr-reason-label{display:block;font-size:.875rem;font-weight:600;color:var(--text-primary)}
.czr-reason-desc{display:block;font-size:.74rem;color:var(--text-muted);margin-top:1px;line-height:1.4}
.czr-reason-check{
    width:20px;height:20px;flex-shrink:0;border-radius:50%;
    border:2px solid var(--border);display:flex;align-items:center;justify-content:center;
    color:transparent;transition:all .15s;
}
.czr-reason-btn.selected .czr-reason-check{
    background:var(--primary);border-color:var(--primary);color:#fff;
}

/* Step 2 */
#czr-step2{padding:0 20px}
.czr-sel-pill {
    display:inline-flex;align-items:center;gap:8px;
    padding:7px 12px;background:rgba(232,93,32,.08);border:1px solid rgba(232,93,32,.2);
    border-radius:100px;font-size:.8125rem;font-weight:600;color:var(--primary);
}
.czr-sel-icon{display:flex;align-items:center}
.czr-textarea {
    width:100%;padding:.7rem .875rem;background:var(--bg-input);
    border:1.5px solid var(--border);border-radius:10px;color:var(--text-primary);
    font-family:inherit;font-size:.875rem;resize:vertical;min-height:90px;
    outline:none;transition:border-color .2s,box-shadow .2s;box-sizing:border-box;margin-top:8px;
}
.czr-textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(232,93,32,.08)}
.czr-char-count{font-size:.72rem;color:var(--text-muted);text-align:right;margin-top:4px;margin-bottom:12px}

/* Footer */
.czr-footer{
    display:flex;align-items:center;gap:8px;padding:14px 20px 18px;
    border-top:1px solid var(--border-light);flex-shrink:0;margin-top:4px;
}
.czr-btn-back{
    display:flex;align-items:center;gap:5px;padding:8px 14px;
    background:none;border:1px solid var(--border);border-radius:8px;
    color:var(--text-secondary);font-size:.8125rem;font-weight:600;
    cursor:pointer;font-family:inherit;transition:background .15s;
}
.czr-btn-back:hover{background:var(--bg-page)}
.czr-btn-cancel{
    padding:8px 16px;background:none;border:1px solid var(--border);border-radius:8px;
    color:var(--text-secondary);font-size:.8125rem;font-weight:600;
    cursor:pointer;font-family:inherit;transition:background .15s;
}
.czr-btn-cancel:hover{background:var(--bg-page)}
.czr-btn-submit{
    margin-left:auto;display:flex;align-items:center;gap:7px;
    padding:9px 20px;background:#ef4444;border:none;border-radius:8px;
    color:#fff;font-size:.8125rem;font-weight:700;cursor:pointer;
    font-family:inherit;transition:filter .15s,opacity .15s;
}
.czr-btn-submit:hover:not(:disabled){filter:brightness(1.1)}
.czr-btn-submit:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:520px){
    .czr-box{width:100%;border-radius:16px 16px 0 0;position:fixed;bottom:0;left:0;right:0;max-height:85vh}
    .sc-modal-wrap{align-items:flex-end;padding:0}
    .sc-modal-wrap .czr-box{transform:translateY(20px)}
    .sc-modal-wrap.sc-open .czr-box{transform:translateY(0)}
}

/* ── Edit Post modal — updated header & helpers ────────────────────── */
.em-hdr { display:flex; align-items:center; gap:10px; padding:16px 20px; border-bottom:1px solid var(--border-light); flex-shrink:0; }
.em-hdr-icon { width:36px;height:36px;background:rgba(232,93,32,.1);border-radius:9px;display:flex;align-items:center;justify-content:center;color:var(--primary);flex-shrink:0; }
.em-hdr-title { font-size:.9375rem; font-weight:700; color:var(--text-primary); line-height:1.2; }
.em-hdr-sub { font-size:.72rem; color:var(--text-muted); margin-top:1px; }
.em-close { margin-left:auto;width:30px;height:30px;background:none;border:none;cursor:pointer;color:var(--text-muted);border-radius:7px;display:flex;align-items:center;justify-content:center;transition:background .15s,color .15s; }
.em-close:hover { background:var(--bg-page);color:var(--text-primary); }
.em-lbl { display:flex;align-items:center;gap:5px;font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted);margin-bottom:6px; }
.em-lbl-note { font-weight:400;text-transform:none;letter-spacing:0;color:var(--text-muted);font-size:.68rem; }
.em-clear-exp { margin-top:5px;background:none;border:none;color:var(--text-muted);font-size:.75rem;cursor:pointer;padding:0;font-family:inherit;transition:color .15s; }
.em-clear-exp:hover { color:#ef4444; }

/* ── Live post popup ─────────────────────────────────────────── */
.czlive-popup {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 10000;
    width: min(440px, calc(100vw - 32px));
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,.35), 0 0 0 1px rgba(232,93,32,.15);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px 10px 10px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, transform .3s;
    overflow: hidden;
}
.czlive-popup.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.czlive-popup:hover { filter: brightness(1.04); }

/* Animated glow border */
.czlive-glow {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(90deg, #E85D20, #5eead4, #E85D20);
    background-size: 200% 100%;
    opacity: 0;
    animation: czlive-glow-pulse 2s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}
@keyframes czlive-glow-pulse {
    0%,100% { opacity: 0; }
    50%      { opacity: .08; }
}

/* Live red dot */
.czlive-live-dot {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 0 rgba(239,68,68,.4);
    animation: czlive-ping 1.5s ease-in-out infinite;
    z-index: 2;
}
@keyframes czlive-ping {
    0%   { box-shadow: 0 0 0 0 rgba(239,68,68,.5); }
    70%  { box-shadow: 0 0 0 7px rgba(239,68,68,0); }
    100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}

/* Thumbnail */
.czlive-thumb {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    z-index: 1;
}
.czlive-thumb-empty {
    background: rgba(232,93,32,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

/* Body text */
.czlive-body {
    flex: 1;
    min-width: 0;
    z-index: 1;
}
.czlive-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--primary);
    margin-bottom: 3px;
}
.czlive-title {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.czlive-price {
    font-size: .875rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.czlive-disc {
    font-size: .7rem;
    font-weight: 700;
    background: var(--primary);
    color: #fff;
    padding: 1px 5px;
    border-radius: 4px;
}
.czlive-more {
    font-size: .72rem;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
    z-index: 1;
}
.czlive-arrow {
    color: var(--text-muted);
    z-index: 1;
    flex-shrink: 0;
}
.czlive-dismiss {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg-page);
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: background .15s, color .15s;
}
.czlive-dismiss:hover { background: rgba(239,68,68,.12); color: #ef4444; }

@media (max-width: 600px) {
    .czlive-popup { bottom: 70px; }
}

/* ── Multi-post stacked thumbnails ───────────────────────────── */
.czlive-stack {
    position: relative;
    width: 72px;
    height: 60px;
    flex-shrink: 0;
    z-index: 1;
}
.czlive-stack-img {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--bg-card);
    top: 0;
    transition: transform .2s;
}
.czlive-stack-img:nth-child(1) { left: 0;  top: 0;  }
.czlive-stack-img:nth-child(2) { left: 10px; top: 8px; }
.czlive-stack-img:nth-child(3) { left: 20px; top: 14px; }
.czlive-stack-img:nth-child(4) { left: 28px; top: 20px; }
.czlive-popup:hover .czlive-stack-img:nth-child(2) { transform: translateX(-4px); }
.czlive-popup:hover .czlive-stack-img:nth-child(3) { transform: translateX(-8px); }
.czlive-popup:hover .czlive-stack-img:nth-child(4) { transform: translateX(-12px); }
.czlive-stack-more {
    position: absolute;
    right: 0;
    bottom: 0;
    background: var(--primary);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 6px;
    z-index: 10;
}
.czlive-stack-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: rgba(232,93,32,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    z-index: 1;
}
.czlive-tap-hint {
    font-size: .7rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 2px;
}
/* Multi mode — slightly taller card */
.czlive-popup.czlive-multi {
    box-shadow: 0 12px 48px rgba(0,0,0,.4), 0 0 0 1px rgba(232,93,32,.2);
}


/* ════════════════════════════════════════════════════════════════
   V1.3 Professional Polish Additions
   ════════════════════════════════════════════════════════════════ */

/* Post price badge — more prominent */
.s-post-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -.02em;
}
.s-post-market-price {
    font-size: .8rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 500;
}
.s-post-discount {
    background: linear-gradient(135deg, var(--primary), #005c5c);
    color: #fff;
    font-size: .65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    letter-spacing: .02em;
}

/* Follow button — pill style */
.s-follow-btn {
    border-radius: var(--radius-full) !important;
    font-size: .78rem !important;
    padding: 5px 14px !important;
    font-weight: 700 !important;
    letter-spacing: -.01em;
}

/* Verified badge — clean */
.s-verified-badge svg {
    filter: drop-shadow(0 1px 1px rgba(232,93,32,.2));
}

/* Search bar — pill style */
.s-global-search {
    border-radius: var(--radius-full) !important;
    background: var(--bg-card-raised) !important;
    border: 1.5px solid var(--border) !important;
    box-shadow: var(--shadow-xs) !important;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast) !important;
}
.s-global-search:focus-within {
    border-color: var(--primary) !important;
    box-shadow: var(--shadow-focus) !important;
}

/* Trending tag row — cleaner hover */
.s-trending-tag:hover {
    background: var(--bg-active) !important;
    color: var(--primary) !important;
}

/* Reaction picker popup — card shadow */
.s-rp {
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--border-light) !important;
    border-radius: var(--radius-full) !important;
}

/* Comment input — rounder */
.s-comment-input input {
    border-radius: var(--radius-full) !important;
    background: var(--bg-input) !important;
    font-size: .8125rem;
}

/* Profile avatar ring */
.s-post-avatar img {
    box-shadow: 0 0 0 2px var(--bg-card-raised), 0 0 0 3px var(--border-light);
}

/* Image gallery rounded corners for single image */
.s-gallery-1 .s-gal-img img {
    border-radius: 0;
}

/* Skeleton loader — cream tones */
:root .s-skeleton {
    background: var(--bg-card-raised) !important;
    border-color: var(--border-light) !important;
}
:root .s-skel-avatar,
:root .s-skel-line,
:root .s-skel-img {
    background: var(--border-light) !important;
}

/* Scrollbar — thin, warm */
.s-page-scroll {
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.s-page-scroll::-webkit-scrollbar { width: 4px; }
.s-page-scroll::-webkit-scrollbar-track { background: transparent; }
.s-page-scroll::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

/* ── Slot-machine number animation ──────────────────────────── */
.s-num-wrap{display:inline-block;overflow:hidden;vertical-align:middle;line-height:1.2}
.s-num-slot{display:flex;flex-direction:column;transition:none}
.s-num-slot.slide{animation:numSlideUp .25s cubic-bezier(.22,1,.36,1) forwards}
@keyframes numSlideUp{from{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}
/* Hide browser download/cast/PiP overlay on videos */
.czv-vid::-webkit-media-controls-overlay-play-button { display: none !important; }
.czv-vid::-webkit-media-controls { display: none !important; }
.czv-vid::-webkit-media-controls-enclosure { display: none !important; }
.czv-vid::-webkit-media-controls-panel { display: none !important; }
video.czv-vid { -webkit-touch-callout: none; pointer-events: none; }
.czv-story, .s-gal-video { pointer-events: auto; }
/* Comment vote buttons */
.s-cvote-btn { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 600; color: var(--text-secondary); padding: 3px 8px; border-radius: 20px; border: 1px solid var(--border-light); background: var(--bg-card); transition: color .15s, background .15s, border-color .15s; cursor: pointer; }
.s-cvote-btn:hover { background: var(--bg-input); border-color: var(--border); }
.s-cvote-up.active { color: #1d9bf0; border-color: #1d9bf0; background: rgba(29,155,240,.08); }
.s-cvote-dn.active { color: #e0245e; border-color: #e0245e; background: rgba(224,36,94,.08); }

.s-vote-up.active{color:#1d9bf0;border-color:#1d9bf0;background:rgba(29,155,240,.08)}
.s-vote-down.active{color:#e0245e;border-color:#e0245e;background:rgba(224,36,94,.08)}


    50%       { opacity: .85; transform: scale(1.05); }
}

/* ── Message button in CTA bar ──────────────────────────────── */
.dp-cta-msg { background: var(--primary); color: #fff; border: none; display:inline-flex;align-items:center;gap:6px;padding:0 16px;border-radius:12px;font-size:.875rem;font-weight:600;cursor:pointer;font-family:inherit;transition:filter .15s;text-decoration:none; }
.dp-cta-msg:hover { filter: brightness(.92); }

/* ── Messages inbox layout ───────────────────────────────────── */
.msg-layout { display:flex;height:calc(100vh - 60px);overflow:hidden;max-width:960px;margin:0 auto;border-left:1px solid var(--border-light);border-right:1px solid var(--border-light) }

/* ── Inline follow button next to username ──────────────────── */
.s-follow-inline {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 700;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    background: none;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.6;
    transition: background .15s, color .15s;
    flex-shrink: 0;
    white-space: nowrap;
}
.s-follow-inline:hover { background: var(--primary); color: #fff; }
.s-follow-inline-story {
    color: #fff !important;
    border-color: rgba(255,255,255,.7) !important;
    font-size: .68rem;
}
.s-follow-inline-story:hover { background: rgba(255,255,255,.2) !important; color: #fff !important; }
