/* WhatsApp-style Conversations List */
    .conversations-list {
      display: grid;
      gap: 0;
    }
    
    .conversation-item {
      width: 100%;
      border: 0;
      border-bottom: 1px solid var(--line);
      background: var(--panel);
      padding: 12px 14px;
      display: flex;
      gap: 12px;
      align-items: flex-start;
      color: inherit;
      text-align: inherit;
      transition: background .15s ease;
      position: relative;
    }
    
    .conversation-item:first-child {
      border-top-left-radius: 18px;
      border-top-right-radius: 18px;
    }
    
    .conversation-item:last-child {
      border-bottom-left-radius: 18px;
      border-bottom-right-radius: 18px;
      border-bottom: 0;
    }
    
    .conversation-item:active {
      background: var(--bg-soft);
    }
    
    .conversation-avatar-wrap {
      flex: 0 0 52px;
      position: relative;
    }
    
    .conversation-avatar {
      width: 52px;
      height: 52px;
      border-radius: 50%;
      object-fit: cover;
      background: var(--bg-soft);
      border: 2px solid var(--line);
    }
    
    .conversation-avatar-empty {
      display: grid;
      place-items: center;
      color: var(--muted);
      font-size: 20px;
    }
    
    .conversation-content {
      flex: 1;
      min-width: 0;
      display: grid;
      gap: 4px;
    }
    
    .conversation-header {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      gap: 8px;
    }
    
    .conversation-name {
      font-size: 15px;
      font-weight: 700;
      color: var(--ink);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      flex: 1;
    }
    
    .conversation-time {
      font-size: 12px;
      color: var(--muted);
      font-weight: 500;
      flex: 0 0 auto;
    }
    
    .conversation-message {
      margin: 0;
      font-size: 14px;
      color: var(--muted);
      line-height: 1.4;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    
    .conversation-sender {
      font-weight: 600;
      color: var(--ink);
    }
    
    .conversation-ad {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 12px;
      color: var(--muted);
      margin-top: 2px;
    }
    
    .conversation-ad i {
      font-size: 11px;
      color: var(--primary);
    }
    
    .conversation-ad span {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    
    .conversation-unread {
      position: absolute;
      top: 12px;
      left: 12px;
      min-width: 20px;
      height: 20px;
      border-radius: 10px;
      background: var(--primary);
      color: #fff;
      font-size: 11px;
      font-weight: 900;
      display: grid;
      place-items: center;
      padding: 0 6px;
    }
    
    [dir="rtl"] .conversation-unread {
      left: auto;
      right: 12px;
    }
    
    /* WhatsApp-style Chat Screen */
    .chat-view-container {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      display: flex;
      flex-direction: column;
      background: var(--bg);
      z-index: 10;
      padding-top: calc(60px + env(safe-area-inset-top, 0px));
      padding-bottom: calc(76px + var(--safe-bottom) + var(--android-nav-bar));
    }
    
    /* Chat Header */
    .chat-header {
      background: var(--panel-strong);
      border-bottom: 1px solid var(--line);
      padding: 10px 14px;
      padding-top: calc(10px + max(env(safe-area-inset-top), 0px));
      display: flex;
      align-items: center;
      gap: 12px;
      backdrop-filter: blur(20px);
      position: sticky;
      top: 0;
      z-index: 20;
    }
    
    .chat-back-btn {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      border: 0;
      background: transparent;
      color: var(--primary);
      font-size: 18px;
      display: grid;
      place-items: center;
      cursor: pointer;
      transition: background .15s ease;
      flex-shrink: 0;
    }
    
    .chat-back-btn:active {
      background: var(--bg-soft);
    }
    
    .chat-contact-btn {
      display: flex;
      align-items: center;
      gap: 8px;
      border: 0;
      background: transparent;
      color: inherit;
      cursor: pointer;
      padding: 0;
      flex-shrink: 0;
      transition: opacity .15s ease;
    }
    
    .chat-contact-btn:active {
      opacity: 0.7;
    }
    
    .chat-contact-avatar {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      object-fit: cover;
      background: var(--bg-soft);
      border: 2px solid var(--line);
      flex-shrink: 0;
    }
    
    .chat-contact-avatar-empty {
      display: grid;
      place-items: center;
      color: var(--muted);
      font-size: 14px;
    }
    
    .chat-contact-name {
      font-size: 14px;
      font-weight: 700;
      color: var(--ink);
      white-space: nowrap;
    }
    
    .chat-ad-card {
      flex: 1;
      display: flex;
      align-items: center;
      gap: 8px;
      background: var(--bg-soft);
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 6px;
      min-width: 0;
    }
    
    .chat-ad-image {
      width: 44px;
      height: 44px;
      border-radius: 8px;
      object-fit: cover;
      background: var(--bg);
      flex-shrink: 0;
    }
    
    .chat-ad-info {
      flex: 1;
      min-width: 0;
      display: grid;
      gap: 2px;
    }
    
    .chat-ad-title {
      font-size: 12px;
      font-weight: 700;
      color: var(--ink);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    
    .chat-ad-price {
      font-size: 11px;
      font-weight: 600;
      color: var(--primary);
    }
    
    /* Chat Messages */
    .chat-messages {
      flex: 1;
      overflow-y: auto;
      overflow-x: hidden;
      display: flex;
      flex-direction: column;
      gap: 6px;
      padding: 16px 14px;
      background: var(--bg);
      -webkit-overflow-scrolling: touch;
      overscroll-behavior: contain;
    }
    
    .chat-empty {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 12px;
      height: 100%;
      color: var(--muted);
    }
    
    .chat-empty i {
      font-size: 48px;
      opacity: 0.3;
    }
    
    .chat-empty p {
      margin: 0;
      font-size: 14px;
    }
    
    .chat-bubble-wrap {
      display: flex;
      justify-content: flex-start;
      margin-bottom: 2px;
    }
    
    .chat-bubble-wrap.own {
      justify-content: flex-end;
    }
    
    .chat-bubble {
      max-width: 75%;
      padding: 8px 12px 6px 12px;
      border-radius: 12px 12px 12px 2px;
      background: var(--panel-strong);
      border: 1px solid var(--line);
      box-shadow: 0 1px 2px rgba(0,0,0,.04);
      position: relative;
    }
    
    .chat-bubble.own {
      border-radius: 12px 12px 2px 12px;
      background: linear-gradient(135deg, var(--primary), var(--primary-2));
      border-color: transparent;
      color: #fff;
    }
    
    .chat-bubble-text {
      margin: 0 0 4px 0;
      font-size: 14px;
      line-height: 1.5;
      word-wrap: break-word;
      white-space: pre-wrap;
    }
    
    .chat-bubble-meta {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 4px;
      margin-top: 2px;
    }
    
    .chat-bubble-time {
      font-size: 11px;
      opacity: 0.7;
      font-weight: 500;
    }
    
    .chat-bubble-check {
      font-size: 12px;
      opacity: 0.8;
    }
    
    /* Chat Input */
    .chat-input-area {
      background: var(--panel-strong);
      border-top: 1px solid var(--line);
      padding: 10px 14px;
      padding-bottom: calc(10px + var(--safe-bottom) + var(--android-nav-bar));
      backdrop-filter: blur(20px);
      position: fixed;
      bottom: calc(76px + var(--safe-bottom) + var(--android-nav-bar));
      left: 0;
      right: 0;
      z-index: 20;
    }
    
    .chat-input-wrap {
      display: flex;
      align-items: flex-end;
      gap: 8px;
      background: var(--bg);
      border: 1px solid var(--line);
      border-radius: 24px;
      padding: 6px 6px 6px 12px;
      transition: border-color .15s ease;
    }
    
    .chat-input-wrap:focus-within {
      border-color: var(--primary);
    }
    
    .chat-attach-btn {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      border: 0;
      background: transparent;
      color: var(--muted);
      font-size: 18px;
      display: grid;
      place-items: center;
      cursor: pointer;
      transition: all .15s ease;
      flex-shrink: 0;
    }
    
    .chat-attach-btn:active {
      background: var(--bg-soft);
      color: var(--primary);
    }
    
    .chat-input {
      flex: 1;
      border: 0;
      background: transparent;
      color: var(--ink);
      font-size: 14px;
      line-height: 1.5;
      padding: 6px 0;
      resize: none;
      max-height: 100px;
      min-height: 32px;
      font-family: inherit;
      -webkit-appearance: none;
      appearance: none;
    }
    
    .chat-input:focus {
      outline: none;
    }
    
    .chat-input::placeholder {
      color: var(--muted);
      opacity: 0.6;
    }
    
    .chat-send-btn {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      border: 0;
      background: linear-gradient(135deg, var(--primary), var(--primary-2));
      color: #fff;
      font-size: 16px;
      display: grid;
      place-items: center;
      cursor: pointer;
      transition: transform .15s ease, box-shadow .15s ease;
      flex-shrink: 0;
      box-shadow: 0 2px 8px rgba(200,30,30,.24);
    }
    
    .chat-send-btn:active {
      transform: scale(0.95);
      box-shadow: 0 1px 4px rgba(200,30,30,.2);
    }
    
    /* Old chat styles - remove */
    .bubble { display: none; }
    .chat-input { /* overridden above */ }
    .fab {
      position: absolute;
      z-index: 40;
      left: 50%;
      bottom: calc(86px + var(--safe-bottom));
      transform: translateX(-50%);
      width: 64px;
      height: 64px;
      border-radius: 50%;
      border: 0;
      color: #fff;
      font-size: 34px;
      line-height: 1;
      background: linear-gradient(135deg, var(--primary), var(--primary-2));
      box-shadow: 0 20px 50px rgba(200,30,30,.34);
    }
    .sheet-backdrop {
      position: absolute;
      inset: 0;
      z-index: 50;
      background: rgba(24,16,18,.34);
      display: flex;
      align-items: flex-end;
    }
    .sheet {
      width: 100%;
      max-height: min(86dvh, 760px);
      overflow-y: auto;
      border-radius: 28px 28px 0 0;
      padding: 14px 14px calc(18px + var(--safe-bottom));
      background: var(--panel-strong);
      border: 1px solid var(--line);
      box-shadow: 0 -18px 65px rgba(0,0,0,.22);
      backdrop-filter: blur(22px);
      -webkit-backdrop-filter: blur(22px);
    }
    .sheet-handle { width: 44px; height: 5px; border-radius: 999px; background: var(--line); margin: 0 auto 12px; }