/* ============================================================
   JAI SHREE RAM — IG PREMIUM UPGRADE CSS
   Instagram Dark Theme — Pixel-Perfect Clone
   Sections: Skeleton, Reels, Comments, Chat, Share, Notifs
   ============================================================ */

/* ── 1. SKELETON SHIMMER LOADING ─────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}

.skeleton {
  background: #1a1a1a;
  background-image: linear-gradient(
    90deg,
    #1a1a1a 0px,
    #2a2a2a 40px,
    #1a1a1a 80px
  );
  background-size: 600px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: 4px;
}

/* Feed skeleton card */
.sk-card {
  background: #111;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.sk-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
}
.sk-avatar { width:38px; height:38px; border-radius:50%; flex-shrink:0; }
.sk-lines  { flex:1; display:flex; flex-direction:column; gap:6px; }
.sk-line   { height:10px; border-radius:4px; }
.sk-line.w60 { width:60%; }
.sk-line.w40 { width:40%; }
.sk-media  { width:100%; height:280px; }
.sk-actions{ display:flex; gap:16px; padding:10px 14px; }
.sk-action { width:30px; height:20px; border-radius:4px; }

/* Reels skeleton */
.sk-reel {
  height: 100vh; width:100%;
  background: #0a0a0a;
  display: flex; align-items: flex-end;
  position: relative;
}
.sk-reel-info {
  padding: 0 14px 90px;
  display: flex; flex-direction: column; gap: 10px;
  width: calc(100% - 70px);
}
.sk-reel-side {
  position: absolute; right: 12px; bottom: 90px;
  display: flex; flex-direction: column; gap: 24px; align-items: center;
}
.sk-circle { border-radius:50%; }


/* ── 2. PULL-TO-REFRESH ───────────────────────────────────── */
#ptr-indicator {
  position: fixed; top: 60px; left: 50%; transform: translateX(-50%);
  z-index: 600;
  background: rgba(30,30,30,0.9);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 6px 16px 6px 10px;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,0.8);
  pointer-events: none;
  opacity: 0; transition: opacity 0.2s;
  backdrop-filter: blur(10px);
}
#ptr-indicator.visible { opacity: 1; }
#ptr-indicator i { font-size: 16px; color: #FF6B00; transition: transform 0.3s; }
#ptr-indicator.ready i { transform: rotate(180deg); }


/* ── 3. REELS TAB — INSTAGRAM LAYOUT ─────────────────────── */
.reel-slide { position: relative; }

/* Profile pic + username row — bottom left, IG style */
.reel-user-row {
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 6px;
}
.reel-avatar-wrap {
  position: relative; width: 34px; height: 34px; flex-shrink: 0;
}
.reel-avatar-wrap img {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #fff;
}
/* Story ring on reel avatar */
.reel-avatar-wrap.has-story::before {
  content: '';
  position: absolute; inset: -2.5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  z-index: -1;
}
.reel-username-text {
  font-size: 14px; font-weight: 700; color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.reel-follow-btn {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff; font-size: 12.5px; font-weight: 700;
  padding: 5px 15px; border-radius: 20px;
  cursor: pointer; margin-left: 4px;
  transition: all 0.18s;
}
.reel-follow-btn:hover { background: rgba(255,255,255,0.18); }

.reel-music-row {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: rgba(255,255,255,0.75);
  margin-top: 4px;
}
.reel-music-row i { font-size: 11px; }

/* Actions — like button with count only (no avatar above it) */
.reel-actions {
  gap: 20px !important;
}
.reel-actions > img { display: none !important; } /* hide old avatar */

/* Double-tap heart animation */
.reel-heart-burst {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(0);
  font-size: 90px; pointer-events: none; opacity: 0;
  z-index: 20;
  filter: drop-shadow(0 0 20px rgba(255,60,100,0.7));
}
.reel-heart-burst.pop {
  animation: reelHeartPop 0.75s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes reelHeartPop {
  0%   { transform:translate(-50%,-50%) scale(0); opacity:1; }
  35%  { transform:translate(-50%,-50%) scale(1.3); opacity:1; }
  65%  { transform:translate(-50%,-50%) scale(1.0); opacity:0.9; }
  100% { transform:translate(-50%,-50%) scale(0.6); opacity:0; }
}

/* Hold-to-pause overlay */
.reel-paused-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 10; pointer-events: none; opacity: 0;
  transition: opacity 0.15s;
}
.reel-paused-overlay.visible { opacity: 1; }
.reel-paused-overlay i {
  font-size: 56px; color: rgba(255,255,255,0.85);
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.6));
}

/* Mute indicator flash */
.reel-mute-toast {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  background: rgba(0,0,0,0.7);
  color: #fff; border-radius: 50%;
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; pointer-events: none; opacity: 0;
  transition: all 0.2s;
  z-index: 25;
}
.reel-mute-toast.show {
  opacity: 1; transform: translate(-50%, -50%) scale(1);
}


/* ── 4. COMMENTS BOTTOM SHEET ─────────────────────────────── */
#igCommentSheet {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: flex-end;
  pointer-events: none;
}
#igCommentSheet.open { pointer-events: all; }

#igCommentBackdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0); transition: background 0.3s;
}
#igCommentSheet.open #igCommentBackdrop {
  background: rgba(0,0,0,0.55);
}

#igCommentPanel {
  position: relative; z-index: 1;
  width: 100%; max-width: 600px; margin: 0 auto;
  background: #1c1c1e;
  border-radius: 18px 18px 0 0;
  max-height: 75vh; display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32,0.72,0,1);
  border-top: 1px solid rgba(255,255,255,0.1);
}
#igCommentSheet.open #igCommentPanel { transform: translateY(0); }

.ig-sheet-handle {
  width: 36px; height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  margin: 10px auto 0;
  flex-shrink: 0;
}
.ig-sheet-title {
  font-size: 15px; font-weight: 700; color: #fff;
  text-align: center;
  padding: 10px 0 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}
#igCommentList {
  flex: 1; overflow-y: auto;
  padding: 8px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

/* Comment item */
.ig-comment {
  display: flex; gap: 10px;
  padding: 8px 16px;
  align-items: flex-start;
}
.ig-comment-avatar-wrap { position: relative; flex-shrink: 0; }
.ig-comment-avatar {
  width: 34px; height: 34px;
  border-radius: 50%; object-fit: cover;
  display: block;
}
/* Story ring around commenter DP */
.ig-comment-avatar-wrap.has-story .ig-comment-avatar {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 2.5px #1c1c1e,
              0 0 0 4.5px #f09433;
  background-clip: padding-box;
}
.ig-story-ring {
  position: absolute; inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  z-index: -1;
}

.ig-comment-body { flex: 1; min-width: 0; }
.ig-comment-username {
  font-size: 13.5px; font-weight: 700; color: #fff;
  display: inline; margin-right: 6px;
}
.ig-comment-text {
  font-size: 13.5px; color: rgba(255,255,255,0.85);
  line-height: 1.5; display: inline;
}
.ig-comment-meta {
  display: flex; gap: 14px; margin-top: 5px;
  align-items: center;
}
.ig-comment-time { font-size: 11.5px; color: rgba(255,255,255,0.4); }
.ig-comment-likes { font-size: 11.5px; color: rgba(255,255,255,0.4); cursor: pointer; }
.ig-comment-reply-btn {
  font-size: 11.5px; color: rgba(255,255,255,0.4);
  background: none; border: none; cursor: pointer;
  font-weight: 600; padding: 0; font-family: inherit;
}
.ig-comment-reply-btn:hover { color: #fff; }
.ig-comment-like-btn {
  margin-left: auto; background: none; border: none;
  color: rgba(255,255,255,0.4); font-size: 13px;
  cursor: pointer; flex-shrink: 0; padding: 0 2px;
  transition: color 0.18s;
}
.ig-comment-like-btn.liked { color: #ff3b63; }

/* Replies */
.ig-replies { padding-left: 44px; }
.ig-view-replies-btn {
  background: none; border: none;
  color: rgba(255,255,255,0.45);
  font-size: 12px; font-weight: 700;
  cursor: pointer; padding: 2px 0 4px;
  display: flex; align-items: center; gap: 8px;
  font-family: inherit;
}
.ig-view-replies-btn::before {
  content: '';
  display: inline-block;
  width: 22px; height: 1px;
  background: rgba(255,255,255,0.25);
}

/* Replying-to indicator */
#igReplyBanner {
  padding: 6px 16px;
  background: rgba(255,255,255,0.05);
  font-size: 12.5px; color: rgba(255,255,255,0.6);
  display: none; flex-shrink: 0;
  align-items: center; gap: 6px;
}
#igReplyBanner.show { display: flex; }
#igCancelReply {
  margin-left: auto; background: none; border: none;
  color: rgba(255,255,255,0.4); font-size: 18px;
  cursor: pointer;
}

/* Comment input bar */
#igCommentInputBar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,0.1);
  background: #1c1c1e;
  flex-shrink: 0;
}
#igMyAvatar {
  width: 30px; height: 30px;
  border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
#igCommentInput {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: none; border-radius: 20px;
  padding: 9px 14px;
  color: #fff; font-size: 14px; font-family: inherit;
  outline: none; resize: none;
  max-height: 90px; overflow-y: auto;
  line-height: 1.4;
}
#igCommentInput::placeholder { color: rgba(255,255,255,0.35); }
#igPostCommentBtn {
  background: none; border: none;
  color: #0095f6; font-size: 14px; font-weight: 700;
  cursor: pointer; padding: 0 2px;
  font-family: inherit;
  opacity: 0.4; transition: opacity 0.15s;
}
#igPostCommentBtn.active { opacity: 1; }


/* ── 5. IG-STYLE CHAT ──────────────────────────────────────── */
#igDmSheet {
  position: fixed; inset: 0; z-index: 3000;
  display: none; flex-direction: column;
  background: #000;
}
#igDmSheet.open { display: flex; }

/* DM list view */
#igDmList { flex: 1; overflow-y: auto; }
.ig-dm-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: #000;
}
.ig-dm-header-title {
  font-size: 16px; font-weight: 700; color: #fff; flex: 1;
}
.ig-dm-back-btn, .ig-dm-compose-btn {
  background: none; border: none; color: #fff;
  font-size: 20px; cursor: pointer; padding: 4px;
  display: flex; align-items: center; justify-content: center;
}
.ig-dm-thread-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; cursor: pointer;
  transition: background 0.15s;
}
.ig-dm-thread-item:hover { background: rgba(255,255,255,0.04); }
.ig-dm-thread-item:active { background: rgba(255,255,255,0.08); }
.ig-dm-thread-avatar {
  width: 54px; height: 54px;
  border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.ig-dm-thread-info { flex: 1; min-width: 0; }
.ig-dm-thread-name {
  font-size: 14px; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ig-dm-thread-preview {
  font-size: 13px; color: rgba(255,255,255,0.5);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 2px;
}
.ig-dm-thread-time {
  font-size: 12px; color: rgba(255,255,255,0.35); flex-shrink: 0;
}

/* DM conversation view */
#igDmConvo { flex: 1; display: flex; flex-direction: column; }
.ig-convo-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: #000; flex-shrink: 0;
}
.ig-convo-avatar {
  width: 34px; height: 34px;
  border-radius: 50%; object-fit: cover;
}
.ig-convo-name { font-size: 14px; font-weight: 700; color: #fff; }
.ig-convo-status { font-size: 12px; color: rgba(255,255,255,0.4); }
.ig-convo-call-btn {
  margin-left: auto; background: none; border: none;
  color: #fff; font-size: 20px; cursor: pointer;
}

#igDmMessages {
  flex: 1; overflow-y: auto;
  padding: 12px 12px 4px;
  display: flex; flex-direction: column; gap: 4px;
  background: #000;
}

/* IG bubble style */
.ig-msg-row {
  display: flex; align-items: flex-end; gap: 8px;
  max-width: 100%;
}
.ig-msg-row.me { flex-direction: row-reverse; }
.ig-msg-row .ig-convo-avatar {
  width: 24px; height: 24px; flex-shrink: 0;
}
.ig-msg-row.me .ig-convo-avatar { display: none; }

.ig-bubble {
  max-width: 70%; padding: 10px 14px;
  border-radius: 22px;
  font-size: 14px; line-height: 1.45;
  word-break: break-word;
}
.ig-msg-row.me .ig-bubble {
  background: linear-gradient(135deg, #405de6, #5851db, #833ab4, #c13584);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.ig-msg-row:not(.me) .ig-bubble {
  background: #262626;
  color: #fff;
  border-bottom-left-radius: 6px;
}

/* Shared post bubble */
.ig-share-bubble {
  background: #1c1c1e;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px; overflow: hidden;
  max-width: 240px;
}
.ig-share-bubble-thumb {
  width: 100%; aspect-ratio: 1/1;
  object-fit: cover; display: block;
  background: #111;
}
.ig-share-bubble-footer {
  padding: 8px 12px;
  font-size: 13px; color: rgba(255,255,255,0.8);
}
.ig-share-bubble-link {
  color: #0095f6; font-weight: 600;
  text-decoration: none; font-size: 13px;
}

/* DM input bar */
.ig-convo-input-wrap {
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: #000; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.ig-convo-input-inner {
  flex: 1; display: flex; align-items: center; gap: 8px;
  background: #1c1c1e; border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0 14px;
}
#igDmInput {
  flex: 1; background: none; border: none;
  color: #fff; font-size: 14px; font-family: inherit;
  padding: 10px 0; outline: none; resize: none;
  max-height: 90px; overflow-y: auto;
  line-height: 1.4;
}
#igDmInput::placeholder { color: rgba(255,255,255,0.3); }
.ig-convo-extras-btn {
  background: none; border: none; color: rgba(255,255,255,0.5);
  font-size: 18px; cursor: pointer; flex-shrink: 0;
}
#igDmSendBtn {
  background: none; border: none;
  font-size: 22px; cursor: pointer;
  color: #0095f6; flex-shrink: 0;
  transition: transform 0.18s;
}
#igDmSendBtn:hover { transform: scale(1.15); }

.ig-dm-search-bar {
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ig-dm-search-bar input {
  width: 100%; padding: 9px 14px;
  background: rgba(255,255,255,0.08);
  border: none; border-radius: 10px;
  color: #fff; font-size: 14px; font-family: inherit; outline: none;
}
.ig-dm-search-bar input::placeholder { color: rgba(255,255,255,0.3); }


/* ── 6. SEND / SHARE SHEET ────────────────────────────────── */
#igSendSheet {
  position: fixed; inset: 0; z-index: 2500;
  display: flex; align-items: flex-end;
  pointer-events: none;
}
#igSendSheet.open { pointer-events: all; }

#igSendBackdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0); transition: background 0.3s;
}
#igSendSheet.open #igSendBackdrop { background: rgba(0,0,0,0.5); }

#igSendPanel {
  position: relative; z-index: 1;
  width: 100%; max-width: 600px; margin: 0 auto;
  background: #1c1c1e;
  border-radius: 18px 18px 0 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32,0.72,0,1);
  max-height: 70vh; display: flex; flex-direction: column;
}
#igSendSheet.open #igSendPanel { transform: translateY(0); }

.ig-send-handle {
  width: 36px; height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px; margin: 10px auto 0; flex-shrink: 0;
}
.ig-send-title {
  font-size: 15px; font-weight: 700; color: #fff;
  text-align: center; padding: 10px 0 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}
#igSendSearchWrap {
  padding: 10px 14px; flex-shrink: 0;
}
#igSendSearch {
  width: 100%; padding: 9px 14px;
  background: rgba(255,255,255,0.08);
  border: none; border-radius: 10px;
  color: #fff; font-size: 14px; font-family: inherit; outline: none;
}
#igSendSearch::placeholder { color: rgba(255,255,255,0.3); }
#igSendList {
  flex: 1; overflow-y: auto;
  padding: 0 14px 16px;
  display: flex; flex-wrap: wrap; gap: 4px;
}
.ig-send-user {
  display: flex; flex-direction: column;
  align-items: center; gap: 5px;
  width: 72px; padding: 8px 4px;
  cursor: pointer; border-radius: 10px;
  transition: background 0.15s;
  position: relative;
}
.ig-send-user:hover { background: rgba(255,255,255,0.05); }
.ig-send-user img {
  width: 50px; height: 50px;
  border-radius: 50%; object-fit: cover;
}
.ig-send-user span {
  font-size: 11.5px; color: rgba(255,255,255,0.8);
  text-align: center; max-width: 66px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ig-send-user .ig-send-check {
  position: absolute; bottom: 28px; right: 8px;
  width: 18px; height: 18px;
  background: #0095f6; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: #fff;
  opacity: 0; transform: scale(0.5);
  transition: all 0.2s;
}
.ig-send-user.selected .ig-send-check { opacity: 1; transform: scale(1); }
.ig-send-user.selected img { outline: 2.5px solid #0095f6; outline-offset: 2px; }
#igSendBtn {
  width: calc(100% - 28px); margin: 0 14px 16px;
  padding: 13px; background: #0095f6;
  border: none; border-radius: 10px;
  color: #fff; font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  opacity: 0.4; transition: opacity 0.2s, transform 0.18s;
  flex-shrink: 0;
}
#igSendBtn.active { opacity: 1; }
#igSendBtn:hover { transform: scale(1.02); }


/* ── 7. IN-APP TOAST NOTIFICATIONS ───────────────────────── */
#igToastContainer {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center;
  pointer-events: none; gap: 8px; padding-top: 12px;
}
.ig-toast {
  background: rgba(30,30,30,0.95);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
  min-width: 260px; max-width: 90vw;
  pointer-events: all; cursor: pointer;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  animation: toastIn 0.35s cubic-bezier(0.34,1.3,0.64,1) forwards;
}
.ig-toast.removing {
  animation: toastOut 0.3s ease forwards;
}
@keyframes toastIn {
  from { opacity:0; transform: translateY(-20px) scale(0.9); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
  from { opacity:1; transform: translateY(0) scale(1); }
  to   { opacity:0; transform: translateY(-16px) scale(0.9); }
}
.ig-toast-avatar {
  width: 36px; height: 36px;
  border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.ig-toast-body { flex: 1; min-width: 0; }
.ig-toast-msg {
  font-size: 13px; color: #fff; line-height: 1.45;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ig-toast-msg strong { font-weight: 700; }
.ig-toast-time { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 2px; }
.ig-toast-thumb {
  width: 40px; height: 40px;
  border-radius: 6px; object-fit: cover; flex-shrink: 0;
  background: #111;
}


/* ── 8. VIDEO PRELOAD INDICATOR ───────────────────────────── */
.reel-preload-dot {
  position: absolute; bottom: 8px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 5px; z-index: 5;
}
.reel-preload-dot span {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: background 0.2s;
}
.reel-preload-dot span.active { background: #fff; }


/* ── REEL FOLLOW BUTTON (glass — matches Feed's video-overlay Follow btn) ── */
.reel-follow-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  letter-spacing: 0.2px;
  transition: all 0.16s;
  flex-shrink: 0;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  -webkit-tap-highlight-color: transparent;
}
.reel-follow-btn:hover { background: rgba(255,255,255,0.18); }
.reel-follow-btn.following {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255,255,255,0.85);
}
.reel-follow-btn:disabled { opacity: 0.55; }

/* ── GLASSMORPHISM OVERLAYS ─── */
.ig-comments-sheet,
.ig-chat-panel,
.ig-send-panel,
.ig-notifs-panel {
  backdrop-filter: blur(28px) !important;
  -webkit-backdrop-filter: blur(28px) !important;
  background: rgba(10, 16, 30, 0.94) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
}

/* ── PROFILE OVERLAY glassmorphism bg ── */
.profile-overlay {
  background: rgba(8, 14, 26, 0.97) !important;
}

/* ── BOTTOM NAV active icon glow ── */
.bottom-btn.active .fa-home,
.bottom-btn.active .fa-compass,
.bottom-btn.active .fa-film,
.bottom-btn.active .fa-user {
  filter: drop-shadow(0 0 8px rgba(255,107,0,0.7));
}

/* ── POST CARD hover lift ── */
.post-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* ── Smooth scrollbar ── */
.profile-overlay-body::-webkit-scrollbar { width: 3px; }
.profile-overlay-body::-webkit-scrollbar-track { background: transparent; }
.profile-overlay-body::-webkit-scrollbar-thumb { background: rgba(255,107,0,0.4); border-radius: 3px; }

/* ═══════════════════════════════════════════════════════════
   TEXT-POSTS VIEW ('@' tab) — premium glassmorphism cards for
   caption-only posts, fully separated from the media Home Feed
   ═══════════════════════════════════════════════════════════ */
.text-posts-container {
  max-width: 630px;
  margin: 0 auto;
  padding: 10px 14px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.text-post-card {
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 18px;
  padding: 16px 18px;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.text-post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.text-post-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  flex-shrink: 0;
}
.text-post-meta { display: flex; flex-direction: column; min-width: 0; }
.text-post-username {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--white);
  cursor: pointer;
}
.text-post-time {
  font-size: 11.5px;
  color: var(--gray-400);
}

.text-post-body {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.92);
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 14px;
}

.text-post-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.text-post-actions .post-action-btn {
  background: none;
  border: none;
  color: var(--white);
  font-size: 19px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.text-post-actions .post-action-btn span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray-400);
}
.text-post-actions .post-action-btn.liked i { color: var(--like-red); }

/* ── Profile overlay: Edit Profile + Logout side-by-side (flexbox) ── */
.po-action-row .po-edit-btn {
  flex: 1;
  width: auto;
  max-width: none;
}
.po-logout-btn {
  flex: 0 0 auto;
  width: 44px;
  padding: 10px 0;
  border-radius: 10px;
  border: 1px solid rgba(255,59,48,0.35);
  cursor: pointer;
  font-size: 15px;
  background: rgba(255,59,48,0.10);
  color: #FF6B5E;
  transition: all 0.18s;
  display: flex; align-items: center; justify-content: center;
}
.po-logout-btn:hover  { background: rgba(255,59,48,0.18); }
.po-logout-btn:active { transform: scale(0.95); }
