/* ============================================
   Sirr - Chat Styles
   Dark Theme | RTL | Mobile-First
   ============================================ */

/* Full-height chat pages */
#page-chat-detail.active,
#page-group-detail.active {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ============================================
   CHAT LIST
   ============================================ */

.chat-list {
  display: flex;
  flex-direction: column;
}

.chat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  cursor: pointer;
  transition: background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.chat-item:hover {
  background: var(--bg-hover, #1e1e2a);
}

.chat-item:active {
  background: var(--bg-highlight, rgba(255, 255, 255, 0.06));
}

.chat-item.unread {
  background: rgba(108, 92, 231, 0.06);
}

.chat-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  flex-shrink: 0;
}

.chat-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.chat-avatar-wrap .online-dot {
  position: absolute;
  bottom: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  background: #00b894;
  border-radius: 50%;
  border: 2px solid var(--bg-card, #12121a);
}

.chat-info {
  flex: 1;
  min-width: 0;
}

.chat-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text, #eee);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-name .verified {
  color: var(--primary, #6c5ce7);
  font-size: 13px;
}

.chat-last {
  font-size: 13px;
  color: var(--text-muted, #888);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-item.unread .chat-last {
  color: var(--text-secondary, #bbb);
  font-weight: 600;
}

.chat-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.chat-time {
  font-size: 11px;
  color: var(--text-muted, #888);
}

.unread-badge {
  min-width: 20px;
  height: 20px;
  background: var(--primary, #6c5ce7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  padding: 0 4px;
}

/* ============================================
   CHAT WINDOW
   ============================================ */

.chat-window {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: var(--bg, #0a0a0f);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.chat-window.active {
  transform: translateX(0);
}

[dir="rtl"] .chat-window {
  transform: translateX(100%);
}

[dir="rtl"] .chat-window.active {
  transform: translateX(0);
}

/* Chat Window Header */
.chat-win-header {
  height: 60px;
  min-height: 60px;
  background: var(--bg-card, #12121a);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  position: relative;
}

.chat-win-header .back-btn {
  background: none;
  border: none;
  color: var(--text, #eee);
  font-size: 20px;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.chat-win-header .back-btn:hover {
  background: var(--bg-highlight, rgba(255, 255, 255, 0.06));
}

.chat-win-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-win-info {
  flex: 1;
  min-width: 0;
}

.chat-win-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text, #eee);
}

.chat-win-status {
  font-size: 11px;
  color: var(--text-muted, #888);
}

.chat-win-status.online {
  color: #00b894;
}

.chat-win-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-win-actions button {
  background: none;
  border: none;
  color: var(--text-muted, #888);
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.chat-win-actions button:hover {
  background: var(--bg-highlight, rgba(255, 255, 255, 0.06));
}

/* 3-dot Dropdown Menu */
.chat-more-dropdown {
  position: absolute;
  top: 56px;
  left: 14px;
  background: var(--bg-card, #12121a);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  padding: 6px 0;
  min-width: 180px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  z-index: 250;
  display: flex;
  flex-direction: column;
  animation: popIn 0.15s ease;
}

[dir="rtl"] .chat-more-dropdown {
  left: auto;
  right: 14px;
}

.chat-more-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text, #eee);
  cursor: pointer;
  transition: background 0.15s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: right;
  font-family: inherit;
}

.chat-more-dropdown .dropdown-item:hover {
  background: var(--bg-highlight, rgba(255, 255, 255, 0.06));
}

.chat-more-dropdown .dropdown-item span {
  font-size: 16px;
}

/* ============================================
   CHAT MESSAGES
   ============================================ */

.chat-messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.chat-messages::-webkit-scrollbar {
  width: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

/* Date separator */
.chat-date {
  text-align: center;
  padding: 8px 0;
}

.chat-date span {
  font-size: 11px;
  color: var(--text-muted, #888);
  background: var(--bg-surface, #1a1a25);
  padding: 4px 12px;
  border-radius: 10px;
}

/* Message Bubbles */
.bubble-wrap {
  display: flex;
  flex-direction: column;
  max-width: 75%;
}

.bubble {
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 18px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  position: relative;
  line-height: 1.5;
  font-size: 14px;
}

.bubble-me {
  background: var(--primary, #6c5ce7);
  color: #fff;
  align-self: flex-start;
  border-bottom-right-radius: 4px;
}

[dir="rtl"] .bubble-me {
  align-self: flex-start;
  border-bottom-right-radius: 4px;
  border-bottom-left-radius: 18px;
}

.bubble-other {
  background: var(--bg-card, #12121a);
  color: #fff;
  align-self: flex-end;
  border-bottom-left-radius: 4px;
}

[dir="rtl"] .bubble-other {
  align-self: flex-end;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 18px;
}

.bubble-text {
  white-space: pre-wrap;
}

.bubble-time {
  font-size: 10px;
  opacity: 0.6;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.bubble-me .bubble-time {
  text-align: left;
  justify-content: flex-start;
}

[dir="rtl"] .bubble-me .bubble-time {
  text-align: left;
  justify-content: flex-start;
}

.bubble-other .bubble-time {
  text-align: right;
  justify-content: flex-end;
}

[dir="rtl"] .bubble-other .bubble-time {
  text-align: right;
  justify-content: flex-end;
}

/* Message Status */
.msg-status {
  font-size: 12px;
  margin-right: 2px;
}

.msg-status.sent {
  color: rgba(255, 255, 255, 0.5);
}

.msg-status.delivered {
  color: rgba(255, 255, 255, 0.5);
}

.msg-status.read {
  color: #74b9ff;
}

/* Reply bubble */
.bubble-reply {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 6px 10px;
  margin-bottom: 6px;
  border-right: 3px solid var(--accent, #fd79a8);
  font-size: 12px;
  line-height: 1.4;
  max-height: 50px;
  overflow: hidden;
}

[dir="rtl"] .bubble-reply {
  border-right: none;
  border-left: 3px solid var(--accent, #fd79a8);
}

.bubble-reply .reply-name {
  font-weight: 700;
  font-size: 11px;
  color: var(--accent, #fd79a8);
  margin-bottom: 2px;
}

.bubble-reply .reply-text {
  opacity: 0.7;
  font-size: 12px;
}

/* Media in bubble */
.bubble-media {
  border-radius: 12px;
  overflow: hidden;
  margin: -6px -8px 4px;
}

.bubble-media img,
.bubble-media video {
  width: 100%;
  max-width: 260px;
  display: block;
  border-radius: 12px;
  cursor: pointer;
}

/* Voice message */
.bubble-voice {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
}

.bubble-voice .voice-play {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  border: none;
  color: #fff;
  font-size: 14px;
}

.bubble-voice .voice-wave {
  flex: 1;
  height: 24px;
  display: flex;
  align-items: center;
  gap: 1.5px;
}

.bubble-voice .voice-bar {
  width: 3px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  transition: height 0.1s ease;
}

.bubble-voice .voice-duration {
  font-size: 11px;
  opacity: 0.6;
  flex-shrink: 0;
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: var(--bg-card, #12121a);
  border-radius: 18px;
  align-self: flex-end;
  max-width: 70px;
}

.typing-indicator .dot {
  width: 7px;
  height: 7px;
  background: var(--text-muted, #888);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-indicator .dot:nth-child(1) { animation-delay: 0s; }
.typing-indicator .dot:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* ============================================
   CHAT INPUT BAR
   ============================================ */

.chat-input-bar {
  min-height: 56px;
  background: var(--bg-card, #12121a);
  display: flex;
  align-items: flex-end;
  padding: 8px 12px;
  gap: 6px;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}

.chat-input {
  flex: 1;
  background: var(--bg-surface, #1a1a25);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 20px;
  padding: 8px 14px;
  color: var(--text, #eee);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
  min-height: 38px;
  max-height: 100px;
  resize: none;
  font-family: inherit;
}

.chat-input::placeholder {
  color: var(--text-muted, #888);
}

.chat-input:focus {
  border-color: var(--primary, #6c5ce7);
}

.send-btn {
  width: 38px;
  height: 38px;
  background: var(--primary, #6c5ce7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.send-btn:hover {
  background: var(--primary-light, #a29bfe);
}

.send-btn:active {
  transform: scale(0.92);
}

.send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.attach-icon {
  font-size: 20px;
  color: var(--text-muted, #888);
  cursor: pointer;
  padding: 6px;
  transition: color 0.2s ease;
  background: none;
  border: none;
  flex-shrink: 0;
}

.attach-icon:hover {
  color: var(--text, #eee);
}

.emoji-toggle-btn {
  font-size: 20px;
  color: var(--text-muted, #888);
  cursor: pointer;
  padding: 6px;
  transition: color 0.2s ease;
  background: none;
  border: none;
  flex-shrink: 0;
}

.emoji-toggle-btn:hover {
  color: var(--text, #eee);
}

/* Record button */
.record-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: var(--text-muted, #888);
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.record-btn:hover {
  color: var(--accent, #fd79a8);
}

.record-btn.recording {
  color: #e74c3c;
  animation: recordPulse 1s infinite;
}

@keyframes recordPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Recording indicator */
.recording-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(231, 76, 60, 0.1);
  border-top: 1px solid rgba(231, 76, 60, 0.2);
}

.recording-indicator .rec-dot {
  width: 10px;
  height: 10px;
  background: #e74c3c;
  border-radius: 50%;
  animation: recordPulse 1s infinite;
}

.recording-indicator .rec-text {
  font-size: 13px;
  color: #e74c3c;
  flex: 1;
}

.recording-indicator .rec-time {
  font-size: 13px;
  color: var(--text-muted, #888);
  font-variant-numeric: tabular-nums;
}

.recording-indicator .rec-cancel {
  background: none;
  border: none;
  color: var(--text-muted, #888);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
}

.recording-indicator .rec-cancel:hover {
  color: #e74c3c;
}

/* Reply preview bar */
.reply-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-surface, #1a1a25);
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-right: 3px solid var(--primary, #6c5ce7);
}

[dir="rtl"] .reply-preview {
  border-right: none;
  border-left: 3px solid var(--primary, #6c5ce7);
}

.reply-preview .reply-content {
  flex: 1;
  min-width: 0;
}

.reply-preview .reply-to {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-light, #a29bfe);
}

.reply-preview .reply-msg {
  font-size: 12px;
  color: var(--text-muted, #888);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reply-preview .reply-close {
  background: none;
  border: none;
  color: var(--text-muted, #888);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
}

/* ============================================
   MEDIA PREVIEW BAR
   ============================================ */

.media-preview-bar {
  padding: 12px 14px;
  background: var(--bg-surface, #1a1a25);
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.media-preview-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.media-preview-content img {
  border-radius: 8px;
}

.media-caption-input {
  width: 100%;
  background: var(--bg-card, #12121a);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--text, #eee);
  font-size: 13px;
  outline: none;
  font-family: inherit;
}

.media-caption-input::placeholder {
  color: var(--text-muted, #888);
}

.media-caption-input:focus {
  border-color: var(--primary, #6c5ce7);
}

.media-preview-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.media-cancel-btn {
  background: none;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.15));
  border-radius: 8px;
  padding: 6px 14px;
  color: var(--text-muted, #888);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.media-cancel-btn:hover {
  background: var(--bg-highlight, rgba(255, 255, 255, 0.06));
}

.media-send-btn {
  background: var(--primary, #6c5ce7);
  border: none;
  border-radius: 8px;
  padding: 6px 18px;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.media-send-btn:hover {
  background: var(--primary-light, #a29bfe);
}

.media-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
   EMOJI PICKER
   ============================================ */

.emoji-picker {
  background: var(--bg-card, #12121a);
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  max-height: 260px;
  display: flex;
  flex-direction: column;
}

.emoji-tabs {
  display: flex;
  overflow-x: auto;
  padding: 6px 8px;
  gap: 4px;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  scrollbar-width: none;
}

.emoji-tabs::-webkit-scrollbar {
  display: none;
}

.emoji-tab {
  font-size: 18px;
  padding: 4px 8px;
  border-radius: 8px;
  border: none;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}

.emoji-tab.active {
  background: var(--bg-highlight, rgba(255, 255, 255, 0.1));
}

.emoji-tab:hover {
  background: var(--bg-highlight, rgba(255, 255, 255, 0.06));
}

.emoji-grid {
  display: none;
  flex-wrap: wrap;
  padding: 8px;
  gap: 2px;
  overflow-y: auto;
  max-height: 200px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.emoji-grid.active {
  display: flex;
}

.emoji-grid::-webkit-scrollbar {
  width: 4px;
}

.emoji-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.emoji-item {
  font-size: 22px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: none;
  background: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.emoji-item:hover {
  transform: scale(1.2);
  background: var(--bg-highlight, rgba(255, 255, 255, 0.06));
}

/* ============================================
   REACTIONS POPUP
   ============================================ */

.reactions-popup {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-card, #12121a);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 24px;
  padding: 6px 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  margin-bottom: 8px;
  animation: popIn 0.2s ease;
}

@keyframes popIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.reactions-popup .react-emoji {
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: transform 0.15s ease, background 0.15s ease;
  background: none;
  border: none;
  line-height: 1;
}

.reactions-popup .react-emoji:hover {
  transform: scale(1.3);
  background: var(--bg-highlight, rgba(255, 255, 255, 0.06));
}

.bubble-reactions {
  display: flex;
  gap: 2px;
  margin-top: 4px;
}

.bubble-reaction {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-surface, #1a1a25);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  padding: 2px 6px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}

.bubble-reaction:hover {
  background: var(--bg-highlight, rgba(255, 255, 255, 0.1));
}

.bubble-reaction .react-count {
  font-size: 10px;
  color: var(--text-muted, #888);
}

/* ============================================
   CONTEXT MENU
   ============================================ */

.msg-context-menu {
  position: fixed;
  z-index: 300;
  background: var(--bg-card, #12121a);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  padding: 6px 0;
  min-width: 160px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  animation: popIn 0.15s ease;
}

.msg-context-menu .ctx-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text, #eee);
  cursor: pointer;
  transition: background 0.15s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: right;
  font-family: inherit;
}

[dir="rtl"] .msg-context-menu .ctx-item {
  text-align: right;
}

.msg-context-menu .ctx-item:hover {
  background: var(--bg-highlight, rgba(255, 255, 255, 0.06));
}

.msg-context-menu .ctx-item .ctx-icon {
  font-size: 16px;
  color: var(--text-muted, #888);
  width: 20px;
  text-align: center;
}

.msg-context-menu .ctx-item.danger {
  color: #e74c3c;
}

.msg-context-menu .ctx-item.danger .ctx-icon {
  color: #e74c3c;
}

.msg-context-menu .ctx-divider {
  height: 1px;
  background: var(--border, rgba(255, 255, 255, 0.08));
  margin: 4px 0;
}

.msg-context-overlay {
  position: fixed;
  inset: 0;
  z-index: 299;
}

/* ============================================
   FORWARD MODAL
   ============================================ */

.forward-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: var(--bg-card, #12121a);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  max-height: 60vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.forward-title {
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text, #eee);
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}

.forward-list {
  overflow-y: auto;
  flex: 1;
}

.forward-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 14px;
  color: var(--text, #eee);
}

.forward-item:hover {
  background: var(--bg-highlight, rgba(255, 255, 255, 0.06));
}

.forward-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

/* ============================================
   CHAT EMPTY STATE
   ============================================ */

.chat-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.chat-empty .empty-icon {
  font-size: 48px;
  opacity: 0.3;
  margin-bottom: 14px;
}

.chat-empty .empty-text {
  font-size: 14px;
  color: var(--text-muted, #888);
  line-height: 1.6;
}

/* Search in chat */
.chat-search {
  padding: 10px 14px;
  background: var(--bg-card, #12121a);
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}

.chat-search input {
  width: 100%;
  background: var(--bg-surface, #1a1a25);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 10px;
  padding: 9px 14px;
  color: var(--text, #eee);
  font-size: 13px;
  outline: none;
  font-family: inherit;
}

.chat-search input::placeholder {
  color: var(--text-muted, #888);
}

.chat-search input:focus {
  border-color: var(--primary, #6c5ce7);
}
