
  .row { height: 100%; margin: 0; display: flex; }

  /* ==== MENU ==== */
  .menu { 
    width: 70px; 
    height: 100%; 
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px 0 0 20px;
    box-shadow: 2px 0 10px rgba(0,0,0,.1);
    display: flex; 
    flex-direction: column; 
    align-items: center;
    padding: 20px 0;
  }
  .menu .items { list-style: none; margin: 0; padding: 0; width: 100%; }
  .menu .item { 
    height: 60px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    color: rgba(255,255,255,0.6); 
    font-size: 18px; 
    cursor: pointer; 
    transition: all .3s ease;
    position: relative;
  }
  .menu .item:hover { 
    color: #FFF;
    transform: translateX(5px);
  }
  .menu .item-active { 
    color: #FFF;
  }
  .menu .item-active::before {
    content: '';
    position: absolute;
    left: 0;
    width: 4px;
    height: 30px;
    background: #FFF;
    border-radius: 0 4px 4px 0;
  }

  /* ==== DISCUSSIONS ==== */
  .discussions { 
    width: 350px; 
    height: 100%; 
    background: #f8f9fa;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
  }
  .discussions-header {
    padding: 25px 20px;
    background: #FFF;
    border-bottom: 1px solid #e0e0e0;
  }
  .discussions-header h2 {
    margin: 0 0 15px 0;
    font-size: 24px;
    color: #2c3e50;
    font-weight: 600;
  }
  .discussions .search {
    position: relative;
  }
  .discussions .search .searchbar { 
    height: 45px; 
    background: #f1f3f5;
    border-radius: 12px;
    border: 2px solid transparent;
    display: flex; 
    align-items: center; 
    padding: 0 20px;
    transition: all .3s ease;
  }
  .discussions .search .searchbar:focus-within {
    background: #FFF;
    border-color: #667eea;
  }
  .discussions .search .searchbar i { 
    color: #95a5a6;
    font-size: 16px;
  }
  .discussions .search .searchbar input { 
    margin-left: 12px; 
    border: none; 
    width: 100%; 
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #2c3e50;
  }

  .discussions-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
  }

  .discussion { 
    padding: 15px 20px;
    background: transparent;
    display: flex; 
    align-items: center; 
    cursor: pointer;
    transition: all .3s ease;
    position: relative;
  }
  .discussion:hover {
    background: rgba(102, 126, 234, 0.05);
  }
  .discussion.message-active { 
    background: #FFF;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
  }
  .discussion.message-active::before {
    content: '';
    position: absolute;
    left: 0;
    width: 4px;
    height: 60%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 0 4px 4px 0;
  }
  .discussion .photo { 
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    background: linear-gradient(135deg, #667eea, #764ba2);
    background-size: cover; 
    background-position: center;
    flex-shrink: 0;
    border: 3px solid #FFF;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
  }
  .discussion .online { 
    position: absolute;
    top: 35px; 
    left: 55px; 
    width: 14px; 
    height: 14px; 
    background: #10b981;
    border: 3px solid #FFF;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,.2);
  }
  .discussion .desc-contact { 
    flex: 1; 
    margin-left: 15px;
    overflow: hidden;
  }
  .discussion .name { 
    margin: 0 0 5px 0; 
    font-size: 15px; 
    color: #2c3e50;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .discussion .message { 
    margin: 0; 
    font-size: 13px; 
    color: #95a5a6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .discussion .timer { 
    font-size: 11px;
    color: #95a5a6;
    flex-shrink: 0;
    margin-left: 10px;
  }

  /* ==== CHAT ==== */
  .chat { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    background: #f8f9fa;
    position: relative;
  }
  .header-chat { 
    height: 90px; 
    background: #FFF;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    display: flex; 
    align-items: center;
    padding: 0 30px;
    z-index: 10;
  }
  .header-chat .chat-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    background-size: cover;
    background-position: center;
    border: 3px solid #f1f3f5;
    margin-right: 15px;
  }
  .header-chat .chat-info {
    flex: 1;
  }
  .header-chat .name { 
    margin: 0 0 5px 0;
    font-size: 18px; 
    color: #2c3e50;
    font-weight: 600;
  }
  .header-chat .status {
    margin: 0;
    font-size: 13px;
    color: #10b981;
    display: flex;
    align-items: center;
  }
  .header-chat .status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    margin-right: 6px;
  }
  .header-chat .right { 
    display: flex;
    gap: 15px;
  }
  .header-chat .icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .3s ease;
    color: #667eea;
  }
  .header-chat .icon-btn:hover {
    background: #667eea;
    color: #FFF;
    transform: scale(1.1);
  }

  .messages-chat { 
    flex: 1; 
    padding: 30px;
    overflow-y: auto;
    scroll-behavior: smooth;
  }
  .messages-chat::-webkit-scrollbar {
    width: 6px;
  }
  .messages-chat::-webkit-scrollbar-track {
    background: transparent;
  }
  .messages-chat::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
  }

  .message-group {
    margin-bottom: 20px;
  }

  .messages-chat .message { 
    display: flex;
    margin-bottom: 4px;
    animation: fadeIn .3s ease;
  }
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .messages-chat .message .photo { 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    background: linear-gradient(135deg, #667eea, #764ba2);
    background-size: cover; 
    background-position: center;
    flex-shrink: 0;
    margin-right: 10px;
  }
  .messages-chat .text { 
    background: #FFF;
    padding: 12px 18px;
    border-radius: 18px 18px 18px 4px;
    font-size: 15px;
    line-height: 1.5;
    color: #2c3e50;
    box-shadow: 0 2px 5px rgba(0,0,0,.05);
    max-width: 70%;
    word-wrap: break-word;
  }
  .messages-chat .text p {
    margin: 0;
  }
  .messages-chat .response { 
    justify-content: flex-end;
  }
  .messages-chat .response .text { 
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #FFF;
    border-radius: 18px 18px 4px 18px;
  }
  .messages-chat .time { 
    font-size: 11px; 
    color: #95a5a6;
    margin: 5px 0 0 50px;
  }
  .messages-chat .response .time {
    text-align: right;
    margin-right: 10px;
  }

  .empty-chat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #95a5a6;
  }
  .empty-chat i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: .3;
  }
  .empty-chat p {
    font-size: 16px;
  }

  .footer-chat { 
    padding: 20px 30px;
    background: #FFF;
    border-top: 1px solid #e0e0e0;
    display: flex; 
    align-items: center;
    gap: 15px;
  }
  .footer-chat .icon { 
    color: #95a5a6;
    font-size: 20px; 
    cursor: pointer;
    transition: all .3s ease;
  }
  .footer-chat .icon:hover {
    color: #667eea;
    transform: scale(1.2);
  }
  .footer-chat .write-message { 
    flex: 1;
    border: 2px solid #e0e0e0;
    height: 50px;
    padding: 0 20px;
    font-size: 15px;
    border-radius: 25px;
    outline: none;
    transition: all .3s ease;
    background: #f8f9fa;
  }
  .footer-chat .write-message:focus {
    border-color: #667eea;
    background: #FFF;
  }
  .footer-chat .send { 
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, .4);
  }
  .footer-chat .send:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, .6);
  }
  .footer-chat .send i {
    color: #FFF;
    font-size: 18px;
  }

  .typing-indicator {
    display: none;
    padding: 10px 20px;
    background: #FFF;
    border-radius: 18px;
    width: fit-content;
    margin-left: 50px;
  }
  .typing-indicator span {
    height: 8px;
    width: 8px;
    background: #95a5a6;
    border-radius: 50%;
    display: inline-block;
    margin: 0 2px;
    animation: typing 1.4s infinite;
  }
  .typing-indicator span:nth-child(2) {
    animation-delay: .2s;
  }
  .typing-indicator span:nth-child(3) {
    animation-delay: .4s;
  }
  @keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
  }

  /* Responsive */
  @media (max-width: 768px) {
    .discussions { width: 100%; }
    .chat { display: none; }
    .discussions.hidden { display: none; }
    .chat.active { display: flex; }
  }