/* ===================================================================
   ZALO MINI APP - HIỂU MÌNH VÀ KHÁM PHÁ NGHỀ
   Bản thiết kế ánh sáng & Tông màu nguyên bản chuẩn Slide thiết kế
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Tông màu chuẩn từ ảnh thiết kế */
  --primary: #0A4E35;              /* Xanh lá đậm thương hiệu / Pine Forest */
  --primary-hover: #073B28;
  --primary-tint: #EAF4EE;         /* Nền card "Câu hỏi em đang khám phá" */
  --primary-subtle: #F2F8F4;
  --primary-border: #D2E7DB;

  /* Tông màu phụ trợ (Secondary Accents) */
  --accent-peach: #FFF0E6;         /* Hộp "Điều còn chưa rõ", "Cập nhật ngày" */
  --accent-peach-border: #FFDBC9;
  --accent-peach-text: #963810;

  --accent-purple: #F3F1FA;        /* Hộp trắc nghiệm, nhận định */
  --accent-purple-border: #E0DBF0;
  --accent-purple-text: #594488;

  --accent-blue: #EEF5FC;
  --accent-blue-border: #D2E4F7;
  --accent-blue-text: #1E4E79;

  /* Nền giao diện sáng chuẩn Slide thiết kế (Off-white / Warm Pale Sage) */
  --bg-page: #F4F6F4;              /* Nền toàn trang web sáng thanh lịch */
  --bg-app: #F5F7F5;               /* Nền bên trong màn hình điện thoại */
  --surface: #FFFFFF;              /* Màu thẻ Card trắng */
  --surface-hover: #FAFCFA;

  /* Màu chữ */
  --text-main: #0E3525;            /* Màu chữ tiêu đề xanh rêu đậm sang trọng */
  --text-body: #2C4A3E;            /* Màu chữ nội dung */
  --text-muted: #5E7A6E;           /* Màu chữ phụ, ghi chú */
  --text-light: #8DA69B;
  
  --border: #E3EBE5;               /* Viền thẻ card */
  --border-light: #EDF3EF;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Shadows êm dịu, tinh tế */
  --shadow-sm: 0 1px 3px rgba(10, 78, 53, 0.04);
  --shadow-card: 0 2px 8px rgba(14, 53, 37, 0.04);
  --shadow-dock: 0 10px 30px rgba(14, 53, 37, 0.06);
  --shadow-phone: 0 20px 50px rgba(14, 53, 37, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.06);

  /* Device Specs: iPhone 17 Simulator (Kích thước hiện đại, thoáng rộng) */
  --phone-width: 418px;
  --phone-height: 870px;
  --phone-radius: 54px;
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-body);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  overflow-x: hidden;
}

/* ===================================================================
   LAYOUT: SIDEBAR ĐIỀU KHIỂN & KHUNG IPHONE 17
   =================================================================== */

.simulator-container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
  max-width: 1380px;
  width: 100%;
}

/* Sidebar bên trái: Tông nền sáng tinh tế */
.control-dock {
  width: 350px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  color: var(--text-body);
  box-shadow: var(--shadow-dock);
  position: sticky;
  top: 30px;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}

.control-dock::-webkit-scrollbar {
  width: 6px;
}
.control-dock::-webkit-scrollbar-thumb {
  background: #D2E2D8;
  border-radius: 10px;
}

.dock-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.dock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: var(--primary-tint);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.dock-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}

.dock-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.45;
}

.dock-section-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 18px 0 10px 0;
}

.dock-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dock-item-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: #F8FAF8;
  color: var(--text-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.dock-item-btn:hover {
  background: var(--primary-tint);
  border-color: var(--primary-border);
  color: var(--primary);
  transform: translateX(3px);
}

.dock-item-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(10, 78, 53, 0.25);
  font-weight: 700;
}

.dock-item-tag {
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 6px;
  background: #EAF0EC;
  color: var(--text-muted);
}

.dock-item-btn.active .dock-item-tag {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* ===================================================================
   IPHONE 17 PRO HARDWARE MOCKUP (CHUẨN THIẾT KẾ)
   =================================================================== */

.device-wrapper {
  position: relative;
  width: var(--phone-width);
  height: var(--phone-height);
  background: #1C2320;             /* Vỏ titan đen sang trọng ôm trọn màn hình sáng */
  border-radius: var(--phone-radius);
  box-shadow: var(--shadow-phone);
  padding: 11px;
  border: 4px solid #33423A;
  display: flex;
  flex-direction: column;
  user-select: none;
  flex-shrink: 0;
}

/* Nút bấm vật lý */
.device-wrapper::before {
  content: '';
  position: absolute;
  top: 125px;
  left: -8px;
  width: 4px;
  height: 48px;
  background: #3B4D44;
  border-radius: 4px 0 0 4px;
}
.device-wrapper::after {
  content: '';
  position: absolute;
  top: 185px;
  left: -8px;
  width: 4px;
  height: 48px;
  background: #3B4D44;
  border-radius: 4px 0 0 4px;
}
.power-btn {
  position: absolute;
  top: 150px;
  right: -8px;
  width: 4px;
  height: 70px;
  background: #3B4D44;
  border-radius: 0 4px 4px 0;
}

/* Màn hình điện thoại (Viewport Sáng) */
.device-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg-app);
  border-radius: calc(var(--phone-radius) - 11px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Dynamic Island */
.dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 29px;
  background: #000000;
  border-radius: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  cursor: pointer;
}

.dynamic-island:hover {
  width: 160px;
}

.island-camera {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0a0a14;
  border: 1px solid #1e1e2f;
  margin-left: auto;
}

.island-sensor {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #050510;
  margin-left: 6px;
}

/* iOS Status Bar */
.status-bar {
  height: 46px;
  padding: 12px 24px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  z-index: 90;
  background: var(--bg-app);
}

.status-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Zalo Mini App Navigation Header Bar */
.zalo-nav-bar {
  height: 46px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-app);
  border-bottom: 1px solid var(--border);
  z-index: 80;
  position: sticky;
  top: 0;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.nav-back-btn {
  background: none;
  border: none;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  transition: background 0.15s;
  flex-shrink: 0;
}

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

.nav-app-logo {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0A4E35 0%, #10B981 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(10, 78, 53, 0.22);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-app-logo:hover {
  transform: translateY(-0.5px);
  box-shadow: 0 3px 8px rgba(10, 78, 53, 0.28);
}

.nav-app-logo:active {
  transform: scale(0.92);
}

.nav-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zalo-action-capsule {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 2px 8px;
  gap: 8px;
}

.capsule-btn {
  background: none;
  border: none;
  font-size: 13px;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 4px;
  transition: opacity 0.15s;
}

.capsule-btn:hover {
  opacity: 0.7;
}

.capsule-divider {
  width: 1px;
  height: 11px;
  background: var(--border);
}

/* ===================================================================
   VÙNG CUỘN MÀN HÌNH & GIAO DIỆN CON
   =================================================================== */

.app-screen-container {
  flex: 1 1 0px;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  display: block;
  background: var(--bg-app);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  scroll-behavior: smooth;
}

.app-screen-container::-webkit-scrollbar {
  width: 5px;
}
.app-screen-container::-webkit-scrollbar-thumb {
  background: #CBDAD0;
  border-radius: 10px;
}
.app-screen-container::-webkit-scrollbar-track {
  background: transparent;
}

.screen-view {
  display: none;
  flex-direction: column;
  padding: 16px 16px 115px 16px;
  animation: fadeIn 0.2s ease-out;
  width: 100%;
  min-height: fit-content;
  box-sizing: border-box;
}

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

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

/* iOS Home Indicator Bar */
.home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 135px;
  height: 4px;
  background: #0E3525;
  border-radius: 10px;
  z-index: 95;
  pointer-events: none;
}

/* ===================================================================
   BOTTOM NAVIGATION BAR (4 TABS CHUẨN SLIDE 01)
   =================================================================== */

.app-bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #FFFFFF;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 4px 10px 4px;
  z-index: 85;
}

.nav-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 2px;
  border-radius: 8px;
  transition: all 0.15s ease;
  font-size: 10px;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  position: relative;
}

.nav-tab-item span {
  white-space: nowrap;
  letter-spacing: -0.2px;
}

.nav-tab-item:hover {
  color: var(--primary);
}

.nav-tab-item svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: all 0.15s;
  flex-shrink: 0;
}

.nav-tab-item.active {
  color: var(--primary);
  font-weight: 800;
}

.nav-tab-item.active svg {
  stroke: var(--primary);
  transform: translateY(-1px);
  filter: drop-shadow(0 2px 4px rgba(10, 78, 53, 0.25));
}

.nav-tab-item.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  width: 14px;
  height: 2.5px;
  border-radius: 9999px;
  background: var(--primary);
  animation: tabDotIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Nút Chat tư vấn ở giữa nổi bật (Center Tab) */
.nav-tab-center {
  position: relative;
}

.nav-tab-center .center-tab-icon-wrap {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F1F5F9;
  color: #475569;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-tab-center:hover .center-tab-icon-wrap {
  background: var(--primary-tint);
  color: var(--primary);
}

.nav-tab-center.active .center-tab-icon-wrap {
  background: linear-gradient(135deg, #0A4E35 0%, #10B981 100%);
  color: #FFFFFF;
  box-shadow: 0 3px 8px rgba(10, 78, 53, 0.32);
  transform: translateY(-2px);
}

.nav-tab-center svg {
  width: 16px;
  height: 16px;
}

.nav-tab-center.active svg {
  stroke: #FFFFFF;
  transform: none;
  filter: none;
}

@keyframes tabDotIn {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}

/* ===================================================================
   UI COMPONENTS & CARDS CHUẨN DESIGN TỪNG SLIDE
   =================================================================== */

/* Tag Pills */
.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  width: fit-content;
  user-select: none;
  transition: all 0.15s;
}

.tag-green {
  background: var(--primary-tint);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.tag-peach {
  background: var(--accent-peach);
  color: var(--accent-peach-text);
  border: 1px solid var(--accent-peach-border);
}

.tag-purple {
  background: var(--accent-purple);
  color: var(--accent-purple-text);
  border: 1px solid var(--accent-purple-border);
}

/* Typography styles inside screens */
.screen-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin: 6px 0 4px 0;
}

.screen-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 16px;
}

/* Primary Hero Card: "Câu hỏi em đang khám phá" (Slide 01 & 09) */
.hero-card {
  background: var(--primary-tint);
  border: 1px solid var(--primary-border);
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.hero-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.hero-question {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 16px;
}

/* Buttons */
.btn-primary {
  width: 100%;
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  padding: 13px 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(10, 78, 53, 0.2);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: scale(0.98);
}

/* Nút bo viền vừa text (Capsule / Pill Fit Button theo yêu cầu người dùng) */
.btn-fit {
  width: fit-content !important;
  max-width: 92% !important;
  padding: 12px 24px !important;
  border-radius: 9999px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-shadow: 0 4px 14px rgba(10, 78, 53, 0.22) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-fit:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(10, 78, 53, 0.3) !important;
}

.btn-fit:active {
  transform: scale(0.97) !important;
}

.btn-fit.saved {
  background: #10B981 !important;
  color: #FFFFFF !important;
  border-color: #059669 !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25) !important;
}

.btn-icon {
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--text-body);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s;
}

.btn-secondary:hover {
  background: var(--primary-subtle);
  border-color: var(--primary-border);
}

.btn-secondary:active {
  transform: scale(0.98);
}

/* Section Header */
.section-header {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  margin: 16px 0 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Evidence Cards (Hồ sơ đang cho thấy - Slide 01) */
.card-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.evidence-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-sm);
}

.evidence-card:hover {
  border-color: var(--primary-border);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.evidence-card:active {
  transform: scale(0.99);
}

.evidence-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.icon-leaf { background: #E2F2E9; color: #0A4E35; }
.icon-target { background: #E6EFEA; color: #0E3525; }
.icon-calendar { background: #FFEFE6; color: #963810; }
.icon-book { background: #EFF4FC; color: #1E4E79; }
.icon-chart { background: #EAF4EE; color: #0A4E35; }
.icon-purple { background: #F3F1FA; color: #594488; }

/* Modern Activity Cards & High-Fidelity Gradient Badges */
.activity-card-modern {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 11px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.activity-card-modern:hover {
  border-color: var(--primary-border);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(10, 78, 53, 0.08);
}

.activity-card-modern:active {
  transform: scale(0.985);
}

.activity-card-modern.featured-card {
  border-color: #A7F3D0;
  background: linear-gradient(180deg, #F0FDF4 0%, #FFFFFF 100%);
}

.modern-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  position: relative;
  transition: transform 0.2s ease;
}

.activity-card-modern:hover .modern-icon-badge {
  transform: scale(1.08) rotate(3deg);
}

.badge-emerald {
  background: linear-gradient(135deg, #0A4E35 0%, #10B981 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.badge-indigo {
  background: linear-gradient(135deg, #4338CA 0%, #6366F1 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.badge-amber {
  background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.badge-rose {
  background: linear-gradient(135deg, #E11D48 0%, #FB7185 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
}

.badge-cyan {
  background: linear-gradient(135deg, #0284C7 0%, #06B6D4 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.badge-violet {
  background: linear-gradient(135deg, #7C3AED 0%, #C084FC 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(192, 132, 252, 0.3);
}

.activity-meta-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.activity-meta-pill {
  font-size: 10.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  background: #F1F5F9;
  color: #475569;
}

.activity-meta-pill.pill-green {
  background: #DCFCE7;
  color: #166534;
}

.activity-meta-pill.pill-orange {
  background: #FEF3C7;
  color: #B45309;
}

/* Mô hình hóa quy trình 3 bước trực quan bằng hình ảnh (giảm tải đọc chữ) */
.activity-visual-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 3px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 9px;
  padding: 4px 6px;
  margin: 6px 0 7px 0;
  box-sizing: border-box;
  width: 100%;
}

.flow-step-item {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 9.5px;
  font-weight: 700;
  color: #334155;
  min-width: 0;
  overflow: hidden;
}

.flow-step-item span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-step-icon {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.flow-arrow-sep {
  color: #94A3B8;
  font-size: 8.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
  padding: 0 1px;
}

.activity-card-modern.featured-card .activity-visual-flow {
  background: #FFFFFF;
  border-color: #A7F3D0;
}

/* Thanh điều khiển Segmented Control vừa vặn 1 màn hình di động */
.activity-segmented-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  background: #F1F5F9;
  padding: 3px;
  border-radius: 14px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
}

.activity-seg-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 2px;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  color: #64748B;
  min-width: 0;
}

.activity-seg-item .seg-icon {
  font-size: 15px;
  line-height: 1;
}

.activity-seg-item .seg-label {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: -0.2px;
}

.activity-seg-item:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-main);
}

.activity-seg-item.active {
  background: #FFFFFF;
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(10, 78, 53, 0.12);
}

.activity-seg-item.active .seg-label {
  color: var(--primary);
  font-weight: 800;
}

/* Thanh bộ lọc Nghề nghiệp hiện đại */
.career-filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.career-filter-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 700;
  border: 1.5px solid #E2E8F0;
  background: #F8FAFC;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.career-filter-btn:hover {
  background: #F1F5F9;
  color: #1E293B;
  border-color: #CBD5E1;
}

.career-filter-btn:active {
  transform: scale(0.97);
}

.career-filter-btn.active {
  background: #ECFDF5;
  color: var(--primary, #0A4E35);
  border-color: var(--primary, #0A4E35);
  box-shadow: 0 2px 8px rgba(10, 78, 53, 0.12);
}

.career-filter-btn .filter-count {
  font-size: 10.5px;
  padding: 1px 7px;
  border-radius: 10px;
  background: #E2E8F0;
  color: #475569;
  font-weight: 800;
  transition: all 0.2s ease;
}

.career-filter-btn.active .filter-count {
  background: var(--primary, #0A4E35);
  color: #FFFFFF;
}

/* Thẻ nhiệm vụ nghề nghiệp chi tiết tương tác (Màn 18) */
.career-task-item {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  position: relative;
}

.career-task-item:hover {
  border-color: #CBD5E1;
  background: #F8FAFC;
  transform: translateY(-1px);
}

.career-task-item:active {
  transform: scale(0.98);
}

.career-task-item.active {
  border-color: var(--primary, #0A4E35);
  background: linear-gradient(180deg, #F0FDF4 0%, #FFFFFF 100%);
  box-shadow: 0 3px 12px rgba(10, 78, 53, 0.12);
}

.career-task-item .task-check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #CBD5E1;
  background: #F8FAFC;
  color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.career-task-item.active .task-check-icon {
  border-color: var(--primary, #0A4E35);
  background: var(--primary, #0A4E35);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(10, 78, 53, 0.25);
}

.evidence-content {
  flex: 1;
}

.evidence-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}

.evidence-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.35;
}

.arrow-icon {
  color: var(--text-light);
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-card-modern .arrow-icon {
  align-self: center;
  color: #94A3B8;
  transition: transform 0.15s ease, color 0.15s ease;
}

.activity-card-modern:hover .arrow-icon {
  transform: translateX(2px);
  color: var(--primary);
}

/* ===================================================================
   MÀN 15: VISUAL REFLECTION & GAMIFIED CHOICE CARDS
   =================================================================== */
.feedback-visual-section {
  margin-bottom: 14px;
}

.feedback-section-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.feedback-section-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: normal;
}

/* 3-Column Visual Grid for Interests and Obstacles */
.visual-card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.visual-tile-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.visual-tile-card:hover {
  transform: translateY(-2px);
  border-color: #CBD5E1;
}

.visual-tile-card:active {
  transform: scale(0.97);
}

.visual-tile-card.selected {
  border-color: var(--primary);
  background: var(--primary-tint);
  box-shadow: 0 3px 10px rgba(10, 78, 53, 0.12);
}

.visual-tile-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 6px;
  background: #F1F5F9;
  color: #334155;
  transition: all 0.2s ease;
}

.visual-tile-card.selected .visual-tile-icon {
  background: var(--primary);
  color: #FFFFFF;
}

.visual-tile-title {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}

.visual-tile-card.selected .visual-tile-title {
  color: var(--primary);
}

.visual-tile-sub {
  font-size: 9.5px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.2;
}

.visual-check-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.visual-tile-card.selected .visual-check-badge {
  opacity: 1;
  transform: scale(1);
}

/* 2-Column Next Step Choice Cards */
.visual-action-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.visual-action-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 12px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  position: relative;
}

.visual-action-card:hover {
  transform: translateY(-2px);
  border-color: #CBD5E1;
}

.visual-action-card.selected {
  border-color: var(--primary);
  background: var(--primary-tint);
  box-shadow: 0 3px 10px rgba(10, 78, 53, 0.12);
}

.visual-action-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: #F1F5F9;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.visual-action-card.selected .visual-action-icon {
  background: var(--primary);
  color: #FFFFFF;
}

.visual-action-text {
  flex: 1;
  min-width: 0;
}

.visual-action-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.visual-action-card.selected .visual-action-title {
  color: var(--primary);
}

.visual-action-sub {
  font-size: 9.5px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.2;
}

/* ===================================================================
   POPOVER TOOLTIP NGUỒN CĂN CỨ (Chuẩn Figma Slide 11)
   =================================================================== */
.evidence-tooltip-wrapper {
  position: relative;
  display: flex;
  justify-content: flex-start;
  margin-bottom: 8px;
  animation: popoverFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.evidence-source-popover {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0A4E35;
  color: #FFFFFF;
  padding: 8px 14px;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(10, 78, 53, 0.25);
  cursor: pointer;
  user-select: none;
  transition: all 0.18s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.evidence-source-popover:hover {
  background: #063825;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(10, 78, 53, 0.35);
}

.evidence-source-popover:active {
  transform: scale(0.97);
}

/* Downward speech bubble triangle pointing to the card */
.evidence-source-popover::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 28px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #0A4E35;
  transition: border-top-color 0.18s ease;
}

.evidence-source-popover:hover::after {
  border-top-color: #063825;
}

.popover-check {
  font-size: 14px;
  font-weight: 900;
  color: #A3E635; /* bright lime green */
  line-height: 1;
}

.popover-text {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.35;
  color: #FFFFFF;
  text-align: left;
}

@keyframes popoverFadeIn {
  from {
    opacity: 0;
    transform: translateY(5px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Hộp cam đào "Điều còn chưa rõ" chuẩn Slide 01 & 15 */
.alert-card-peach {
  background: var(--accent-peach);
  border: 1px solid var(--accent-peach-border);
  border-radius: 16px;
  padding: 14px;
  margin-top: 8px;
  cursor: pointer;
  transition: transform 0.15s;
}

.alert-card-peach:hover {
  transform: translateY(-1px);
}

.alert-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-peach-text);
  margin-bottom: 4px;
}

.alert-text {
  font-size: 12px;
  color: var(--accent-peach-text);
  line-height: 1.45;
}

/* Likert 5-Scale Radio List (Slide 10) */
.likert-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}

.likert-item {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-body);
}

.likert-item:hover {
  background: var(--surface-hover);
  border-color: var(--text-light);
}

.likert-item.selected {
  background: var(--primary-tint);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}

.likert-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.likert-item.selected .likert-circle {
  border-color: var(--primary);
  background: var(--primary);
}

.likert-circle::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFFFFF;
  opacity: 0;
}

.likert-item.selected .likert-circle::after {
  opacity: 1;
}

/* Consent Checkbox List (Slide 08) */
.consent-item {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.consent-item:hover {
  border-color: var(--primary-border);
}

.consent-item.checked {
  border-color: var(--primary);
  background: #FCFDFC;
}

.consent-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--text-light);
  background: #FFFFFF;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.15s;
}

.consent-item.checked .consent-checkbox {
  border-color: var(--primary);
  background: var(--primary);
}

.consent-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-main);
}

.consent-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.35;
}

/* Form Controls (Slide 09) */
.form-group {
  margin-bottom: 12px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.form-input {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.15s;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 78, 53, 0.1);
}

/* Mock Table in Activity (Slide 14) */
.mock-table {
  width: 100%;
  border-collapse: collapse;
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 10px 0;
  font-size: 12.5px;
}

.mock-table th {
  background: #F1F6F3;
  padding: 9px 12px;
  text-align: left;
  font-weight: 700;
  color: var(--text-main);
}

.mock-table td {
  padding: 9px 12px;
  border-top: 1px solid var(--border-light);
  color: var(--text-body);
}

.mock-table tr {
  cursor: pointer;
  transition: background 0.15s;
}

.mock-table tr:hover {
  background: var(--primary-subtle);
}

.mock-table tr.selected {
  background: var(--primary-tint);
}

/* Interactive SVG Chart Simulation (Slide 14) */
.chart-container {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin: 10px 0;
  cursor: pointer;
  transition: border-color 0.15s;
}

.chart-container:hover {
  border-color: var(--primary);
}

.chart-container.chart-highlighted {
  border-color: var(--primary) !important;
  background: var(--primary-tint) !important;
  box-shadow: 0 4px 14px rgba(10, 78, 53, 0.15) !important;
}

/* Chat view (Slide 19) */
.chat-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 10px 0;
}

.chat-bubble {
  max-width: 82%;
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.45;
  animation: fadeIn 0.2s ease-out;
}

.bubble-teacher {
  align-self: flex-start;
  background: #FFFFFF;
  border: 1px solid var(--border);
  color: var(--text-main);
  border-bottom-left-radius: 4px;
}

.bubble-student {
  align-self: flex-end;
  background: var(--primary);
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
}

/* Quick response pill chips in chat */
.quick-replies {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0 8px 0;
  margin-top: 4px;
}

.quick-reply-chip {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s;
}

.quick-reply-chip:hover {
  background: var(--primary-tint);
  border-color: var(--primary-border);
}

/* Timeline component (Slide 17) */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  margin: 16px 0 16px 12px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 10px;
  width: 2px;
  background: #D2E2D8;
}

.timeline-item {
  display: flex;
  gap: 14px;
  position: relative;
  cursor: pointer;
}

.timeline-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
  z-index: 2;
  transition: all 0.15s;
}

.timeline-item:hover .timeline-dot {
  border-color: var(--primary);
}

.timeline-item.done .timeline-dot {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

.timeline-content {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  transition: border-color 0.15s;
}

.timeline-item:hover .timeline-content {
  border-color: var(--primary-border);
}

.timeline-date {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2px;
}

.timeline-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
}

.timeline-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===================================================================
   TRANG CÁ NHÂN & HÀNH TRÌNH (PROFILE VIEW)
   =================================================================== */

.profile-header-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0A4E35 0%, #15803D 100%);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(10, 78, 53, 0.25);
}

.profile-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #10B981;
  border: 2.5px solid #FFFFFF;
}

.profile-meta {
  flex: 1;
  min-width: 0;
}

.profile-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  line-height: 1.3;
}

.profile-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.profile-school {
  font-size: 11px;
  color: var(--primary);
  font-weight: 700;
  margin-top: 3px;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.profile-stat-box {
  background: #F8FAF9;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 8px 4px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.profile-stat-box:hover {
  border-color: var(--primary-border);
  background: var(--primary-tint);
  transform: translateY(-1px);
}

.stat-number {
  font-size: 17px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Toast notification completely removed per user request */
.phone-toast {
  display: none !important;
}

/* ===================================================================
   ZALO ACTION SHEET / MODAL BOTTOM SHEET
   =================================================================== */

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 110;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
  border-radius: calc(var(--phone-radius) - 11px);
}

.modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.modal-bottom-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FFFFFF;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 18px 20px 24px 20px;
  z-index: 115;
  transform: translateY(100%);
  pointer-events: none;
  visibility: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
}

.modal-bottom-sheet.show {
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

.sheet-handle {
  width: 40px;
  height: 4px;
  background: #CBD5E1;
  border-radius: 9999px;
  margin: 0 auto 16px auto;
}

.sheet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
}

.sheet-item:last-child {
  border-bottom: none;
}

.sheet-item:hover {
  color: var(--primary);
}

/* Mock Interactive Data Table (Slide 14) */
.mock-table-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}

.mock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  text-align: left;
}

.mock-table th {
  background: #f8fafc;
  color: var(--text-muted);
  font-weight: 700;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.mock-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-main);
  vertical-align: middle;
}

.mock-table tbody tr {
  cursor: pointer;
  transition: all 0.15s ease;
}

.mock-table tbody tr:hover {
  background: #f8fafc;
}

.mock-table tbody tr.selected {
  background: var(--primary-tint) !important;
}

.mock-table tbody tr.selected td {
  color: var(--primary);
  font-weight: 600;
}

/* Segmented Topic Switcher (Slide 14 Redesign) */
.topic-segmented-control {
  display: flex;
  background: #E8EDE8;
  border-radius: 12px;
  padding: 3px;
  margin-bottom: 10px;
  gap: 3px;
  border: 1px solid rgba(10, 78, 53, 0.08);
}

.topic-segment-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 4px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

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

.topic-segment-btn.active {
  background: #FFFFFF;
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 1.5px 5px rgba(0, 0, 0, 0.08);
}

/* Dataset Context Info Box */
.dataset-info-box {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-tint);
  padding: 9px 12px;
  border-radius: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--primary-border);
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Observation & Insight Workbench */
.observation-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.observation-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

/* Metric Stat Cards (Step 2 Redesign) */
.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease;
}

.metric-card:hover {
  transform: translateY(-1px);
}

.metric-card.positive {
  background: #F2F8F4;
  border-color: #D2E7DB;
}

.metric-card.danger {
  background: #FEF2F2;
  border-color: #FEE2E2;
}

.metric-card.warning {
  background: #FFFBEB;
  border-color: #FEF3C7;
}

.metric-card.info {
  background: #EFF6FF;
  border-color: #DBEAFE;
}

.metric-val {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.metric-card.positive .metric-val { color: #0A4E35; }
.metric-card.danger .metric-val { color: #DC2626; }
.metric-card.warning .metric-val { color: #D97706; }
.metric-card.info .metric-val { color: #2563EB; }

.metric-lbl {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 3px;
  line-height: 1.2;
}

/* Insight Highlight Card */
.insight-highlight-card {
  background: #FFFFFF;
  border: 1px solid var(--primary-border);
  border-radius: 14px;
  padding: 11px 13px;
  box-shadow: var(--shadow-sm);
}

.insight-point {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12px;
  color: var(--text-body);
  line-height: 1.4;
  margin-bottom: 6px;
}

.insight-point:last-child {
  margin-bottom: 0;
}

.insight-point strong {
  color: var(--text-main);
}

/* Card Thử việc thực tế mô hình hóa bằng hình ảnh (Màn 18) */
.career-trial-hero {
  margin-top: 14px;
  background: linear-gradient(145deg, #FFF7ED 0%, #FFEDD5 100%);
  border: 1.5px solid #FDBA74;
  border-radius: 16px;
  padding: 12px 13px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.08);
  position: relative;
  overflow: hidden;
}

.career-trial-hero:hover {
  transform: translateY(-2px);
  border-color: #FB923C;
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.14);
}

.career-trial-hero:active {
  transform: scale(0.98);
}

.trial-hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.trial-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(251, 146, 60, 0.4);
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  color: #C2410C;
}

.trial-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #EA580C;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.trial-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 800;
  color: #EA580C;
  background: #FFFFFF;
  padding: 3px 9px;
  border-radius: 9999px;
  box-shadow: 0 1px 4px rgba(234, 88, 12, 0.12);
  transition: transform 0.15s ease;
}

.career-trial-hero:hover .trial-action-btn {
  transform: translateX(2px);
}

/* Khối mô hình hóa hình ảnh trực quan */
.trial-visual-mockup {
  background: #FFFFFF;
  border: 1px solid #FED7AA;
  border-radius: 12px;
  padding: 9px 10px;
  margin-bottom: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.mockup-flow-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.track-step {
  flex: 1;
  background: #FFF7ED;
  border: 1px solid #FFEDD5;
  border-radius: 8px;
  padding: 5px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 9.5px;
  font-weight: 700;
  color: #7C2D12;
  text-align: center;
}

.track-step.active {
  background: #FFEDD5;
  border-color: #FDBA74;
}

.track-step.pulse {
  background: #FEF3C7;
  border-color: #FCD34D;
  color: #92400E;
}

.track-icon {
  font-size: 13px;
  line-height: 1;
}

.track-arrow {
  font-size: 10px;
  color: #FB923C;
  font-weight: 800;
  flex-shrink: 0;
}

/* Biểu đồ số liệu mini */
.mini-chart-mockup {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  height: 38px;
  padding-bottom: 4px;
  border-bottom: 1.5px dashed #FDBA74;
  margin-bottom: 8px;
}

.mini-bar {
  width: 20px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #38BDF8 0%, #0284C7 100%);
  position: relative;
  transition: height 0.3s ease;
}

.mini-bar.warning {
  background: linear-gradient(180deg, #F87171 0%, #DC2626 100%);
}

.mini-bar .break-point-dot {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #DC2626;
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 900;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Chat bubble mini */
.mockup-bubbles-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.mini-bubble {
  flex: 1;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
}

.mini-bubble.user {
  background: #F1F5F9;
  color: #334155;
  border-left: 3px solid #64748B;
}

.mini-bubble.solution {
  background: #DCFCE7;
  color: #166534;
  border-left: 3px solid #16A34A;
}

.trial-task-title {
  font-size: 13px;
  font-weight: 800;
  color: #7C2D12;
  line-height: 1.35;
  margin-bottom: 5px;
}

.trial-task-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.trial-meta-item {
  font-size: 10px;
  font-weight: 700;
  color: #9A3412;
  background: rgba(255, 255, 255, 0.7);
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(251, 146, 60, 0.25);
}

.trial-meta-item.highlight {
  background: #ECFDF5;
  color: #065F46;
  border-color: #A7F3D0;
}

/* ===================================================================
   MÀN 23: TRAO ĐỔI VỚI GIÁO VIÊN (SINGLE SCREEN CHAT WORKSPACE)
   =================================================================== */

#screen-chat {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  padding: 10px 12px 72px 12px;
  background: #F8FAF8;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 10;
}

#screen-chat.active {
  display: flex;
}

/* 1. Header giáo viên thu gọn, chuyên nghiệp */
.chat-teacher-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 8px 12px;
  margin-bottom: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  flex-shrink: 0;
}

.teacher-avatar-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #EAF4EE 0%, #D2E7DB 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
  border: 1.5px solid #0A4E35;
}

.online-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10B981;
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 4px rgba(16, 185, 129, 0.6);
}

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

.teacher-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.teacher-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-main, #0E3525);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.teacher-role-badge {
  font-size: 9.5px;
  font-weight: 700;
  color: #0A4E35;
  background: #DCFCE7;
  padding: 1px 6px;
  border-radius: 9999px;
  flex-shrink: 0;
}

.teacher-status-desc {
  font-size: 10.5px;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

/* 2. Dòng tin nhắn cuộn mượt mà ở giữa (Flex: 1) */
.chat-messages-stream {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 2px 8px 2px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}

.chat-messages-stream::-webkit-scrollbar {
  width: 4px;
}
.chat-messages-stream::-webkit-scrollbar-thumb {
  background: #CBDAD0;
  border-radius: 10px;
}

.chat-date-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0 6px 0;
}

.chat-date-divider span {
  font-size: 10px;
  font-weight: 700;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.85);
  padding: 2px 10px;
  border-radius: 9999px;
  border: 1px solid #E2E8F0;
}

.chat-message-row {
  display: flex;
  flex-direction: column;
  max-width: 82%;
  animation: fadeIn 0.2s ease-out;
}

.chat-message-row.teacher {
  align-self: flex-start;
  align-items: flex-start;
}

.chat-message-row.student {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-bubble {
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.45;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  word-break: break-word;
}

.bubble-teacher {
  background: #FFFFFF;
  color: #1E293B;
  border: 1px solid #E2E8F0;
  border-bottom-left-radius: 4px;
}

.bubble-student {
  background: linear-gradient(135deg, #0A4E35 0%, #10B981 100%);
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
}

.chat-time {
  font-size: 9px;
  color: #94A3B8;
  margin-top: 3px;
  padding: 0 4px;
}

/* 3. Gợi ý câu trả lời nhanh (Quick replies chip row) */
.chat-quick-replies {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0 8px 0;
  flex-shrink: 0;
  -webkit-overflow-scrolling: touch;
}

.chat-quick-replies::-webkit-scrollbar {
  display: none;
}

.quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 9999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.quick-chip:hover {
  background: #ECFDF5;
  border-color: #0A4E35;
  color: #0A4E35;
  transform: translateY(-1px);
}

.quick-chip:active {
  transform: scale(0.96);
}

/* 4. Thanh nhập liệu tin nhắn cắm sát menu footer */
.chat-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 9999px;
  padding: 4px 5px 4px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input-bar:focus-within {
  border-color: #0A4E35;
  box-shadow: 0 0 0 3px rgba(10, 78, 53, 0.12);
}

.chat-text-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  font-size: 12.5px;
  color: var(--text-main, #0E3525);
  outline: none;
  font-family: inherit;
  padding: 4px 0;
}

.chat-text-input::placeholder {
  color: #94A3B8;
  font-size: 12px;
}

.chat-send-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0A4E35 0%, #10B981 100%);
  border: none;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 6px rgba(10, 78, 53, 0.25);
}

.chat-send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 3px 8px rgba(10, 78, 53, 0.35);
}

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



