/* ==========================================================================
   INSTAGRAM DIRECT MESSAGES (DMs) - 100% ACCURATE INSTAGRAM DARK UI
   ========================================================================== */

.ig-direct-screen-wrapper {
  display: flex;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  background-color: #000000;
  color: #f5f5f5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

.ig-direct-layout {
  display: flex;
  flex: 1;
  height: 100vh;
  overflow: hidden;
  background-color: #000000;
}

/* --------------------------------------------------------------------------
   DIRECT MOBILE HEADER
   -------------------------------------------------------------------------- */
.ig-direct-mobile-header {
  display: none;
}

/* --------------------------------------------------------------------------
   LEFT PANE: INBOX / CONVERSATIONS LIST
   -------------------------------------------------------------------------- */
.ig-direct-inbox-pane {
  width: 360px;
  min-width: 320px;
  border-right: 1px solid #262626;
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: #000000;
  box-sizing: border-box;
  overflow: hidden;
}

.ig-inbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
  width: 100%;
  box-sizing: border-box;
}

.ig-inbox-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ig-inbox-title-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ig-direct-back-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 300;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  display: flex;
  align-items: center;
  transition: opacity 0.15s ease;
}

.ig-direct-back-btn:hover {
  opacity: 0.7;
}

.ig-inbox-username {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.chevron-down-svg {
  color: #ffffff;
  opacity: 0.9;
}

.ig-inbox-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ig-inbox-icon-btn {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s ease;
}

.ig-inbox-icon-btn:hover {
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   META AI SEARCH BAR
   -------------------------------------------------------------------------- */
.ig-direct-search-wrapper {
  padding: 4px 16px 10px;
}

.ig-direct-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #121212;
  border-radius: 20px;
  padding: 8px 14px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 0.2s ease;
}

.ig-direct-search-box:hover {
  background-color: #1a1a1a;
}

.meta-ai-ring {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  padding: 2.2px;
  background: conic-gradient(from 180deg at 50% 50%, #00f2fe 0%, #4facfe 25%, #7f00ff 50%, #e100ff 75%, #00f2fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.meta-ai-ring-inner {
  width: 100%;
  height: 100%;
  background: #121212;
  border-radius: 50%;
}

.search-placeholder-text {
  font-size: 0.85rem;
  color: #737373;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   INSTAGRAM NOTES (NOTAS) ROW
   -------------------------------------------------------------------------- */
.ig-direct-notes-row {
  display: flex;
  gap: 14px;
  padding: 12px 16px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid #121212;
  box-sizing: border-box;
}

.ig-direct-notes-row::-webkit-scrollbar {
  display: none;
}

.ig-note-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  width: 68px;
}

.ig-note-avatar-wrapper {
  position: relative;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ig-note-bubble {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #262626;
  color: #f5f5f5;
  font-size: 0.68rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 12px;
  text-align: center;
  white-space: normal;
  max-width: 92px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
  border: 1px solid #363636;
  z-index: 2;
  line-height: 1.15;
}

.ig-note-bubble::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px 4px 0 4px;
  border-style: solid;
  border-color: #262626 transparent transparent transparent;
}

.ig-note-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ig-note-username {
  font-size: 0.72rem;
  color: #a8a8a8;
  max-width: 66px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

/* --------------------------------------------------------------------------
   INBOX TABS (MENSAGENS / PEDIDOS (4))
   -------------------------------------------------------------------------- */
.ig-inbox-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px 8px;
}

.ig-inbox-tabs .tab-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.ig-inbox-tabs .requests {
  font-size: 0.88rem;
  font-weight: 600;
  color: #0095f6;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   CHAT THREADS LIST
   -------------------------------------------------------------------------- */
.ig-direct-threads-list {
  flex: 1;
  overflow-y: auto;
  padding: 2px 0 90px;
}

.ig-thread-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 18px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  position: relative;
}

.ig-thread-item:hover {
  background-color: #121212;
}

.ig-thread-item.active {
  background-color: #181818;
}

.ig-thread-avatar-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: #1a1a1a;
}

.ig-thread-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.is-locked-avatar {
  position: relative;
}

.blurred-avatar {
  filter: blur(6px);
  transform: scale(1.08);
}

.avatar-lock-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.avatar-lock-overlay svg {
  width: 17px;
  height: 17px;
  stroke: #ffffff;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.9));
}

.ig-thread-online-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background-color: #10b981;
  border: 2px solid #000000;
  border-radius: 50%;
}

.ig-thread-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}

.ig-thread-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ig-thread-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #f5f5f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ig-thread-snippet-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #8e8e8e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ig-thread-snippet {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ig-thread-item.unread .ig-thread-name {
  font-weight: 700;
  color: #ffffff;
}

.ig-thread-item.unread .ig-thread-snippet {
  font-weight: 600;
  color: #ffffff;
}

.ig-thread-unread-dot {
  width: 8px;
  height: 8px;
  background-color: #0095f6;
  border-radius: 50%;
  flex-shrink: 0;
}

.ig-thread-camera-btn {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
  transition: opacity 0.15s ease;
  flex-shrink: 0;
}

.ig-thread-camera-btn:hover {
  opacity: 1;
}

.ig-thread-camera-btn svg {
  stroke: #8e8e8e;
}

/* --------------------------------------------------------------------------
   RIGHT PANE: ACTIVE CHAT THREAD AREA
   -------------------------------------------------------------------------- */
.ig-direct-chat-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: #000000;
  position: relative;
  overflow: hidden;
}

.ig-chat-header {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid #262626;
  background-color: #000000;
  z-index: 10;
}

.ig-chat-header-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ig-chat-mobile-back-btn {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.8rem;
  line-height: 1;
  padding: 0 8px 0 0;
  cursor: pointer;
}

.ig-chat-avatar-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.ig-chat-avatar-wrap:hover {
  transform: scale(1.06);
  opacity: 0.9;
}

.ig-chat-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
}

.chat-online-dot {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 10px;
  height: 10px;
  background-color: #10b981;
  border: 2px solid #000000;
  border-radius: 50%;
}

.ig-chat-user-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
}

.chat-user-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  transition: color 0.15s ease;
}

.ig-chat-user-meta:hover .chat-user-name {
  color: #0095f6;
}

.chat-user-status {
  font-size: 0.75rem;
  color: #a8a8a8;
}

.ig-chat-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.chat-action-btn {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.chat-action-btn:hover {
  background-color: #1a1a1a;
}

/* --------------------------------------------------------------------------
   CHAT MESSAGES BODY & VIP UNLOCK BANNER
   -------------------------------------------------------------------------- */
.ig-chat-messages-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 140px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

/* Top VIP Unlock Banner */
.chat-vip-unlock-banner {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(219, 39, 119, 0.15) 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
  margin: 10px 0 20px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.chat-vip-unlock-banner:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.6);
}

.vip-unlock-icon {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.vip-unlock-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.vip-unlock-sub {
  font-size: 0.78rem;
  color: #a8a8a8;
  margin-bottom: 12px;
  line-height: 1.4;
}

.vip-unlock-btn {
  background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
  color: #ffffff;
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

/* Blurred Old Messages Zone */
.chat-blurred-history-zone {
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0.45;
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  margin-bottom: 12px;
}

/* Date Divider */
.chat-date-divider {
  text-align: center;
  font-size: 0.74rem;
  font-weight: 600;
  color: #8e8e8e;
  margin: 16px 0 6px;
  letter-spacing: 0.4px;
}

/* Message Rows */
.chat-msg-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 72%;
  position: relative;
}

.chat-msg-row.incoming {
  align-self: flex-start;
}

.chat-msg-row.outgoing {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.msg-author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 2px;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.msg-author-avatar:hover {
  transform: scale(1.12);
  opacity: 0.85;
}

/* Speech Bubbles */
.chat-bubble {
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 0.92rem;
  line-height: 1.4;
  position: relative;
  word-break: break-word;
}

.chat-bubble.incoming {
  background-color: #262626;
  color: #f5f5f5;
  border-bottom-left-radius: 4px;
}

.chat-bubble.outgoing {
  background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

/* Censored Blur Words */
.censored-blur {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  color: transparent;
  text-shadow: 0 0 7px rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  padding: 0 4px;
  cursor: pointer;
  user-select: none;
  letter-spacing: 2px;
  vertical-align: middle;
}

.censored-blur:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Reply Context Box inside Bubbles */
.chat-bubble-reply-context {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.reply-sender-label {
  font-size: 0.7rem;
  color: #a8a8a8;
}

.reply-quoted-pill {
  background: rgba(0, 0, 0, 0.25);
  border-left: 2px solid #a855f7;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #e2e8f0;
}

/* Floating Heart Reaction */
.chat-reaction-badge {
  position: absolute;
  bottom: -8px;
  right: 8px;
  background-color: #1a1a1a;
  border: 1px solid #333333;
  border-radius: 12px;
  padding: 2px 6px;
  font-size: 0.78rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.chat-msg-row.outgoing .chat-reaction-badge {
  right: auto;
  left: 8px;
}

/* Big 3D Heart Sticker */
.chat-big-heart-sticker {
  font-size: 3rem;
  line-height: 1;
  display: inline-block;
  animation: heartPulse 1.8s infinite ease-in-out;
  margin: 4px 0;
  cursor: pointer;
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* --------------------------------------------------------------------------
   REELS PREVIEWS, CALL LOGS & PHOTO STACK
   -------------------------------------------------------------------------- */
/* Video Call Log Card */
.chat-call-card {
  background-color: #1c1c1c;
  border: 1px solid #282828;
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 170px;
  cursor: pointer;
}

.chat-call-card-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.call-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #2c2c2c;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.call-icon-wrap.missed {
  background-color: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.call-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.call-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
}

.call-time {
  font-size: 0.72rem;
  color: #8e8e8e;
}

.call-return-btn {
  background-color: #2c2c2c;
  border: none;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  width: 100%;
  cursor: pointer;
}

/* Instagram Reel Share Card */
.chat-reel-card {
  width: 150px;
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 30%, rgba(0,0,0,0.8) 100%), #1f1f1f;
  border: 1px solid #2c2c2c;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  box-sizing: border-box;
}

.reel-author-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #ffffff;
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.reel-author-tag img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.reel-center-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: 1px solid rgba(255,255,255,0.2);
}

.reel-caption-text {
  font-size: 0.7rem;
  color: #ffffff;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
  line-height: 1.25;
  z-index: 2;
}

/* Volume Locked Overlay Card */
.chat-volume-locked-card {
  background-color: #1f242b;
  border: 1px solid #2f3542;
  border-radius: 18px;
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 280px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.volume-locked-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
  text-align: center;
}

.volume-muted-icon {
  font-size: 2rem;
  color: #94a3b8;
  opacity: 0.8;
}

.volume-dots-row {
  display: flex;
  gap: 4px;
}

.volume-dots-row span {
  width: 5px;
  height: 5px;
  background-color: #475569;
  border-radius: 50%;
}

/* Photo Stack (3 overlapping confidential photos) */
.chat-photo-stack {
  position: relative;
  width: 140px;
  height: 180px;
  margin-left: auto;
  cursor: pointer;
}

.stack-card {
  position: absolute;
  width: 110px;
  height: 150px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3d271d 0%, #1f1410 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  transition: transform 0.2s ease;
}

.stack-card:nth-child(1) {
  top: 0;
  left: 0;
  transform: rotate(-8deg);
  z-index: 1;
}

.stack-card:nth-child(2) {
  top: 10px;
  left: 15px;
  transform: rotate(4deg);
  z-index: 2;
}

.stack-card:nth-child(3) {
  top: 25px;
  left: 28px;
  transform: rotate(8deg);
  z-index: 3;
}

.stack-eye-icon {
  width: 28px;
  height: 28px;
  color: #ffffff;
  opacity: 0.85;
}

.chat-new-messages-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 8px;
  width: 100%;
}

.chat-new-messages-divider::before,
.chat-new-messages-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: #2c2c2c;
}

.chat-new-messages-divider span {
  font-size: 0.72rem;
  color: #8e8e8e;
  font-weight: 500;
  text-transform: capitalize;
}

.audio-main-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.audio-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #7c3aed;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.chat-msg-row.outgoing .audio-play-btn {
  background-color: rgba(255, 255, 255, 0.25);
}

.audio-waveform-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 1;
  height: 22px;
}

.audio-waveform-bars span {
  width: 3px;
  background: #a8a8a8;
  border-radius: 2px;
}

.chat-msg-row.outgoing .audio-waveform-bars span {
  background: rgba(255, 255, 255, 0.85);
}

.audio-duration {
  font-size: 0.76rem;
  color: #a8a8a8;
  font-weight: 500;
}

.chat-msg-row.outgoing .audio-duration {
  color: rgba(255, 255, 255, 0.85);
}

.audio-transcript-link {
  font-size: 0.72rem;
  color: #a8a8a8;
  margin-top: 2px;
}

.chat-msg-row.outgoing .audio-transcript-link {
  color: rgba(255, 255, 255, 0.75);
}

/* Hidden / Censored Sensitive Photo Card */
.chat-sensitive-photo-bubble {
  position: relative;
  width: 200px;
  height: 260px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #3d271d 0%, #1f1410 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sensitive-eye-icon {
  width: 38px;
  height: 38px;
  color: #ffffff;
  opacity: 0.9;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
}

.locked-photo-text {
  font-size: 0.78rem;
  color: #ffffff;
  font-weight: 600;
}

/* Read Receipt */
.chat-read-receipt {
  align-self: flex-end;
  font-size: 0.7rem;
  color: #737373;
  margin-top: -6px;
  margin-right: 4px;
}

/* --------------------------------------------------------------------------
   CHAT BOTTOM INPUT BAR
   -------------------------------------------------------------------------- */
.ig-chat-input-bar {
  padding: 12px 20px 100px;
  background-color: #000000;
  border-top: 1px solid #141414;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-camera-pill-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #3897f0;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.chat-camera-pill-btn:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.chat-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #000000;
  border: 1px solid #262626;
  border-radius: 24px;
  padding: 6px 14px;
}

.chat-msg-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.92rem;
}

.chat-msg-input::placeholder {
  color: #737373;
}

.chat-tool-btn {
  background: none;
  border: none;
  color: #ffffff;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: opacity 0.15s ease;
}

.chat-tool-btn:hover {
  opacity: 0.75;
}

.chat-tool-btn.heart-btn {
  color: #ff3040;
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN (TABLET & MOBILE)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .ig-direct-inbox-pane {
    width: 320px;
    min-width: 280px;
  }
}

@media (max-width: 768px) {
  .ig-direct-screen-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    overflow: hidden;
  }

  .ig-direct-screen-wrapper .ig-sidebar {
    display: none !important;
  }

  .ig-direct-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1;
    height: 100%;
    overflow: hidden;
  }

  .ig-inbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 8px;
    width: 100%;
    box-sizing: border-box;
    background: #000000;
  }

  .ig-direct-inbox-pane {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    border-right: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
  }

  /* When chat is open on mobile */
  .ig-direct-layout.mobile-chat-open .ig-direct-inbox-pane {
    display: none !important;
  }

  .ig-direct-layout.mobile-chat-open .ig-direct-chat-pane {
    display: flex !important;
    width: 100% !important;
    height: 100%;
  }

  .ig-direct-layout:not(.mobile-chat-open) .ig-direct-chat-pane {
    display: none !important;
  }

  .ig-chat-mobile-back-btn {
    display: block;
  }

  .ig-chat-input-bar {
    padding: 8px 12px;
    padding-bottom: 95px;
  }

  .ig-direct-threads-list {
    padding-bottom: 120px;
  }
}
