/* MODERN MOBILE CHAT - Proper bubble sizing */
@media (max-width: 1023px) {
  
  #view-messages,
  #view-messages.active {
    display: block !important;
    height: 100vh !important;
    background: #0a0a0a !important;
  }
  
  .chat-layout {
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    background: #0a0a0a !important;
  }
  
  .chat-sidebar-panel {
    display: none !important;
  }
  
  .chat-main {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    background: #0a0a0a !important;
  }
  
  .chat-body {
    flex: 1 !important;
    display: block !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 20px 16px !important;
    padding-bottom: 100px !important;
    background: #0a0a0a !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  .chat-messages {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  
  /* Message bubble - full width container */
  .bubble {
    display: flex !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
  }
  
  /* Received messages - align LEFT */
  .bubble.in {
    justify-content: flex-start !important;
  }
  
  .bubble.in .bubble-content {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 20px 20px 20px 4px !important;
    padding: 12px 16px !important;
    max-width: 75% !important;
    width: auto !important;
    display: inline-block !important;
    color: #ffffff !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    word-wrap: break-word !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  }
  
  /* Sent messages - align RIGHT */
  .bubble.out {
    justify-content: flex-end !important;
  }
  
  .bubble.out .bubble-content {
    background: linear-gradient(135deg, #ff6b1a 0%, #ff4d8e 100%) !important;
    border: none !important;
    border-radius: 20px 20px 4px 20px !important;
    padding: 12px 16px !important;
    max-width: 75% !important;
    width: auto !important;
    display: inline-block !important;
    color: #ffffff !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    word-wrap: break-word !important;
    box-shadow: 0 2px 12px rgba(255, 107, 26, 0.3) !important;
  }
  
  /* Message metadata */
  .bubble-meta {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin-top: 4px !important;
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.45) !important;
    position: absolute !important;
    bottom: -18px !important;
  }
  
  .bubble.in .bubble-meta {
    left: 0 !important;
    justify-content: flex-start !important;
  }
  
  .bubble.out .bubble-meta {
    right: 0 !important;
    justify-content: flex-end !important;
  }
  
  .bubble-status {
    font-size: 14px !important;
  }
  
  /* Day separator */
  .bubble-day-sep {
    display: flex !important;
    justify-content: center !important;
    margin: 20px 0 !important;
  }
  
  .bubble-day-sep span {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(10px) !important;
    padding: 6px 16px !important;
    border-radius: 16px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.5) !important;
  }
  
  /* Time separator */
  .bubble-time-sep {
    text-align: center !important;
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.35) !important;
    margin: 12px 0 !important;
  }
  
  .msg-kebab {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    width: 24px !important;
    height: 24px !important;
    opacity: 0 !important;
    transition: opacity 0.2s !important;
  }
  
  .bubble:hover .msg-kebab {
    opacity: 0.6 !important;
  }
  
  .bubble-reactions {
    display: none !important;
  }
}
