:root {
  --primary: #0068ff;
  --primary-hover: #0056d6;
  --primary-light: #e5f0ff;
  --bg-app: #f4f6f8;
  --bg-sidebar: #0f172a;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --text-main: #1e293b;
  --text-sub: #64748b;
  --text-muted: #94a3b8;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family:
    "Plus Jakarta Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
}

body {
  background-color: var(--bg-app);
  color: var(--text-main);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* ================= CỘT 1: SIDEBAR KÊNH (68px) ================= */
.col-channels {
  width: 68px;
  background-color: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0;
  flex-shrink: 0;
  z-index: 20;
}

.brand-logo {
  margin-bottom: 20px;
  cursor: pointer;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
}

.channel-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  align-items: center;
  flex: 1;
  overflow-y: auto;
}

.channel-btn {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #fff;
}

.channel-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.channel-btn.active {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.2);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.channel-icon {
  font-size: 20px;
  font-weight: 700;
}

.channel-icon.zalo {
  background: #0068ff;
  color: #fff;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.channel-icon.fb {
  background: #1877f2;
  color: #fff;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
}

.channel-icon.oa {
  background: #0088ff;
  color: #fff;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
}

.channel-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  border: 2px solid var(--bg-sidebar);
}

.channel-status-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--bg-sidebar);
}

.channel-status-dot.connected {
  background: var(--success);
}
.channel-status-dot.awaiting_qr {
  background: var(--warning);
}
.channel-status-dot.disconnected {
  background: var(--danger);
}

.channels-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.add-channel-btn,
.config-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.add-channel-btn:hover,
.config-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.status-indicator-wrapper {
  padding: 6px;
}

.live-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

/* ================= CỘT 2: DANH SÁCH HỘI THOẠI (320px) ================= */
.col-conversations {
  width: 320px;
  background: var(--bg-card);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.conv-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-app);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  gap: 8px;
  border: 1px solid transparent;
}

.search-box:focus-within {
  border-color: var(--primary);
  background: #fff;
}

.search-icon {
  color: var(--text-sub);
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13.5px;
  width: 100%;
  color: var(--text-main);
}

.filter-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-app);
  padding: 3px;
  border-radius: var(--radius-sm);
}

.filter-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 6px 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-sub);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-tab:hover {
  color: var(--text-main);
}

.filter-tab.active {
  background: #fff;
  color: var(--primary);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

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

.conv-item {
  display: flex;
  padding: 12px 14px;
  gap: 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
  position: relative;
}

.conv-item:hover {
  background: #f8fafc;
}

.conv-item.active {
  background: #eff6ff;
  border-left: 3px solid var(--primary);
}

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

.conv-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #e2e8f0;
}

.conv-channel-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #fff;
}

.conv-channel-badge.fb {
  background: #1877f2;
}
.conv-channel-badge.oa {
  background: #0088ff;
}

.conv-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.conv-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.conv-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-time {
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.conv-msg-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.conv-last-msg {
  font-size: 12.5px;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-item.unread {
  background: rgba(0, 104, 255, 0.04);
  border-left: 3px solid var(--primary);
}
.conv-item.unread .conv-name {
  font-weight: 700;
  color: #0f172a;
}
.conv-item.unread .conv-last-msg {
  font-weight: 600;
  color: #1e293b;
}

.conv-unread-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  margin-left: 6px;
  box-shadow: 0 0 6px rgba(0, 104, 255, 0.6);
  flex-shrink: 0;
}

.conv-unread {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  box-shadow: 0 2px 5px rgba(0, 104, 255, 0.35);
}

.conv-read-indicator {
  font-size: 11px;
  color: #94a3b8;
  margin-left: 4px;
}

#btnMarkUnread.is-unread {
  color: var(--primary);
  background: rgba(0, 104, 255, 0.12);
}

/* Inbound Message Toast Popup */
.inbound-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 360px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow:
    0 10px 25px -5px rgba(0, 0, 0, 0.15),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  cursor: pointer;
  animation: slideInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.inbound-toast:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.2);
}
.inbound-toast-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.inbound-toast-body {
  flex: 1;
  min-width: 0;
}
.inbound-toast-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}
.inbound-toast-msg {
  font-size: 12px;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inbound-toast-badge {
  font-size: 10px;
  background: var(--primary);
  color: #fff;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 600;
}
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.conv-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

.tag-pill {
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #e2e8f0;
  color: #475569;
  font-weight: 500;
}

/* ================= CỘT 3: KHUNG CHAT CHÍNH (flex: 1) ================= */
.col-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  min-width: 0;
  position: relative;
}

.chat-header {
  height: 64px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-shrink: 0;
}

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

.avatar-wrap {
  position: relative;
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #e2e8f0;
}

.user-meta h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.user-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-chip {
  font-size: 12px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.channel-name-sub {
  font-size: 12px;
  color: var(--text-sub);
}

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

.status-select {
  padding: 6px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-size: 12.5px;
  background: #fff;
  cursor: pointer;
  outline: none;
}

.status-select:focus {
  border-color: var(--primary);
}

.btn-icon {
  background: transparent;
  border: 1px solid var(--border-color);
  padding: 6px;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background: #f1f5f9;
  color: var(--text-main);
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-welcome {
  margin: auto;
  text-align: center;
  max-width: 320px;
}

.welcome-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.chat-welcome h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.chat-welcome p {
  font-size: 13px;
  color: var(--text-sub);
}

/* BONG BÓNG CHAT */
.message-row {
  display: flex;
  gap: 10px;
  max-width: 75%;
}

.message-row.inbound {
  align-self: flex-start;
}

.message-row.outbound {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}

.msg-bubble-wrap {
  display: flex;
  flex-direction: column;
}

.message-row.outbound .msg-bubble-wrap {
  align-items: flex-end;
}

.msg-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.45;
  word-break: break-word;
  white-space: pre-wrap;
}

.message-row.inbound .msg-bubble {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.message-row.outbound .msg-bubble {
  background: var(--primary);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 104, 255, 0.25);
}

.msg-meta {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.message-row.outbound .msg-meta {
  justify-content: flex-end;
}

.msg-attachments {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.msg-img-preview {
  max-width: 260px;
  max-height: 200px;
  border-radius: 8px;
  cursor: pointer;
  object-fit: cover;
  transition: transform 0.15s;
}

.msg-img-preview:hover {
  transform: scale(1.02);
}

.msg-video-preview {
  max-width: 280px;
  max-height: 220px;
  border-radius: 8px;
  display: block;
  background: #000;
}

.msg-audio-preview {
  max-width: 260px;
  height: 40px;
  display: block;
}

/* THANH TIN MẪU F1-F4 */
.quick-reply-bar {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
}

.qr-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-sub);
  white-space: nowrap;
}

.qr-pills {
  display: flex;
  gap: 6px;
}

.qr-pill-btn {
  background: var(--bg-app);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  color: var(--text-main);
}

.qr-pill-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.qr-shortcut {
  font-weight: 700;
  color: var(--primary);
  margin-right: 4px;
}

/* Ô NHẬP TIN NHẮN */
.chat-input-area {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-actions-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.action-btn {
  cursor: pointer;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 6px;
}

.action-btn:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.selected-files {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.file-chip {
  background: var(--bg-app);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 11.5px;
  padding: 2px 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.file-chip-remove {
  cursor: pointer;
  color: var(--danger);
  font-weight: bold;
}

.input-box-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.input-box-row textarea {
  flex: 1;
  resize: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 13.5px;
  outline: none;
  max-height: 120px;
}

.input-box-row textarea:focus {
  border-color: var(--primary);
}

.btn-send {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-send:hover {
  background: var(--primary-hover);
}

/* ================= CỘT 4: MINI CRM (320px) ================= */
.col-crm {
  width: 320px;
  background: var(--bg-card);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
}

.crm-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}

.crm-header h3 {
  font-size: 15px;
  font-weight: 600;
}

.crm-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.crm-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 40px 0;
  font-size: 13px;
}

.crm-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.crm-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-sub);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-sub);
}

.form-input,
.form-textarea {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 13px;
  outline: none;
  color: var(--text-main);
  background: #fff;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary);
}

.phone-with-copy {
  display: flex;
  gap: 6px;
}

.btn-copy {
  background: var(--bg-app);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 500;
}

.btn-copy:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

.tag-select-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-chip-toggle {
  font-size: 11.5px;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background: #f8fafc;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s;
}

.tag-chip-toggle.selected {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #0369a1;
  font-weight: 600;
}

.btn-save-crm {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-save-crm:hover {
  background: var(--primary-hover);
}

/* ================= MODALS & OVERLAYS ================= */
.modal-overlay,
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(2px);
}

.modal-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 90%;
  max-width: 440px;
  overflow: hidden;
  animation: modalIn 0.2s ease-out;
}

.modal-card.modal-lg {
  max-width: 680px;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 600;
}

.btn-close {
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

.btn-close:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 20px;
}

.text-center {
  text-align: center;
}

.qr-instructions {
  font-size: 13.5px;
  color: var(--text-sub);
  margin-bottom: 16px;
}

.qr-img-wrapper {
  width: 220px;
  height: 220px;
  margin: 0 auto 16px auto;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  overflow: hidden;
}

.qr-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.btn {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--bg-app);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: #e2e8f0;
}

.btn-sm {
  padding: 5px 12px;
  font-size: 12px;
}

/* KÊNH CHOICE CARDS */
.channel-choice-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.choice-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.choice-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}

.choice-icon.zalo-bg {
  background: #0068ff;
}
.choice-icon.fb-bg {
  background: #1877f2;
}
.choice-icon.oa-bg {
  background: #0088ff;
}

.choice-info {
  flex: 1;
}

.choice-info h4 {
  font-size: 14px;
  font-weight: 600;
}

.choice-info p {
  font-size: 12px;
  color: var(--text-sub);
}

/* BẢNG TIN MẪU */
.qr-manage-table-wrap {
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.qr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.qr-table th,
.qr-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
}

.qr-table th {
  background: var(--bg-app);
  font-weight: 600;
  color: var(--text-sub);
}

.qr-add-form {
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
}

.qr-add-form h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.form-row {
  display: flex;
  gap: 8px;
}

.form-row input {
  padding: 8px 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
}

.form-row input:focus {
  border-color: var(--primary);
}

/* LIGHTBOX */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 36px;
  color: #fff;
  cursor: pointer;
}

#lightboxImage {
  max-width: 85vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* TOAST */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
}

.toast {
  background: #1e293b;
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.25s ease-out;
}

.toast.toast-success {
  border-left: 4px solid var(--success);
}

.toast.toast-error {
  border-left: 4px solid var(--danger);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= MULTI-ACCOUNT TABS & CHIPS ================= */
.channel-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 16px;
  padding-bottom: 8px;
}

.channel-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--bg-app);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-sub);
  transition: all 0.15s;
}

.channel-tab-btn:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.channel-tab-btn.active {
  background: #eff6ff;
  border-color: var(--primary);
  color: var(--primary);
}

.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
}

.tab-help-text {
  font-size: 12.5px;
  color: var(--text-sub);
  margin-bottom: 16px;
  line-height: 1.5;
}

.tab-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.mb-8 {
  margin-bottom: 8px;
}
.mb-12 {
  margin-bottom: 12px;
}

/* ACCOUNT BADGE ON CONVERSATION ITEM */
.conv-account-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
  background: #e0f2fe;
  color: #0369a1;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.status-badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}

.status-badge-inline.connected {
  background: #dcfce7;
  color: #15803d;
}

.status-badge-inline.awaiting_qr {
  background: #fef3c7;
  color: #b45309;
}

.status-badge-inline.disconnected {
  background: #fee2e2;
  color: #b91c1c;
}

/* ================= CUỘC GỌI & SOFTPHONE DIALER ================= */

/* Nút gọi trong Header */
.btn-call-header {
  background: #ecfdf5 !important;
  color: #059669 !important;
  border-color: #a7f3d0 !important;
  transition: all 0.2s ease;
}

.btn-call-header:hover {
  background: #10b981 !important;
  color: #ffffff !important;
  transform: scale(1.05);
}

/* Nút gọi nhanh trong Mini CRM */
.btn-call-mini {
  background: #10b981;
  color: #ffffff;
  border: none;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
  height: 34px;
  white-space: nowrap;
}

.btn-call-mini:hover {
  background: #059669;
}

/* Nút nổi gọi điện ở góc màn hình */
.floating-dialer-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-dialer-btn:hover {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.5);
}

.dialer-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 14px;
  height: 14px;
  background: #ef4444;
  border: 2px solid #ffffff;
  border-radius: 50%;
  animation: pulse-badge 1.5s infinite;
}

@keyframes pulse-badge {
  0% {
    transform: scale(0.9);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
  100% {
    transform: scale(0.9);
    opacity: 1;
  }
}

/* Khung widget Softphone */
.softphone-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 320px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.16),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  z-index: 10001;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slide-up-softphone 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slide-up-softphone {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.softphone-header {
  background: #0f172a;
  color: #ffffff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.softphone-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
}

.softphone-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}

.softphone-header-btns {
  display: flex;
  gap: 6px;
}

.btn-softphone-head {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
}

.btn-softphone-head:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

/* Tabs của Softphone */
.softphone-tabs {
  display: flex;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.sp-tab-btn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: transparent;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.sp-tab-btn.active {
  color: #10b981;
  border-bottom-color: #10b981;
  background: #ffffff;
}

.sp-view {
  padding: 16px;
  display: none;
  flex-direction: column;
}

.sp-view.active {
  display: flex;
}

/* Thông tin người nhận */
.sp-recipient-info {
  margin-bottom: 8px;
  text-align: center;
}

.sp-recipient-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #0f172a;
}

/* Màn hình hiển thị số đang gõ */
.sp-number-display {
  position: relative;
  margin-bottom: 14px;
}

.sp-number-display input {
  width: 100%;
  padding: 10px 40px 10px 12px;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  letter-spacing: 1px;
  outline: none;
  transition: border-color 0.2s;
}

.sp-number-display input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.sp-btn-backspace {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 18px;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
}

.sp-btn-backspace:hover {
  color: #ef4444;
}

/* Bàn phím số 3x4 */
.sp-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.sp-key {
  aspect-ratio: 1.35;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.12s;
}

.sp-key:hover {
  background: #e2e8f0;
  transform: scale(1.03);
}

.sp-key:active {
  background: #cbd5e1;
  transform: scale(0.97);
}

.sp-key .digit {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.1;
}

.sp-key .sub {
  font-size: 9px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.5px;
}

/* Các nút gọi */
.sp-call-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sp-btn-call {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  transition: all 0.2s;
}

.sp-btn-call:hover {
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}

.sp-extra-call-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.sp-btn-extra {
  font-size: 11.5px;
  font-weight: 500;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  text-decoration: none;
  padding: 5px 8px;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sp-btn-extra:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.input-error-pulse {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
  animation: shake 0.3s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }
  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }
  30%,
  50%,
  70% {
    transform: translate3d(-3px, 0, 0);
  }
  40%,
  60% {
    transform: translate3d(3px, 0, 0);
  }
}

/* VIEW 2: ACTIVE CALL */
.sp-active-call-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
}

.sp-avatar-pulse {
  position: relative;
  width: 72px;
  height: 72px;
  margin-bottom: 12px;
}

.sp-pulse-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #10b981;
  animation: call-pulse 1.8s infinite;
}

@keyframes call-pulse {
  0% {
    transform: scale(0.95);
    opacity: 1;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.sp-call-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sp-call-name {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px 0;
  text-align: center;
}

.sp-call-phone {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 6px;
}

.sp-call-status {
  font-size: 12px;
  font-weight: 600;
  color: #10b981;
  margin-bottom: 8px;
}

.sp-call-timer {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  margin-bottom: 18px;
}

.sp-active-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.sp-ctrl-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  text-decoration: none;
  color: #0f172a;
  transition: all 0.15s;
}

.sp-ctrl-btn:hover {
  background: #e2e8f0;
}

.sp-ctrl-icon {
  font-size: 16px;
}

.sp-ctrl-label {
  font-size: 10.5px;
  font-weight: 600;
}

.sp-btn-hangup {
  background: #ef4444;
  color: #ffffff;
  border: none;
  width: 180px;
  padding: 10px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.35);
  transition: all 0.2s;
}

.sp-btn-hangup:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

/* VIEW 3: CALL SUMMARY */
.sp-summary-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sp-summary-header h4 {
  margin: 0;
  font-size: 14px;
  color: #0f172a;
}

.sp-summary-duration {
  font-size: 12px;
  font-weight: 700;
  color: #10b981;
  background: #ecfdf5;
  padding: 2px 8px;
  border-radius: 12px;
}

.sp-summary-status-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.sp-status-radio {
  cursor: pointer;
}

.sp-status-radio input {
  display: none;
}

.sp-status-pill {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
  padding: 6px 4px;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  transition: all 0.15s;
}

.sp-status-radio input:checked + .sp-status-pill.green {
  border-color: #10b981;
  background: #ecfdf5;
  color: #065f46;
}

.sp-status-radio input:checked + .sp-status-pill.yellow {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #92400e;
}

.sp-status-radio input:checked + .sp-status-pill.red {
  border-color: #ef4444;
  background: #fef2f2;
  color: #991b1b;
}

.sp-status-radio input:checked + .sp-status-pill.gray {
  border-color: #94a3b8;
  background: #f1f5f9;
  color: #1e293b;
}

.sp-notes-group label {
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 4px;
  display: block;
}

.sp-notes-group textarea {
  width: 100%;
  padding: 8px;
  font-size: 12.5px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
  resize: none;
  font-family: inherit;
}

.sp-notes-group textarea:focus {
  border-color: #10b981;
}

.sp-quick-tags {
  display: flex;
  gap: 4px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.sp-quick-tag {
  font-size: 10.5px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  color: #64748b;
}

.sp-quick-tag:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.sp-summary-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.sp-summary-actions .btn {
  flex: 1;
  padding: 8px;
  font-size: 13px;
}

/* VIEW 4: LỊCH SỬ GỌI */
.sp-history-list {
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sp-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.sp-hist-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sp-hist-phone {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
}

.sp-hist-meta {
  font-size: 11px;
  color: #64748b;
}

.sp-hist-btn-call {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.sp-hist-btn-call:hover {
  background: #10b981;
  color: #ffffff;
}

.sp-empty-history {
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  padding: 20px 0;
}

/* THẺ CUỘC GỌI TRONG BONG BÓNG TIN NHẮN (CALL CARD IN CHAT) */
.call-log-bubble {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 14px;
  min-width: 240px;
  max-width: 320px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.call-log-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.call-log-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.call-log-icon-wrap.connected {
  background: #dcfce7;
  color: #15803d;
}

.call-log-icon-wrap.missed {
  background: #fef3c7;
  color: #b45309;
}

.call-log-icon-wrap.busy {
  background: #fee2e2;
  color: #b91c1c;
}

.call-log-icon-wrap.failed {
  background: #f1f5f9;
  color: #475569;
}

.call-log-title-area {
  flex: 1;
}

.call-log-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.call-log-status-line {
  font-size: 11.5px;
  font-weight: 600;
}

.call-log-status-line.connected {
  color: #16a34a;
}

.call-log-status-line.missed {
  color: #d97706;
}

.call-log-status-line.busy {
  color: #dc2626;
}

.call-log-status-line.failed {
  color: #64748b;
}

.call-log-notes {
  background: #f8fafc;
  border-left: 3px solid #10b981;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  color: #334155;
  margin-top: 6px;
  line-height: 1.4;
}

.call-log-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed #e2e8f0;
}

.call-log-btn-callback {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.call-log-btn-callback:hover {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}

/* ================= ZALO CALL BUTTONS & MODAL ================= */

.btn-zalo-call-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-zalo-call-pill:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.btn-zalo-call-mini {
  background: #e0f2fe !important;
  color: #0284c7 !important;
  border: 1px solid #bae6fd !important;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-zalo-call-mini:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
}

/* Zalo Call Modal */
.zalo-brand-badge {
  background: #0068ff;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.zalo-call-recipient-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  margin-bottom: 14px;
}

.zalo-call-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.zalo-call-meta h4 {
  margin: 0 0 3px 0;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}

.zalo-call-phone-badge {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.zalo-call-guide-tip {
  font-size: 12.5px;
  line-height: 1.5;
  color: #334155;
  background: #eff6ff;
  border-left: 3px solid #0068ff;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.zalo-call-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zalo-call-opt-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.zalo-call-opt-btn:hover {
  border-color: #0068ff;
  background: #f0f7ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 104, 255, 0.12);
}

.zalo-call-opt-btn.primary {
  border: 1.5px solid #0068ff;
  background: linear-gradient(to right, #f0f7ff, #ffffff);
}

.zalo-opt-icon {
  font-size: 22px;
  line-height: 1;
}

.zalo-opt-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.zalo-opt-content strong {
  font-size: 13.5px;
  color: #0f172a;
  margin-bottom: 2px;
}

.zalo-opt-content span {
  font-size: 11.5px;
  color: #64748b;
}

.zalo-opt-arrow {
  font-size: 16px;
  color: #94a3b8;
  font-weight: 600;
}

.zalo-call-phone-prompt {
  margin-top: 14px;
  padding: 12px;
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 10px;
}

.zalo-call-phone-prompt label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 6px;
}

.call-log-bubble.zalo-call {
  border-left-color: #0068ff !important;
}

.call-log-icon-wrap.zalo {
  background: #eff6ff !important;
  color: #0068ff !important;
}
