/* =============================================
   REELS.CSS — TikTok × Instagram dark aesthetic
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

:root {
  --bg:          #000000;
  --bg2:         #0d0d0d;
  --bg3:         #1a1a1a;
  --surface:     #111111;
  --border:      rgba(255,255,255,0.08);
  --text:        #ffffff;
  --text2:       rgba(255,255,255,0.65);
  --text3:       rgba(255,255,255,0.38);
  --accent:      #fe2c55;
  --accent2:     #25f4ee;
  --accent-glow: rgba(254,44,85,0.4);
  --green:       #20c954;
  --nav-h:       56px;
  --bnav-h:      68px;
  --radius:      12px;
  --transition:  0.22s cubic-bezier(.4,0,.2,1);
  --font:        'DM Sans', sans-serif;
  --font-mono:   'DM Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  width: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
/* ------------------------------
   VERIFIED BADGE BASE
--------------------------------*/
.verified-spiky {
  position: relative;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default;

  clip-path: polygon(
    50% 0%, 62% 10%, 78% 6%, 82% 22%,
    100% 50%, 82% 78%, 78% 94%, 62% 90%,
    50% 100%, 38% 90%, 22% 94%, 18% 78%,
    0% 50%, 18% 22%, 22% 6%, 38% 10%
  );

  animation: pulseGlow 2.6s infinite ease-in-out;
    animation: heartBeat 1.5s infinite;

  transition: transform .25s ease, box-shadow .25s ease;
  
}

/* Check icon */
.verified-spiky svg {
  width: 13px;
  height: 13px;
  fill: #fff;
  z-index: 2;
}

/* Gloss highlight */
.verified-spiky::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: radial-gradient(
    circle at top left,
    rgba(255,255,255,.5),
    transparent 65%
  );
  clip-path: inherit;
  pointer-events: none;
}

/* ------------------------------ 
   ROLE COLORS
--------------------------------*/
.verified-spiky.pro {
  background: linear-gradient(135deg, #1d9bf0, #3b82f6, #6366f1);
  box-shadow: 0 0 10px rgba(29,155,240,.6);
}

.verified-spiky.admin {
  background: linear-gradient(135deg, #facc15, #f59e0b, #d97706);
  box-shadow: 0 0 12px rgba(245,158,11,.7);
}
 /* ------------------------------ 
   BUSINESS VERIFIED BADGE
--------------------------------*/
.verified-spiky.business {
  background: linear-gradient(135deg, #10b981, #14b8a6, #06b6d4); /* greenish gradient for business */
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.7);
}

@keyframes heartBeat {
  0% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.3);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.3);
  }
  70% {
    transform: scale(1);
  }
  100% {
    transform: scale(1);
  }
}
/* ------------------------------
   PULSE ANIMATION
--------------------------------*/
@keyframes pulseGlow {
  0% { box-shadow: 0 0 6px rgba(255,255,255,.3); }
  50% { box-shadow: 0 0 14px rgba(255,255,255,.8); }
  100% { box-shadow: 0 0 6px rgba(255,255,255,.3); }
}

/* ------------------------------
   HOVER EFFECT
--------------------------------*/
.verified-spiky:hover {
  transform: scale(1.15) rotate(6deg);
}

/* ------------------------------
   TOOLTIP
--------------------------------*/
.verified-spiky::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, .95);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.verified-spiky:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}
/* ── TOP NAV ─────────────────────────────────── */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, transparent 100%);
  backdrop-filter: blur(0px);
}
.top-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 16px;
}
.feed-tabs {
  display: flex;
  gap: 4px;
}
.feed-tab {
  background: none;
  border: none;
  color: var(--text2);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  padding: 6px 10px;
  cursor: pointer;
  position: relative;
  transition: color var(--transition);
  letter-spacing: -0.01em;
}
.feed-tab.active { color: var(--text); }
.feed-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
}
.top-nav-right { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  color: var(--text);
  font-size: 22px;
  text-decoration: none;
  display: flex;
  align-items: center;
  opacity: 0.9;
  transition: opacity var(--transition);
}
.icon-btn:hover { opacity: 1; }
.top-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-login {
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.4);
  padding: 5px 14px;
  border-radius: 6px;
  transition: background var(--transition);
}
.btn-login:hover { background: rgba(255,255,255,0.1); }

/* ── REELS FEED ──────────────────────────────── */
.reels-feed {
  position: fixed;
  inset: 0;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: var(--bg);
}
.reels-feed::-webkit-scrollbar { display: none; }

/* ── SINGLE REEL ─────────────────────────────── */
.reel-item {
  position: relative;
  width: 100%;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reel-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  cursor: pointer;
}

/* Gradient overlays */
.reel-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent);
  z-index: 2;
  pointer-events: none;
}
.reel-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 280px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

/* Thumbnail */
.reel-thumb {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: opacity 0.3s;
}

/* Play/pause tap indicator */
.reel-tap-indicator {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  pointer-events: none;
}
.tap-icon {
  width: 72px; height: 72px;
  background: rgba(0,0,0,0.45);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s, transform 0.2s;
}
.tap-icon.show {
  opacity: 1;
  transform: scale(1);
  animation: tap-fade 0.6s forwards;
}
@keyframes tap-fade {
  0%   { opacity: 1; transform: scale(1); }
  60%  { opacity: 1; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(1.3); }
}

/* ── REEL INFO (bottom-left) ─────────────────── */
.reel-info {
  position: absolute;
  bottom: calc(var(--bnav-h) + 20px);
  left: 0;
  right: 72px;
  z-index: 10;
  padding: 0 16px;
}
.reel-user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.reel-avatar-wrap { position: relative; flex-shrink: 0; }
.reel-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.7);
  display: block;
}
.follow-badge {
  position: absolute;
  bottom: -4px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 18px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #fff;
  cursor: pointer;
  transition: transform var(--transition);
}
.follow-badge.following {
  background: var(--bg3);
  border-color: rgba(255,255,255,0.3);
}
.follow-badge:hover { transform: translateX(-50%) scale(1.15); }

.reel-username {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.reel-username:hover { color: var(--text2); }
.reel-verified { color: var(--accent2); font-size: 13px; margin-left: 3px; }

.reel-caption {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.2s;
}
.reel-caption.expanded {
  -webkit-line-clamp: unset;
  overflow: visible;
}
.caption-more {
  color: var(--text2);
  font-size: 12px;
  cursor: pointer;
  display: inline-block;
  margin-top: 2px;
}

.reel-hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.reel-hashtag {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  background: rgba(255,255,255,0.08);
  padding: 2px 8px;
  border-radius: 20px;
  transition: background var(--transition);
}
.reel-hashtag:hover { background: rgba(255,255,255,0.15); color: var(--text); }

.reel-music {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text2);
}
.reel-music i { color: var(--text); font-size: 13px; }
.music-ticker {
  overflow: hidden;
  max-width: 180px;
  white-space: nowrap;
}
.music-ticker-inner {
  display: inline-block;
  animation: music-scroll 8s linear infinite;
}
@keyframes music-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ── ACTION SIDEBAR (right) ──────────────────── */
.reel-actions {
  position: absolute;
  bottom: calc(var(--bnav-h) + 16px);
  right: 10px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  color: var(--text);
  transition: transform var(--transition);
  user-select: none;
  -webkit-user-select: none;
}
.action-btn:active { transform: scale(0.88); }

.action-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  backdrop-filter: blur(4px);
  transition: background var(--transition), transform var(--transition);
}
.action-btn:hover .action-icon { background: rgba(255,255,255,0.2); }

.action-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0;
  line-height: 1;
}

/* Like animation */
.action-btn.liked .action-icon {
  background: rgba(254,44,85,0.2);
  color: var(--accent);
}
.action-btn.liked .action-icon i { color: var(--accent); }

@keyframes like-pop {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.35); }
  60%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}
.action-btn.like-animate .action-icon {
  animation: like-pop 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

/* Music disc */
.music-disc {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--bg3);
  border: 3px solid rgba(255,255,255,0.15);
  overflow: hidden;
  animation: disc-spin 4s linear infinite;
}
.music-disc img {
  width: 100%; height: 100%;
  object-fit: cover;
}
@keyframes disc-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── BOTTOM NAV ──────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bnav-h);
  z-index: 100;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 4px;
  padding-bottom: env(safe-area-inset-bottom);
}
.bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: var(--text2);
  font-size: 10.5px;
  font-weight: 500;
  padding: 4px 10px;
  transition: color var(--transition);
  flex: 1;
}
.bnav-item i { font-size: 22px; line-height: 1; }
.bnav-item.active { color: var(--text); }
.bnav-item.active i { text-shadow: 0 0 10px rgba(255,255,255,0.4); }

.bnav-upload {
  flex: 0 0 auto;
  padding: 0 6px;
}
.upload-icon-wrap {
  width: 44px; height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--text);
  color: var(--bg);
  position: relative;
  box-shadow: -4px 0 0 var(--accent2), 4px 0 0 var(--accent);
}

.bnav-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--text2);
}
.bnav-item.active .bnav-avatar { border-color: var(--text); }

/* ── LOADING ─────────────────────────────────── */
.feed-loading {
  position: fixed;
  bottom: calc(var(--bnav-h) + 20px);
  left: 50%; transform: translateX(-50%);
  z-index: 50;
  display: none;
}
.feed-loading.show { display: flex; }
.loading-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.loading-dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text2);
  animation: dot-bounce 1.2s ease-in-out infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40%            { transform: scale(1);   opacity: 1; }
}

/* ── COMMENT SHEET ───────────────────────────── */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(2px);
}
.sheet-backdrop.show {
  opacity: 1;
  pointer-events: all;
}

.comment-sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 160;
  background: var(--bg2);
  border-radius: 20px 20px 0 0;
  border-top: 1px solid var(--border);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(.32,.72,0,1);
  max-height: 80dvh;
  display: flex;
  flex-direction: column;
}
.comment-sheet.open { transform: translateY(0); }

.share-sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 160;
  background: var(--bg2);
  border-radius: 20px 20px 0 0;
  border-top: 1px solid var(--border);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(.32,.72,0,1);
  padding-bottom: env(safe-area-inset-bottom);
}
.share-sheet.open { transform: translateY(0); }

.sheet-handle {
  width: 38px; height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,0.2);
  margin: 10px auto 0;
  flex-shrink: 0;
}
.sheet-header {
  display: flex;
  align-items: center;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  gap: 8px;
}
.sheet-title {
  font-size: 15px;
  font-weight: 700;
  flex: 1;
}
.comments-count-label {
  font-size: 13px;
  color: var(--text3);
  font-family: var(--font-mono);
}
.sheet-close {
  background: none;
  border: none;
  color: var(--text2);
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color var(--transition);
}
.sheet-close:hover { color: var(--text); }

.comments-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--bg3) transparent;
}

.comment-item {
  display: flex;
  gap: 10px;
  padding: 10px 16px;
  animation: slide-up-in 0.25s ease;
}
@keyframes slide-up-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.comment-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.comment-body { flex: 1; }
.comment-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.comment-name:hover { color: var(--text2); }
.comment-text {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.45;
  margin-top: 2px;
  word-break: break-word;
}
.comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 5px;
}
.comment-time {
  font-size: 11.5px;
  color: var(--text3);
  font-family: var(--font-mono);
}
.comment-reply-btn {
  font-size: 11.5px;
  color: var(--text3);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font);
  font-weight: 600;
  transition: color var(--transition);
}
.comment-reply-btn:hover { color: var(--text2); }
.comments-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 50px 20px;
  color: var(--text3);
}
.comments-empty i { font-size: 40px; }
.comments-empty p { font-size: 14px; }

.comment-composer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg2);
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  flex-shrink: 0;
}
.composer-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.composer-input-wrap { flex: 1; }
.composer-input-wrap input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 9px 16px;
  font-size: 13.5px;
  color: var(--text);
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition);
}
.composer-input-wrap input:focus { border-color: rgba(255,255,255,0.3); }
.composer-input-wrap input::placeholder { color: var(--text3); }
.composer-send {
  background: var(--accent);
  border: none;
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), opacity var(--transition);
  flex-shrink: 0;
}
.composer-send:hover { transform: scale(1.08); }
.composer-send:disabled { opacity: 0.4; cursor: default; transform: none; }

.comment-login-prompt {
  text-align: center;
  padding: 18px;
  border-top: 1px solid var(--border);
}
.comment-login-prompt a {
  color: var(--accent2);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}

/* ── SHARE GRID ──────────────────────────────── */
.share-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 16px;
}
.share-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 8px;
  cursor: pointer;
  color: var(--text);
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 500;
  transition: background var(--transition), transform var(--transition);
}
.share-item:hover { background: var(--surface); transform: scale(0.97); }
.share-item i { font-size: 24px; color: var(--text); }

/* ── TOAST ───────────────────────────────────── */
.toast-stack {
  position: fixed;
  bottom: calc(var(--bnav-h) + 16px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  min-width: 200px;
}
.toast-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 24px;
  text-align: center;
  backdrop-filter: blur(10px);
  animation: toast-in 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.toast-item.out {
  animation: toast-out 0.25s ease forwards;
}
@keyframes toast-out {
  to { opacity: 0; transform: translateY(-8px) scale(0.9); }
}

/* ── DOUBLE-TAP HEART ────────────────────────── */
.heart-burst {
  position: absolute;
  z-index: 20;
  pointer-events: none;
  font-size: 80px;
  color: var(--accent);
  animation: heart-burst 0.7s ease forwards;
  transform-origin: center;
  text-shadow: 0 0 40px var(--accent-glow);
}
@keyframes heart-burst {
  0%   { opacity: 0; transform: scale(0.4) rotate(-15deg); }
  30%  { opacity: 1; transform: scale(1.2) rotate(5deg); }
  60%  { opacity: 1; transform: scale(1) rotate(0deg); }
  100% { opacity: 0; transform: scale(1.3) rotate(-5deg); }
}

/* ── PROGRESS BAR (video) ────────────────────── */
.video-progress {
  position: absolute;
  bottom: calc(var(--bnav-h) - 2px);
  left: 0; right: 0;
  height: 2px;
  background: rgba(255,255,255,0.15);
  z-index: 12;
}
.video-progress-fill {
  height: 100%;
  background: var(--text);
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ── MUTE BADGE ──────────────────────────────── */
.mute-badge {
  position: absolute;
  top: calc(var(--nav-h) + 10px);
  right: 14px;
  z-index: 12;
  background: rgba(0,0,0,0.5);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background var(--transition);
}
.mute-badge:hover { background: rgba(0,0,0,0.7); }

/* ── RESPONSIVE — desktop side panel ─────────── */
@media (min-width: 600px) {
  .reels-feed { left: 50%; transform: translateX(-50%); width: 400px; }
  .top-nav, .bottom-nav { left: 50%; transform: translateX(-50%); width: 400px; }
  .comment-sheet, .share-sheet { left: 50%; transform: translateX(-50%) translateY(100%); width: 400px; }
  .comment-sheet.open, .share-sheet.open { transform: translateX(-50%) translateY(0); }
  .sheet-backdrop { display: none; }
  .toast-stack { left: 50%; }
  .heart-burst { left: 50% !important; }
}
/* ─── Backdrop ─── */
#suBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 999;
}
#suBackdrop.show { opacity: 1; }

/* ─── Sheet ─── */
#suSheet {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  max-height: 90%;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
  transition: bottom 0.3s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#suSheet.open { bottom: 0; }

/* ─── Handle ─── */
.sheet-handle {
  width: 40px;
  height: 5px;
  background: #ccc;
  border-radius: 3px;
  margin: 8px auto;
}

/* ─── Header ─── */
.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  font-weight: 600;
  font-size: 16px;
  border-bottom: 1px solid #eee;
}
.sheet-close {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

/* ─── Selected Chips ─── */
.su-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 16px;
  max-height: 60px;
  overflow-x: auto;
}
.su-chip {
  display: flex;
  align-items: center;
  background: #f0f0f0;
  border-radius: 16px;
  padding: 2px 6px;
  font-size: 12px;
}
.su-chip-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #aaa;
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
  overflow: hidden;
}
.su-chip-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.su-chip-remove {
  background: transparent;
  border: none;
  padding: 0 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* ─── Search ─── */
.su-search-wrap {
  padding: 8px 16px;
  border-bottom: 1px solid #eee;
}
#suSearch {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}

/* ─── Users List ─── */
.su-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.su-section-label {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 16px;
  color: #555;
}
.su-contact-row {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.su-contact-row:hover {
  background: #f7f7f7;
}
.su-contact-row.selected {
  background: #e6f0ff;
}
.su-avatar-wrap {
  position: relative;
  margin-right: 12px;
}
.su-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
}
.su-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.su-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
}
.su-status-dot.online { background: #4ade80; }
.su-status-dot.offline { background: #ccc; }

.su-contact-info {
  flex: 1;
  overflow: hidden;
}
.su-contact-name {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.su-contact-sub {
  font-size: 12px;
  color: #777;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Check mark */
.su-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
}
.su-check.checked {
  background: #007bff;
  border-color: #007bff;
  color: #fff;
}

/* ─── Footer ─── */
.su-footer {
  padding: 8px 16px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
}
#suSendBtn {
  background: #0095f6;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
#suSendBtn:disabled {
  background: #b3dffc;
  cursor: default;
}
#suSendBtn:hover:not(:disabled) {
  background: #007acc;
}

/* Scrollbar (optional) */
.su-list::-webkit-scrollbar {
  width: 6px;
}
.su-list::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 3px;
}