@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #fffdf5, #fff7e6);
  margin: 0;
  color: #4b3f2f;
}

/* 🧭 HEADER */
.header {
  text-align: center;
  padding: 40px 20px 30px;
  background: linear-gradient(135deg, #ffcc66, #ffe89a);
  color: #3b2c15;
  border-bottom-left-radius: 60px;
  border-bottom-right-radius: 60px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  animation: slideDown 0.8s ease;
}
@keyframes slideDown {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.header h1 { margin: 0; font-size: 30px; font-weight: 700; }
.header p { font-size: 15px; opacity: 0.9; margin-bottom: 20px; }

/* 🏠 Nút quay lại trang chủ */
.home-btn {
  background: white;
  color: #c48a00;
  padding: 10px 22px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.home-btn:hover {
  background: #fff1c9;
  transform: scale(1.05);
}

/* 💖 GIỚI THIỆU */
.intro, .support-info {
  max-width: 900px;
  margin: 50px auto;
  background: #fffef9;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: 0.4s;
}
.intro:hover, .support-info:hover { transform: translateY(-4px); }
.intro h2, .support-info h2 { color: #c48a00; text-align: center; }
.intro ul { list-style: none; padding: 0; }
.intro ul li::before { content: "🌟 "; color: #ffcc33; }
.intro ul li { padding: 5px 0; }

/* 🧭 THÔNG TIN HỖ TRỢ */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.info-card {
  background: #fffaf0;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  border: 1px solid #ffebc0;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.info-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 6px 15px rgba(255, 214, 86, 0.3);
}
.info-card h3 { color: #c48a00; margin-bottom: 8px; }
.link-mail, .link-zalo {
  color: #c48a00;
  font-weight: bold;
  text-decoration: none;
  transition: 0.2s;
}
.link-mail:hover, .link-zalo:hover {
  text-decoration: underline;
  color: #ffbb00;
}

/* Nút sao chép */
.copy-btn {
  margin-top: 5px;
  background: #ffd24c;
  border: none;
  color: #3b2c15;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.copy-btn:hover { background: #ffcc33; }

/* ✨ Hiệu ứng fade */
.fade-in { animation: fadeIn 1s ease; }
.fade-in-up { animation: fadeUp 1.2s ease; }
@keyframes fadeIn { from {opacity:0;} to {opacity:1;} }
@keyframes fadeUp { from {opacity:0; transform:translateY(30px);} to {opacity:1; transform:translateY(0);} }

/* 💬 CHATBOT giữ nguyên phần cũ */
/* 💬 CHATBOT - Giao diện vàng trắng sang trọng */
#chatToggle {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: linear-gradient(135deg, #ffd24c, #ffe89a);
  color: #4b3f2f;
  font-size: 22px;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}
#chatToggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(255, 210, 76, 0.4);
}

/* Hộp chat */
.chatbox {
  position: fixed;
  bottom: 100px;
  right: 25px;
  width: 360px;
  max-height: 520px;
  background: #fffdf5;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #ffe7a1;
}
.chatbox.open {
  display: flex;
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header chatbot */
.chat-header {
  background: linear-gradient(135deg, #ffcc66, #ffe89a);
  color: #3b2c15;
  padding: 12px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}
.close-btn {
  background: transparent;
  border: none;
  color: #3b2c15;
  font-size: 18px;
  cursor: pointer;
}

/* Nội dung chat */
.chat-body {
  padding: 10px;
  flex: 1;
  overflow-y: auto;
  background: #fffef9;
}

/* Bong bóng chat */
.bot-msg, .user-msg {
  max-width: 80%;
  padding: 10px 14px;
  margin: 8px 0;
  border-radius: 18px;
  line-height: 1.4;
  font-size: 14px;
  word-wrap: break-word;
}
.bot-msg {
  background: #fff4c1;
  align-self: flex-start;
  border: 1px solid #ffea96;
}
.user-msg {
  background: #ffd24c;
  color: #3b2c15;
  align-self: flex-end;
  text-align: right;
}

/* Gõ chữ hiệu ứng */
.typing span {
  animation: blink 1.2s infinite;
}
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink {
  0%, 80%, 100% { opacity: 0; }
  40% { opacity: 1; }
}

/* Footer chat */
.chat-footer {
  display: flex;
  border-top: 1px solid #f0d98d;
  padding: 8px;
  background: #fffef9;
}
.chat-footer input {
  flex: 1;
  border: none;
  outline: none;
  padding: 8px;
  font-size: 14px;
  background: #fffaf0;
  border-radius: 8px;
}
.chat-footer button {
  background: #ffcc33;
  color: #3b2c15;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  margin-left: 6px;
  font-weight: 600;
}
.chat-footer button:hover {
  background: #ffd84d;
}
/* 💬 Nút bật chatbot rung động nhẹ */
/* 💬 Nút mở ChatBot - hiệu ứng rung bật sáng nổi bật */
#chatToggle {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: radial-gradient(circle at 30% 30%, #ffde66, #ffcc33, #e6b800);
  color: #3b2c15;
  font-size: 26px;
  border-radius: 50%;
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(255, 208, 0, 0.6);
  animation: chatAttention 2.5s infinite ease-in-out;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 9999;
}

/* Khi hover: phóng to và phát sáng rực hơn */
#chatToggle:hover {
  transform: scale(1.2) rotate(5deg);
  box-shadow: 0 0 30px rgba(255, 200, 0, 0.9);
}

/* ✨ Hiệu ứng rung + phát sáng nhẹ lặp lại */
@keyframes chatAttention {
  0%, 90%, 100% {
    transform: translate(0, 0) rotate(0deg);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
  }
  92% {
    transform: rotate(4deg) scale(1.05);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.7);
  }
  94% {
    transform: rotate(-4deg) scale(1.05);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
  }
  96% {
    transform: rotate(3deg) scale(1.05);
    box-shadow: 0 0 30px rgba(255, 215, 0, 1);
  }
  98% {
    transform: rotate(-3deg) scale(1.05);
    box-shadow: 0 0 25px rgba(255, 230, 80, 0.9);
  }
}

/* 💫 Hiệu ứng vòng sáng lan tỏa quanh nút */
#chatToggle::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 25px 10px rgba(255, 235, 100, 0.3);
  opacity: 0;
  animation: glowWave 3s infinite ease-in-out;
}

@keyframes glowWave {
  0%, 70%, 100% { opacity: 0; transform: scale(1); }
  80% { opacity: 1; transform: scale(1.3); }
}
