/* ============================================
   Hero Banner Styles (V2 - Interactive Chat)
   Non-tech focus, no coding required message.
   ============================================ */

.hero-section {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  padding: 45px 24px;
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f9fbfc 100%);
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  /* Cho phép tương tác xuyên qua canvas xuống các nút bên dưới */
  opacity: 0.8;
}

.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
  /* Đảm bảo nội dung nằm trên canvas */
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 40px;
  /* Giảm gap để nới rộng diện tích cho 2 khối nội dung */
}

/* ---------- Text Side ---------- */
.hero-text-side {
  flex: 1;
  animation: fadeInUp 0.8s var(--ease-smooth) both;
}

.hero-mascot-mobile {
  display: none;
  /* Ẩn mặc định trên Desktop */
  text-align: center;
}

.hero-mascot-mobile .mascot-img {
  width: 100%;
  max-width: 180px;
  /* Mascot gọn gàng trên mobile */
  height: auto;
  animation: floatMascot 4s ease-in-out infinite;
}

@keyframes floatMascot {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-12px) rotate(2deg);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 28px;
  border-left: 3px solid var(--color-primary);
}

.hero-title-container {
  display: grid;
  grid-template-columns: auto auto;
  /* 2 cột cân bằng cho layout khảm */
  grid-template-rows: auto auto auto auto;
  /* 4 tầng nội dung */
  column-gap: 15px;
  width: 100%;
  max-width: 650px;
  margin-bottom: 56px;
  position: relative;
}

.hero-title-stack {
  display: contents;
  /* Giải phóng các thẻ con tham gia Grid trực tiếp */
}

.title-word {
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 1000;
  line-height: 1.25;
  letter-spacing: -2px;
  color: var(--color-primary);
  white-space: nowrap;
  padding: 5px 0;
  overflow: visible !important;
}

.title-word.s1 {
  grid-column: 1;
  grid-row: 1;
}

.title-word.s2 {
  grid-column: 1;
  grid-row: 2;
}

.title-word.s3 {
  grid-column: 1 / 3;
  grid-row: 3;
  margin-top: 10px;
}

.title-word.highlight {
  font-size: clamp(46px, 7.5vw, 78px);
  background: linear-gradient(135deg, #0d7377 0%, #14a085 50%, #0a5f62 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-mascot-desktop {
  grid-column: 2;
  grid-row: 1 / 3;
  /* Song hành Row 1 và 2 */
  display: flex;
  justify-content: flex-start;
  align-items: center;
  z-index: 100;
  /* Ưu tiên cao nhất để hiện dấu */
  position: relative;
  left: -5px;
  padding-top: 10px;
}

.hero-subtitle-l-base {
  grid-column: 1 / 3;
  grid-row: 4;
  max-width: 550px;
  padding-top: 24px;
  margin-top: 10px;
}

.hero-subtitle-l-base p {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--color-text-secondary);
  font-weight: 500;
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

/* ---------- Hero Buttons ---------- */
.hero-cta-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  position: relative;
}

.hero-cta-btn,
.hero-secondary-btn {
  height: 52px;
  padding: 0 32px;
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  box-sizing: border-box;
}

/* Primary CTA Button */
.hero-cta-btn {
  background: var(--color-primary-gradient, linear-gradient(135deg, #0f766e 0%, #0d9488 100%));
  color: #ffffff;
  box-shadow:
    0 2px 8px rgba(15, 118, 110, 0.15),
    0 8px 24px rgba(15, 118, 110, 0.2);
}

.hero-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.hero-cta-btn:hover::before {
  left: 100%;
}

.hero-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 12px rgba(15, 118, 110, 0.2),
    0 12px 32px rgba(15, 118, 110, 0.25);
}

.hero-cta-btn:active {
  transform: translateY(0);
 
}

 

/* Secondary Button */
.hero-secondary-btn {
  background: rgba(255, 255, 255, 0.8);
  color: var(--color-primary, #0f766e);
  border: 1.5px solid rgba(15, 118, 110, 0.25);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

 

.hero-secondary-btn:hover {
  background: rgba(15, 118, 110, 0.06);
  border-color: rgba(15, 118, 110, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.hero-secondary-btn:hover::before {
  transform: translateY(2px);
}

.hero-secondary-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

 

@keyframes mirrorShine {
  0% {
    left: -150%;
  }

  20%,
  100% {
    left: 250%;
    /* Vệt sáng lướt qua nhanh trong 1s đầu, 4s sau nghỉ */
  }
}

/* CTA Mascot Wrapper & Pointer */
.hero-cta-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.cta-mascot-pointer {
  position: absolute;
  right: -90px;
  /* Khoảng cách tối ưu */
  top: 50%;
  /* Căn giữa trục dọc nút bấm */
  z-index: 10;
  pointer-events: none;
}

.pointer-img {
  width: 72px;
  /* Tinh gọn thêm 1 chút */
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.08));
  animation: mascotPointerFloat 3.5s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes mascotPointerFloat {

  /* Giữ translateY(-55%) để bàn tay chỉ đúng tâm trục ngang của nút */
  0%,
  100% {
    transform: translateY(-55%) translate(0, 0) scale(1) rotate(0deg);
  }

  50% {
    transform: translateY(-55%) translate(-8px, -5px) scale(1.02) rotate(-3deg);
  }
}

@media (max-width: 1024px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 32px;
    padding: 0 15px;
  }

  .hero-text-side {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Reset default top margins for wrapper on tablet/mobile */
  .hero-cta-wrapper {
    margin-top: 24px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    width: 100%;
    position: relative;
    left: 0;
  }

  .cta-mascot-pointer {
    right: -72px;
    top: 50%;
  }

  .pointer-img {
    width: 56px;
  }

  /* Căn giữa tiêu đề 3 dòng trên mobile */
  .hero-title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    max-width: 100%;
    margin: 0 auto 24px;
    padding: 0;
  }

  .hero-title-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .title-word {
    font-size: clamp(32px, 9vw, 42px);
    line-height: 1.25;
    padding: 4px 0;
    text-align: center;
    letter-spacing: -0.5px;
  }

  .title-word.s3 {
    margin-top: 4px;
    font-size: clamp(34px, 10vw, 46px);
  }

  .hero-mascot-mobile,
  .hero-badge {
    display: none !important;
    /* Ẩn bớt để tối ưu không gian mobile */
  }

  .hero-mascot-desktop {
    display: none;
    /* Ẩn mascot desktop area */
  }

  .hero-subtitle-l-base {
    max-width: 100%;
    text-align: center;
    margin: 0 auto 32px;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-cta-wrapper {
    margin-top: 24px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    width: 100%;
  }

  .hero-cta-btn,
  .hero-secondary-btn {
    margin-top: 0 !important;
    margin-left: 0 !important;
    font-size: 12px !important;
    white-space: nowrap;
    flex: 0 1 auto;
    min-width: fit-content;
  }

  .cta-mascot-pointer {
    display: none !important;
  }

  .hero-subtitle-l-base p {
    text-align: center;
    font-size: 15px;
  }

  .hero-stats-mini {
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 24px;
    width: 100%;
  }

  .stat-mini-item {
    align-items: center;
    min-width: 120px;
  }

  .hero-visual-side {
    display: flex;
    /* Đảm bảo hiện lại portal chat trên mobile */
    width: 100%;
    margin-top: 20px;
    padding-bottom: 0;
    /* Khử lỗi "hụt" ở dưới bottom */
  }

  .mac-browser-shell {
    width: 100% !important;
    /* Chiếm trọn chiều ngang màn hình mobile */
    max-width: none;
    height: auto;
    border-radius: 0;
    /* Giữ ngôn ngữ thiết kế 0px trên mobile */
    margin-bottom: 0px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.05);
    /* Chỉ bóng đổ nhẹ phía trên để hòa quyện bottom */
  }

  .hero-chat-window {
    min-height: 520px;
    /* Tăng độ dài để "vừa vặn" hơn với màn hình dài của smartphone hiện đại */
  }
}

.mascot-joy-img {
  width: 190px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.12));
  animation: mascotHeroJoy 3s ease-in-out infinite;
  transform-origin: bottom center;
}

@keyframes mascotHeroJoy {

  0%,
  100% {
    transform: translateY(0) scale(1) rotate(0deg);
  }

  50% {
    transform: translateY(-30px) scale(1.05) rotate(5deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-stats-mini {
  display: flex;
  gap: 32px;
}

.stat-mini-item {
  display: flex;
  flex-direction: column;
}

.stat-mini-val {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-mini-lbl {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
}

/* ---------- Chat Mockup Side ---------- */
.hero-visual-side {
  flex: 1;
  /* Cân bằng 50/50 với phía văn bản */
  display: flex;
  justify-content: center;
  position: relative;
  /* Cần thiết để mascot tuyệt đối bám vào */
}

/* Mascot "Đu bám" Style */
.hero-mascot-peek {
  position: absolute;
  top: -90px;
  right: -8px;
  z-index: -1;
  pointer-events: none;
  transform: rotate(0deg);
}

.hero-mascot-peek .peek-img {
  width: 150px;
  height: auto;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.05));
}

@keyframes peekBreath {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

/* ---------- MacOS Browser Shell ---------- */
.mac-browser-shell {
  width: 100%;
  max-width: 580px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
  /* Đổ bóng sâu hơn cho cửa sổ */
  display: flex;
  flex-direction: column;
  /* Bỏ overflow: hidden để mascot thò đầu ra ngoài */
  animation: fadeInUp 1s var(--ease-smooth) both;
  position: relative;
  z-index: 10;
}

.mac-title-bar {
  position: relative;
  z-index: 1;
  /* Nằm trên Mascot */
  height: 40px;
  background: #e8eaed;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 20px;
}

.traffic-lights {
  display: flex;
  gap: 8px;
}

.light {
  width: 12px;
  height: 12px;
  /* Giữ hình vuông hoàn toàn theo yêu cầu NO border-radius */
}

.light.red {
  background: #ff5f56;
  border: 1px solid #e0443e;
}

.light.yellow {
  background: #ffbd2e;
  border: 1px solid #dea123;
}

.light.green {
  background: #27c93f;
  border: 1px solid #1aab29;
}

.browser-tab {
  height: 32px;
  width: 180px;
  background: #ffffff;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
  margin-top: 8px;
  /* Đẩy tab sát đáy title bar */
  border: 1px solid var(--color-border);
  border-bottom: none;
}

.tab-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* URL Bar Shell */
.mac-url-bar {
  height: 44px;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border-subtle);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
}

.nav-btns {
  display: flex;
  gap: 12px;
  color: var(--color-text-muted);
}

.refresh-ic {
  margin-left: 4px;
}

.url-field {
  flex: 1;
  height: 28px;
  background: #f1f3f4;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
  font-size: 12px;
  color: var(--color-text-secondary);
}

/* Updated Chat Window inside Shell */
.hero-chat-window {
  width: 100%;
  height: 520px;
  /* Điều chỉnh chiều cao phù hợp với shell */
  background: #ffffff;
  display: flex;
  flex-direction: column;
  position: relative;
}





.status-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background: #10b981;
  border: 2px solid var(--color-bg-subtle);
}

.assistant-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.assistant-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
}

.assistant-status {
  font-size: 12px;
  color: #10b981;
  font-weight: 500;
}

/* Chat Body (Scroll area) */
.chat-window-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* Giảm gap giữa các khối tin nhắn */
  background: #fdfdfd;
}

.chat-msg-wrapper {
  display: flex;
  gap: 10px;
  /* Giảm gap giữa avatar và body */
  max-width: 88%;
  /* Tăng max-width một chút */
  animation: msgAppear 0.35s var(--ease-smooth) both;
}

.ai-wrapper {
  align-self: flex-start;
  flex-direction: row;
}

.user-wrapper {
  align-self: flex-end;
  flex-direction: row-reverse;
}

/* Avatar Styles */
.msg-avatar {
  width: 32px;
  /* Giảm nhẹ kích thước avatar */
  height: 32px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.msg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Message Content Area */
.msg-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  /* Giảm gap giữa info và bubble */
}

.ai-wrapper .msg-body {
  align-items: flex-start;
}

.user-wrapper .msg-body {
  align-items: flex-end;
}

/* Info Bar (Role + Time) */
.msg-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  /* Giảm nhẹ font size */
  font-weight: 600;
  color: var(--color-text-muted);
}

.msg-role {
  color: var(--color-text);
  letter-spacing: 0.1px;
}

.msg-time {
  font-weight: 400;
  opacity: 0.7;
}

/* Message Bubble (Re-styling) */
.msg-bubble {
  padding: 10px 14px;
  /* Giảm padding từ 12-16 xuống 10-14 */
  font-size: 13.5px;
  /* Giảm nhẹ font size để chứa nhiều text hơn */
  line-height: 1.5;
  position: relative;
  text-align: left;
}

.chat-msg-ai {
  background: var(--color-bg-subtle);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.chat-msg-user {
  background: var(--color-primary);
  color: #ffffff;
  border: 1px solid var(--color-primary);
}

@keyframes msgAppear {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* AI Style Light Input Box */
.chat-window-footer {
  padding: 16px;
  background: transparent;
  border-top: none;
}

@keyframes inputGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.5);
    border-color: rgba(15, 118, 110, 0.6);
  }

  50% {
    box-shadow: 0 0 0 14px rgba(15, 118, 110, 0);
    border-color: var(--color-primary);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(15, 118, 110, 0);
    border-color: rgba(15, 118, 110, 0.6);
  }
}

.hero-ai-input-box {
  background: #ffffff;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 2px solid rgba(15, 118, 110, 0.6);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: all var(--ease-fast);
  border-radius: 0 !important;
  position: relative;
  animation: inputGlow 2s infinite;
  cursor: text;
}

.hero-ai-input-box:hover {
  background: #fdfdfd;
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.1);
}

.hero-ai-input-box:focus-within {
  background: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(15, 118, 110, 0.15);
  animation: none;
}

.hero-ai-textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.6;
  resize: none;
  min-height: 48px;
  max-height: 200px;
  padding: 4px 8px;
  font-family: inherit;
}

.hero-ai-textarea::placeholder {
  color: #94a3b8;
}

/* Actions Bar */
.ai-input-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.actions-left,
.actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Square Buttons (Override No-Radius) */
.ai-circle-btn,
.ai-send-btn {
  border-radius: 0 !important;
  /* Chuyển về hình vuông */
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all var(--ease-fast);
}

.ai-circle-btn {
  width: 32px;
  height: 32px;
  background: transparent;
  color: #64748b;
  border: 1.5px solid #e2e8f0 !important;
}

.ai-circle-btn:hover {
  color: var(--color-primary);
  border-color: var(--color-primary) !important;
  background: rgba(15, 118, 110, 0.05);
}

.ai-icon-btn {
  background: transparent;
  border: none;
  color: #64748b;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color var(--ease-fast);
}

.ai-icon-btn:hover {
  color: var(--color-primary);
}

.ai-send-btn {
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  color: #ffffff;
  margin-left: 8px;
}

.ai-send-btn:hover {
  background: var(--color-primary-hover);
  transform: scale(1.05);
}

.ai-send-btn:active {
  transform: scale(0.95);
}

@media (max-width: 640px) {
  .hero-ai-input-box {
    padding: 10px 14px;
    border-radius: 0 !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-section {
    padding: 0 20px;
    display: block;
    /* Hủy flex của section để nội dung trôi tự nhiên */
  }

  .hero-content {
    flex-direction: column;
    gap: 0;
    text-align: center;
  }

  /* Mỗi bên chiếm ít nhất 1 màn hình */
  .hero-text-side {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 0 60px 0;
  }

  .hero-mascot-mobile {
    display: block;
    margin-bottom: 24px;
    margin-top: -30px;
  }

  .hero-visual-side {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 0 80px 0;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
    font-size: 11px;
    margin-bottom: 24px;
  }

  .hero-title {
    font-size: clamp(32px, 8vw, 42px);
    margin-bottom: 32px;
  }

  .hero-title br {
    display: none;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
    font-size: 18px;
    padding: 0 10px;
  }

  .hero-stats-mini {
    justify-content: center;
    flex-wrap: wrap;
    /* Cho phép rớt dòng nếu stats nhiều */
    gap: 20px 40px;
    width: 100%;
  }

  .hero-chat-window {
    height: 540px;
    /* Thu nhỏ chiều cao một chút trên tablet/phone */
    max-width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    /* Giảm shadow cho nhẹ nhàng */
  }

  .hero-mascot-peek {
    top: -65px;
    right: 15px;
  }

  .hero-mascot-peek .peek-img {
    width: 110px;
    /* Thu nhỏ hơn trên tablet */
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding: 0 16px;
  }

  .hero-text-side {
    padding: 40px 0;
  }

  .hero-visual-side {
    padding: 20px 0 60px 0;
  }

  .hero-title {
    font-size: 26px;
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 15px;
    margin-bottom: 32px;
  }

  .hero-stats-mini {
    gap: 16px;
    padding-top: 20px;
  }

  .stat-mini-item {
    width: 46%;
    /* Chia 2 cột đều hơn */
  }

  .stat-mini-val {
    font-size: 20px;
  }

  .stat-mini-lbl {
    font-size: 11.5px;
  }

  /* --- Mobile Chat Optimization --- */
  .hero-mascot-peek {
    top: -52px;
    right: 5px;
  }

  .hero-mascot-peek .peek-img {
    width: 85px;
    /* Kích thước mini cho mobile */
  }

  .hero-chat-window {
    height: 480px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  }

  .chat-window-header {
    padding: 10px 15px;
    gap: 10px;
  }

  .assistant-avatar {
    width: 24px;
    height: 24px;
    border-radius: 0;
  }

  .assistant-name {
    font-size: 13px;
  }

  .assistant-status {
    font-size: 11px;
  }

  .chat-window-body {
    padding: 15px;
    gap: 14px;
  }

  .chat-msg-wrapper {
    max-width: 92%;
    /* Tận dụng tối đa chiều rộng mobile */
    gap: 8px;
  }

  .msg-avatar {
    width: 28px;
    /* Avatar nhỏ xinh cho mobile */
    height: 28px;
  }

  .msg-bubble {
    padding: 8px 12px;
    /* Padding gọn nhẹ */
    font-size: 13px;
  }

  .msg-info {
    font-size: 10px;
    margin-bottom: 1px;
  }

  .chat-window-footer {
    padding: 10px 15px;
  }

  .chat-input-wrapper {
    padding: 2px;
  }

  .chat-window-input {
    padding: 8px 12px;
    font-size: 13.5px;
  }

  .chat-window-send {
    width: 38px;
    height: 38px;
  }
}