:root {
  --primary-blue: #0b84f3;
  --primary-blue-dark: #0f6fd6;
  --primary-lue-light: #eaf4ff;
  --border-soft: #dbe7ff;
  --text-main: #243447;
  --text-soft: #71839b;
  --surface--white: #ffffff;
  --surface-soft: #f7fbff;
  --shadow-soft: 0 12px 30px rgba(11, 132, 243, 0.12);
}
body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(135deg, #eef5ff 0%, #dfeeff 100%);
  margin: 0;
  padding: 0;
}

/* --- PHẦN NÚT CHAT BONG BÓNG --- */
.chat-widget-wrapper {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
}

.chat-tooltip {
  background-color: #0084ff;
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  animation: bounce 2s infinite;
  cursor: pointer;
}

/* Tạo cái đuôi nhọn cho bong bóng chat */
.chat-tooltip::after {
  content: "";
  position: absolute;
  bottom: -8px;
  right: 20px;
  border-width: 8px 8px 0;
  border-style: solid;
  border-color: #0084ff transparent transparent transparent;
}

.chat-toggle-btn {
  width: 64px;
  height: 64px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(11, 132, 243, 0.18);
  cursor: pointer;
  border: 3px solid var(--primary-blue);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.chat-toggle-btn:hover {
  transform: scale(-2px) scale(1.04);
  box-shadow: 0 16px 34px rgba(11, 132, 243, 0.24);
}

.chat-toggle-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- PHẦN KHUNG CHAT (ẨN MẶC ĐỊNH) --- */
.chat-container {
  display: none;
  flex-direction: column;
  width: 420px;
  height: 540px;
  background: var(--surface--white);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(11, 132, 243, 0.18);
  position: absolute;
  bottom: 84px;
  right: 0;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  pointer-events: none;
}
.chat-container.open {
  display: flex;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  animation: chatPopupIn 0.28 ease;
}
@keyframes chatPopupIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (max-width: 768px) {
  .chat-widget-wrapper {
    right: 16px;
    bottom: 16px;
  }
  /* .chat-container {
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    bottom: 8px;
    right: 0;
    border-radius: 20px;
  } */
  .chat-container {
    width: 100vw;
    height: 100dvh;
    bottom: 0;
    right: 0;
    border-radius: 0;
  }

  .chat-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #18a4f2 100%);
    color: white;
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 0 6px 18px rgba(11, 132, 243, 0.12);
  }
  .chat-header h3 {
    font-size: 16px;
  }
  .header-status-text,
  .header-address,
  .header-zalo {
    font-size: 11px;
  }
  #chat-window {
    padding: 14px 12px 10px;
  }
  .msg-wrapper {
    max-width: 92%;
  }
  .msg-content {
    max-width: 230px;
  }
  .msg {
    font-size: 14px;
    padding: 10px 14px;
    max-width: 230px;
  }
  .msg-wrapper .avatar {
    width: 32px;
    height: 32px;
  }
  .time {
    font-size: 11px;
  }
  .input-group {
    padding: 10px;
  }
  .input-wrapper {
    padding: 6px 6px 6px 8px;
  }
  #message-input {
    font-size: 14px;
    padding: 8px 10px;
  }
  .input-wrapper .send-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  .chat-toggle-btn {
    width: 56px;
    height: 56px;
  }
  .chat-tooltip {
    font-size: 12px;
    padding: 7px 12px;
  }
  .file-preview {
    margin: 0 10px 8px;
    padding: 8px 10px;
  }
}
@media (max-width: 480px) {
  #chat-window {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
  }
  .msg-wrapper {
    max-width: 100%;
    gap: 6px;
  }
  .msg-content {
    max-width: calc(100vw - 110px);
  }
  .msg {
    max-width: calc(100vw - 110px);
    font-size: 13px;
    padding: 9px 12px;
  }
  .msg-wrapper .avatar {
    width: 28px;
    height: 28px;
  }
  .chat-widget-wrapper {
    right: 8px;
    bottom: 8px;
  }
  /* .chat-container {
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    bottom: 8px;
    right: 0;
    border-radius: 18px;
  } */
  .chat-container {
    width: 100vw;
    height: 100dvh;
    bottom: 0;
    right: 0;
    border-radius: 0;
  }

  .chat-header {
    padding: 12px 12px 10px;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
  }
  .header-info {
    padding-left: 0;
    min-width: 0;
  }
  .chat-header h3 {
    font-size: 14px;
    line-height: 1.3;
    margin: 0 0 6px;
    word-break: break-word;
  }
  .header-status-row {
    margin: 0 0 6px;
    gap: 6px;
  }
  .header-status-dot {
    width: 8px;
    height: 8px;
  }
  .header-status-text,
  .header-address,
  .header-zalo {
    font-size: 10px;
    line-height: 1.45;
    word-break: break-word;
  }
  .close-btn {
    width: 32px;
    height: 32px;
    font-size: 18px;
    flex-shrink: 0;
  }
  #chat-window {
    padding: 12px 10px 8px;
    gap: 6px;
  }
  .msg-wrapper {
    max-width: 95%;
    gap: 6px;
  }
  .msg-content {
    max-width: 210px;
  }
  .msg {
    font-size: 13.5px;
    padding: 10px 13px;
    max-width: 210px;
  }
  .msg-wrapper .avatar {
    width: 30px;
    height: 30px;
  }
  .input-group {
    padding: 8px;
  }
  .input-wrapper {
    border-radius: 20px;
    padding: 5px 5px 5px 8px;
  }
  #message-input {
    font-size: 14px;
  }
  .input-wrapper .send-btn {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }
  .input-wrapper .file-btn {
    font-size: 16px;
    padding: 5px;
  }
  .file-preview-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  .file-name {
    font-size: 12px;
  }
  .file-meta {
    font-size: 10px;
  }
}
.close-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform:
    background 0.2s,
    transform 0.2s;
  padding: 0;
  margin-left: 10px;
}
@keyframes messageFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.chat-header {
  background: linear-gradient(135deg, #0084ff 60%, #00c6ff 100%);
  color: white;
  padding: 18px 18px 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  box-shadow: 0 2px 8px #0084ff22;
}

.chat-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

#chat-window {
  flex: 1;
  padding: 18px 14px 10px 14px;
  overflow-y: auto;
  background: linear-gradient(120deg, #f7fbff 0%, #eaf3fa 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* CSS phân biệt người gửi / người nhận */
.msg-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 85%;
  animation: messageFadeIn 0.22s ease;
}

.msg-wrapper.my-msg {
  align-self: flex-end;
  margin-left: auto;
}

.msg-wrapper.bot-msg {
  align-self: flex-start;
  margin-right: auto;
}
.msg-content {
  display: flex;
  flex-direction: column;
  max-width: 260px;
}
.my-msg .msg-content {
  align-items: flex-end;
}
.bot-msg .msg-content {
  align-items: flex-start;
}
.msg {
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.5;
  word-wrap: break-word;
  white-space: normal;
  box-shadow: 0 2px 8px #0084ff11;
  max-width: 260px;
  min-width: 40px;
}
.msg > * {
  margin-top: 0;
  margin-bottom: 0;
}

.msg > * + * {
  margin-top: 6px;
}

.msg > :last-child {
  margin-bottom: 0 !important;
}

.msg p,
.msg div,
.msg ul,
.msg ol,
.msg li,
.msg blockquote {
  margin: 0;
}

.msg h1,
.msg h2,
.msg h3,
.msg h4,
.msg h5,
.msg h6 {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
}

.msg p:empty,
.msg div:empty {
  display: none;
}

.msg ul,
.msg ol {
  padding-left: 18px;
}

.msg li + li {
  margin-top: 4px;
}

.my-msg .msg {
  background: linear-gradient(135deg, #0084ff 80%, #00c6ff 100%);
  color: white;
  border-bottom-right-radius: 4px;
}
.bot-msg .msg {
  background: #fff;
  color: #222;
  border-bottom-left-radius: 4px;
  border: 1.2px solid #cde2ff;
  padding: 9px 14px;
}

.msg-wrapper .avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 1px 4px #0084ff22;
  background: #fff;
  border: 1.5px solid #e3eafc;
  flex-shrink: 0;
}

.time {
  font-size: 12px;
  color: #7ba6d6;
  margin-top: 2px;
  line-height: 1;
  padding: 0 4px;
}

.my-msg .time {
  text-align: right;
}
.bot-msg .time {
  text-align: left;
}
.msg-file {
  margin-bottom: 8px;
  width: fit-content;
}
.input-group {
  display: flex;
  padding: 13px 12px 13px 12px;
  background: #f7fbff;
  border-top: 1.5px solid #e3eafc;
  gap: 8px;
}

#message-input {
  flex: 1;
  height: 22px;
  min-height: 22px;
  max-height: 120x;
  padding: 10px 14px;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: inherit;
  line-height: 22px;
  background: transparent;
  resize: none;
  overflow-y: auto;
  box-sizing: content-box;
}
#message-input::placeholder {
  color: #8da2bf;
}
#message-input {
  height: 44px;
}
.send-btn {
  background: linear-gradient(135deg, #0084ff 80%, #00c6ff 100%);
  color: white;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  box-shadow: 0 2px 8px #0084ff22;
  transition: background 0.2s;
}

.send-btn:hover {
  background: #005fa3;
}

/* Hiệu ứng nhấp nháy bong bóng */
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* --- FORM THU THẬP THÔNG TIN --- */
#info-form-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 40, 60, 0.6);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.info-form {
  background: white;
  padding: 30px 35px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
  width: 90%;
  max-width: 360px;
  animation: slide-up 0.5s ease-out;
}

.form-logo {
  width: 70px;
  height: 70px;
  margin-bottom: 10px;
  border-radius: 50%;
  border: 3px solid #0084ff;
}

.info-form h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: #333;
  font-size: 22px;
}

.info-form p {
  color: #666;
  font-size: 15px;
  margin-bottom: 25px;
}

.info-form input {
  width: calc(100% - 24px);
  padding: 12px;
  margin-bottom: 12px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

.info-form input:focus {
  outline: none;
  border-color: #0084ff;
  box-shadow: 0 0 0 3px #0084ff33;
}

#start-chat-btn {
  width: 100%;
  padding: 12px;
  border: none;
  background: linear-gradient(135deg, #0084ff, #00c6ff);
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

#start-chat-btn:hover {
  box-shadow: 0 4px 15px #0084ff55;
  transform: translateY(-2px);
}

@keyframes slide-up {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* --- FILE UPLOAD STYLES --- */
.file-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-btn:hover {
  background: #e0eafc;
}

.file-preview {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: linear-gradient(135deg, #f8fbff 0%, #edf5ff 100%);
  border-radius: 12px;
  margin: 0 15px 10px 15px;
  border: 1px solid #cfe2ff;
  gap: 10px;
}
.file-preview-content {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.file-privew-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e0efff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.file-preview-info {
  min-height: 0;
  flex: 1;
}
.file-name {
  font-size: 13px;
  font-weight: 600;
  color: #1d4f91;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-name {
  margin-top: 2px;
  font-size: 11px;
  color: #6f8198;
}
.file-preview .file-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 10px;
  color: #0369a1;
  font-weight: 500;
}

.file-preview .remove-file {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  color: #7a8ca5;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2,
    color 0.2s,
    transform 0.2s;
}
.file-preview .remove-file:hover {
  background: #ffe5e5;
  color: #e03131;
  transform: scale(1.05);
}

.file-preview .remove-file:hover {
  color: #ef4444;
}

.msg-file {
  margin-bottom: 8px;
}

.chat-image {
  max-width: 220px;
  max-height: 220px;
  border-radius: 14px;
  cursor: pointer;
  border: 1px solid #d4e6ff;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  display: block;
}

.chat-image:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 24px rgba(0, 132, 255, 0.14);
}

.file-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #eef6ff;
  border-radius: 12px;
  color: #0f5fb6;
  text-decoration: none;
  font-size: 13px;
  border: 1px solid #cfe2ff;
  font-weight: 600;
  transition:
    background 0.2s,
    transform 0.2s;
}

.file-link:hover {
  background: #dcecff;
  transform: translateY(-1px);
}

/* --- INPUT GỘP VỚI NÚT FILE BÊN TRONG --- */
.input-wrapper {
  display: flex;
  align-items: flex-end;
  flex: 1;
  background: #fff;
  border: 1.5px solid var(--border-soft);
  border-radius: 24px;
  padding: 6px 6px 6px 10px;
  box-shadow: inset 0 1px 2px rgba(11, 132, 243, 0.04);
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}

.input-wrapper:focus-within {
  border-color: var(--primary-blue);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(11, 132, 243, 0.08);
}

.input-wrapper .file-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
}

.input-wrapper .file-btn:hover {
  background: #e0eafc;
}

.input-wrapper #message-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  padding: 8px 4px;
}

.input-wrapper .send-btn {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #22a6f2 100%);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  box-shadow: 0 8px 18px rgba(11, 132, 243, 0.2);
  transform:
    transform 0.2s,
    box-shadow 0.2s;
}

.input-wrapper .send-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(11, 132, 243, 0.24);
}

/* --- CHAT HEADER MỚI --- */
.chat-header {
  background: linear-gradient(135deg, #0084ff 60%, #00c6ff 100%);
  color: white;
  padding: 15px 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  box-shadow: 0 2px 8px rgba(0, 132, 255, 0.14);
}

.header-info {
  flex: 1;
  padding-left: 8px;
}

.chat-header h3 {
  margin: 0 0 6px 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-address,
.header-zalo {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.96;
  line-height: 1.5;
}

.header-address {
  margin-bottom: 2px;
}
.header-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 10px;
}
.header-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
  flex-shrink: 0;
}
.header-status-text {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}
.chat-empty-state,
.chat-loading-state {
  margin: auto;
  text-align: center;
  max-width: 280px;
  color: #5f6f86;
  padding: 20px;
}
.chat-empty-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eaf4ff 0%, #dbeafe 100%);
  font-size: 28px;
  box-shadow: 0 10px 24px rgba(11, 132, 243, 0.08);
}
.chat-empty-title {
  font-size: 18px;
  font-weight: 700;
  color: #28435f;
  margin-bottom: 8px;
}
.chat-empty-text,
.chat-loading-text {
  font-size: 14px;
  line-height: 1.6;
  color: #71839b;
}
.chat-loading-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 4px solid #dcecff;
  border-top-color: #0b84f3;
  animation: chatSpin 0.8s linear infinite;
}
@keyframes chatSpin {
  to {
    transform: rotate(360deg);
  }
}
.recalled-msg {
  font-style: italic;
  color: #7b8794 !important;
  background: #f1f5f9 !important;
  border: 1px dashed #cbd5e1 !important;
}
.recall-btn {
  margin-top: 6px;
  padding: 4px 8px;
  font-size: 11px;
  border: none;
  border-radius: 8px;
  background: #ffe8e8;
  color: #dc2626;
  cursor: pointer;
}
.recall-btn:hover {
  background: #ffd6d6;
}

.message-menu {
  position: absolute;
  top: 37px;
  /* left: calc(100% + 8px); */
  right: 30px;
  transform: translateY(-50px);
  min-width: 108px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
  padding: 6px;
  display: none;
  z-index: 30;
}
.message-menu.show {
  display: block;
}
.message-menu-item {
  width: 100%;
  border: none;
  background: transparent;
  color: #dc2626;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.message-menu-item:hover {
  background: #fff1f2;
  transform: scale(1.05);
}
.app-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.app-modal-backdrop[hidden] {
  display: none;
}
.app-modal {
  width: min(100%, 460px);
  background: rgba(255, 255, 255, 0.97);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
  padding: 26px 24px 22px;
  animation: modalIn 0.18s ease;
}
.app-modal-body {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  color: #243b5a;
  text-align: center;
}
.app-modal-header {
  margin-bottom: 18px;
  display: flex;
  justify-content: center;
}
.app-modal-header h3 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #56729a;
  background: #f2f6ff;
  white-space: nowrap;
}
.app-modal-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.modal-btn {
  min-width: 92px;
  height: 46px;
  border: none;
  border-radius: 14px;
  padding: 0 18px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.modal-btn-secondary {
  background: #edf3ff;
  color: #5a7093;
}
.modal-btn-primary {
  background: linear-gradient(135deg, #0b84f3 0%, #22a6f2 100%);
  color: #fff;
}
.modal-btn-danger {
  background: linear-gradient(135deg, #ff5f5f 0%, #ff3d3d 100%);
  color: #fff;
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.typing-indicator {
  display: flex;
  align-items: center;
  margin: 6px 0 10px;
}
.typing-bubble {
  display: inline-flex;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 16px;
  background: #e9f2ff;
}
.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #64747b;
  animation: typingPulse 1.2s infinite ease-in-out;
}
.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes typingPulse {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-3px);
    opacity: 1;
  }
}
.typing-text-bubble {
  padding: 10px 14px;
  min-width: 170px;
}
.typing-text {
  font-size: 14px;
  color: #6b7280;
  font-style: italic;
}
.typing-status-text {
  display: none;
  margin: 0 14px 8px;
  font-size: 13px;
  color: #7a8ca5;
  font-style: italic;
}
.typing-status-text.active {
  display: block;
}
