/* ==========================================================================
   ZALO MINI APP TUYỂN SINH 360 - MODERN BLUE & WHITE DESIGN SYSTEM
   Phong cách: Trắng Xanh Tươi Mới, Đẳng Cấp SaaS B2B, Hiện Đại & Sắc Nét
   ========================================================================== */

:root {
  /* Color Palette - Fresh Modern Blue & Crisp White */
  --primary: #0068FF;           /* Zalo Standard Vibrant Blue */
  --primary-hover: #0052cc;
  --primary-light: #EBF4FF;     /* Subtle Blue Tint */
  --primary-subtle: #F4F8FD;    /* Ultra-light Soft Background */
  
  --accent-cyan: #00B4D8;       /* Tech Accent */
  --accent-cyan-light: #E0F7FA;
  
  --success: #10B981;          /* Conversion Green */
  --success-light: #ECFDF5;
  
  --warning: #F59E0B;          /* Hot Lead / Attention */
  --warning-light: #FFFBEB;
  
  --danger: #EF4444;
  --purple: #8B5CF6;
  --purple-light: #F3E8FF;

  /* Neutrals & Surfaces */
  --bg-page: #F8FAFC;          /* Clean Slate White Background */
  --surface: #FFFFFF;          /* Pure White Card */
  --surface-alt: #F1F5F9;
  
  --border-light: #E2E8F0;
  --border-focus: #93C5FD;
  
  --text-main: #0F172A;        /* Deep Slate for extreme readability */
  --text-muted: #64748B;
  --text-light: #94A3B8;

  /* Elevations & Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 104, 255, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.08), 0 4px 10px -4px rgba(0, 104, 255, 0.06);
  --shadow-phone: 0 25px 60px -15px rgba(0, 48, 120, 0.22), 0 10px 20px -5px rgba(0, 0, 0, 0.1);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Base - Single Unified Modern Facebook Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

button, input, select, textarea, optgroup {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   1. TOP NAVIGATION SWITCHER BAR
   ========================================================================== */
.top-nav-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 10px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-badge {
  background: linear-gradient(135deg, var(--primary) 0%, #0099FF 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}

.brand-title strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #0c4a6e;
  letter-spacing: -0.3px;
}

.brand-title span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

/* Mode Switcher Buttons */
.mode-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F1F5F9;
  padding: 5px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
}

.mode-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
  text-align: left;
}

.mode-btn .btn-icon {
  font-size: 18px;
}

.mode-btn .btn-text small {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.3px;
  opacity: 0.75;
}

.mode-btn .btn-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

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

.mode-btn.active {
  background: #FFFFFF;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 104, 255, 0.15);
}

.mode-btn-guide {
  background: var(--purple-light);
  color: var(--purple);
}
.mode-btn-guide:hover, .mode-btn-guide.active {
  background: #fff;
  color: var(--purple);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

/* Live Pill */
.nav-extra .live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--success-light);
  color: var(--success);
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  border: 1px solid #A7F3D0;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulseAnim 1.6s infinite ease-in-out;
}

@keyframes pulseAnim {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 8px var(--success); }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* ==========================================================================
   2. MAIN LAYOUT WRAPPERS
   ========================================================================== */
.app-viewport {
  min-height: calc(100vh - 65px);
  position: relative;
}

/* Mobile View Container */
.mobile-demo-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 50px;
  padding: 30px 20px 80px;
  background: linear-gradient(180deg, #F0F7FF 0%, #FFFFFF 60%, #F8FAFC 100%);
}

/* Phone Bezel Simulator (iPhone 14 style) */
.device-mockup.iphone-14 {
  width: 395px;
  height: 850px;
  background: #1E293B;
  border-radius: 50px;
  padding: 12px;
  box-shadow: var(--shadow-phone);
  position: relative;
  border: 4px solid #CBD5E1;
  flex-shrink: 0;
}

.device-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 25px;
  background: #000;
  border-radius: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.camera-lens {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #111827;
  border: 1px solid #374151;
}

.speaker {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: #1F2937;
}

.screen-frame {
  width: 100%;
  height: 100%;
  background: #F8FAFC;
  border-radius: 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Zalo Native Status Bar */
.zalo-status-bar {
  height: 42px;
  padding: 12px 22px 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #1E293B;
  background: #FFFFFF;
  z-index: 90;
}

/* ==========================================================================
   3. HEADER: LOGO & NHẬN DIỆN NHÀ TRƯỜNG CHUẨN CHÍNH DANH
   ========================================================================== */
.zalo-app-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 90;
}

.zalo-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zalo-icon-btn {
  background: none;
  border: none;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 50%;
  transition: var(--transition);
}

.zalo-icon-btn:hover {
  background: #F1F5F9;
}

.zalo-school-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.school-logo-emblem {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #1E3A8A 0%, #0068FF 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 104, 255, 0.25);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}

.school-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.school-name-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.school-name {
  font-size: 12.5px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.school-status-line {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  margin-top: 1px;
}

.portal-tag {
  color: #475569;
  font-weight: 600;
}

.status-separator {
  color: #CBD5E1;
  font-size: 8px;
}

.live-active-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
  animation: pulseAnim 1.8s infinite ease-in-out;
}

.active-status {
  color: #059669;
  font-weight: 700;
}

/* Authentic Zalo Capsule */
.zalo-capsule {
  display: flex;
  align-items: center;
  background: rgba(241, 245, 249, 0.85);
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-pill);
  padding: 3px 8px;
  backdrop-filter: blur(4px);
}

.capsule-btn {
  background: none;
  border: none;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px 4px;
}

.capsule-more {
  display: flex;
  align-items: center;
  gap: 2.5px;
}

.more-dot {
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: #475569;
}

.capsule-divider {
  width: 1px;
  height: 12px;
  background: #CBD5E1;
  margin: 0 4px;
}

/* ==========================================================================
   4. MINI APP SCROLLABLE BODY (Hidden Native Scrollbar)
   ========================================================================== */
.mini-app-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 14px 60px;
  background: #F8FAFC;
  display: none;
  /* Ẩn hoàn toàn thanh cuộn trên mọi trình duyệt */
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE and Edge */
  -webkit-overflow-scrolling: touch;
}

.mini-app-body::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

.mini-app-body.active-subview {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* ==========================================================================
   5. COMPONENT 1: BANNER SLIDE HÌNH ẢNH TRỰC QUAN (Visual Image-First)
   ========================================================================== */
.banner-carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
  box-shadow: var(--shadow-md);
  height: 185px;
}

.carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  height: 100%;
}

.carousel-slide {
  width: 100%;
  flex: 0 0 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.carousel-slide.slide-img-1 {
  background-image: url('../assets/images/slide_auto_workshop.jpg');
}

.carousel-slide.slide-img-2 {
  background-image: url('../assets/images/slide_campus_students.jpg');
}

.carousel-slide.slide-img-3 {
  background-image: url('../assets/images/slide_robotics_lab.jpg');
}

/* Semi-transparent dark vignette gradient */
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.82) 100%);
  padding: 14px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #FFFFFF;
}

.slide-pill-tag {
  display: inline-block;
  background: rgba(0, 104, 255, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  width: fit-content;
  letter-spacing: 0.3px;
}

.slide-pill-tag.tag-green {
  background: rgba(16, 185, 129, 0.9);
}

.slide-pill-tag.tag-purple {
  background: rgba(139, 92, 246, 0.9);
}

.slide-headline {
  font-size: 15px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.3;
  margin-top: auto;
  margin-bottom: 8px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.65);
}

.slide-btn-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-slide-action {
  background: #FFFFFF;
  color: #0F172A;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.carousel-slide:hover .btn-slide-action {
  background: var(--primary);
  color: #FFFFFF;
}

.carousel-dots {
  position: absolute;
  bottom: 8px;
  right: 14px;
  display: flex;
  gap: 5px;
  z-index: 20;
}

.carousel-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dots .dot.active {
  width: 16px;
  border-radius: var(--radius-pill);
  background: #FFFFFF;
}

/* ==========================================================================
   6. COMPONENT 2: BỘ 8 DANH MỤC TIỆN ÍCH (2 HÀNG X 4 CỘT)
   ========================================================================== */
.category-grid-8 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 8px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 14px 10px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  padding: 4px 2px;
}

.cat-item:hover {
  transform: translateY(-2px);
}

.cat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.cat-icon svg {
  display: block;
  stroke: #FFFFFF;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.bg-gradient-orange { background: linear-gradient(135deg, #FF7A00 0%, #FF9E00 100%); }
.bg-gradient-blue { background: linear-gradient(135deg, #0068FF 0%, #00B4D8 100%); }
.bg-gradient-green { background: linear-gradient(135deg, #10B981 0%, #059669 100%); }
.bg-gradient-cyan { background: linear-gradient(135deg, #06B6D4 0%, #0EA5E9 100%); }
.bg-gradient-purple { background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%); }
.bg-gradient-red { background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%); }
.bg-gradient-indigo { background: linear-gradient(135deg, #4F46E5 0%, #3730A3 100%); }
.bg-gradient-teal { background: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%); }

.cat-item span {
  font-size: 10.5px;
  font-weight: 700;
  color: #1E293B;
  line-height: 1.25;
}

/* ==========================================================================
   7. COMPONENT 3: BẢNG TIN SỰ KIỆN NÓNG (LIVE EVENTS)
   ========================================================================== */
.event-headline-card {
  background: linear-gradient(135deg, #EFF6FF 0%, #F0FDF4 100%);
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.event-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.event-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #DBEAFE;
  color: var(--primary);
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.event-countdown {
  font-size: 10.5px;
  font-weight: 800;
  color: #DC2626;
  background: #FEE2E2;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.event-headline-title {
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.35;
  margin-bottom: 6px;
}

.event-meta-info {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}

.event-rsvp-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px dashed #BFDBFE;
}

.rsvp-avatars {
  font-size: 10.5px;
  color: #334155;
}

.avatar-stack {
  margin-right: -4px;
  font-size: 13px;
}

.rsvp-count strong {
  color: var(--primary);
}

.btn-rsvp-zalo {
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 11px;
  font-weight: 800;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 104, 255, 0.25);
  transition: var(--transition);
}

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

/* ==========================================================================
   8. COMPONENT 6: BẢNG TIN & TIN TỨC NHÀ TRƯỜNG
   ========================================================================== */
.news-all-link {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-item-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.news-item-card:hover {
  border-color: #93C5FD;
  box-shadow: 0 4px 14px rgba(0, 104, 255, 0.08);
  transform: translateY(-1px);
}

.news-thumb-box {
  width: 90px;
  height: 82px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: #E2E8F0;
}

.news-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.news-item-card:hover .news-thumb-img {
  transform: scale(1.05);
}

.news-tag-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 8.5px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  letter-spacing: 0.2px;
}

.news-content-box {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-item-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.35;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item-summary {
  font-size: 10.5px;
  color: var(--text-muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.news-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 10px;
  color: #64748B;
  padding-top: 4px;
  border-top: 1px dashed #F1F5F9;
}

.news-meta-left {
  font-size: 9.5px;
  color: #94A3B8;
  white-space: nowrap;
}

.news-stats-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.n-stat {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: #64748B;
  font-weight: 600;
}

.n-stat.stat-views svg { color: #0068FF; }
.n-stat.stat-comments svg { color: #10B981; }
.n-stat.stat-qa svg { color: #F59E0B; }

/* News Detail Metrics Bar (Compact Icon + Number) */
.news-article-metrics-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 6px 10px;
  margin-bottom: 12px;
  gap: 6px;
}

.metric-block {
  display: flex;
  align-items: center;
  gap: 5px;
}

.metric-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metric-icon.icon-views { background: #EFF6FF; color: #0068FF; }
.metric-icon.icon-comments { background: #ECFDF5; color: #10B981; }
.metric-icon.icon-qa { background: #FEF3C7; color: #D97706; }

.metric-val {
  font-size: 11.5px;
  font-weight: 800;
  color: #1E293B;
  line-height: 1;
}

.btn-like-news {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #64748B;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.btn-like-news.liked {
  background: #FEE2E2;
  border-color: #FECACA;
  color: #DC2626;
}

.btn-like-news.liked svg {
  fill: #DC2626;
}

/* Key Highlights Box */
.news-key-highlights {
  background: linear-gradient(135deg, #EFF6FF 0%, #F0FDF4 100%);
  border: 1.2px solid #BFDBFE;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin: 14px 0;
}

.highlights-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 8px;
}

.highlights-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.highlights-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: #334155;
  line-height: 1.45;
}

.hl-bullet {
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}

/* QA Tab Switcher */
.qa-tab-switcher {
  display: flex;
  background: #F1F5F9;
  padding: 3px;
  border-radius: var(--radius-pill);
  gap: 4px;
  margin-bottom: 12px;
}

.qa-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.qa-tab-btn.active {
  background: #FFFFFF;
  color: #0068FF;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* News Bottom Actions */
.news-bottom-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #CBD5E1;
}

.btn-news-action-primary {
  background: linear-gradient(135deg, #0068FF 0%, #0052cc 100%);
  color: #FFFFFF;
  border: none;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 800;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 104, 255, 0.25);
  transition: var(--transition);
}

.btn-news-action-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-news-action-share {
  background: #EFF6FF;
  color: #0068FF;
  border: 1.2px solid #BFDBFE;
  padding: 9px 14px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-news-action-share:hover {
  background: #DBEAFE;
}

/* ==========================================================================
   9. FOOTER CHÍNH DANH (Full Trang - Tông Nền Trắng Xanh Tươi Mới)
   ========================================================================== */
.app-official-footer {
  margin: 24px -14px -60px -14px;
  padding: 24px 16px 85px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F0F7FF 45%, #E0F2FE 100%) !important;
  color: #1E293B !important;
  border-top: 2px solid #0068FF !important;
  box-shadow: 0 -4px 20px rgba(0, 104, 255, 0.08) !important;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Background subtle blue glow */
.app-official-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 60px;
  background: radial-gradient(ellipse at top, rgba(0, 104, 255, 0.15), transparent 70%);
  pointer-events: none;
}

.footer-brand-block {
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.footer-seal-emblem {
  width: 50px;
  height: 50px;
  margin: 0 auto 10px;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 1.5px solid #93C5FD;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 104, 255, 0.15);
}

.footer-school-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: 0.2px;
  line-height: 1.35;
  margin-bottom: 4px;
}

.footer-gov-meta {
  font-size: 10px;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.gov-divider {
  color: #94A3B8;
}

.footer-badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.footer-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #334155;
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.footer-pill-tag.tag-verified {
  background: #EFF6FF;
  border-color: #93C5FD;
  color: #0068FF;
}

.footer-pill-tag.tag-standard {
  background: #ECFDF5;
  border-color: #A7F3D0;
  color: #059669;
}

/* Quick Action Buttons */
.footer-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 16px;
}

.footer-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 6px;
  border-radius: var(--radius-md);
  font-size: 10.5px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.footer-action-btn.btn-call {
  background: linear-gradient(135deg, #0068FF 0%, #00B4D8 100%);
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(0, 104, 255, 0.25);
}

.footer-action-btn.btn-call:hover {
  filter: brightness(1.08);
}

.footer-action-btn.btn-chat {
  background: #FFFFFF;
  color: #0068FF;
  border: 1px solid #BFDBFE;
  box-shadow: 0 2px 6px rgba(0, 104, 255, 0.08);
}

.footer-action-btn.btn-chat:hover {
  background: #EFF6FF;
  border-color: #0068FF;
}

.footer-action-btn.btn-map {
  background: #FFFFFF;
  color: #475569;
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.footer-action-btn.btn-map:hover {
  color: #0068FF;
  border-color: #93C5FD;
}

/* Campus Cards */
.footer-info-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  text-align: left;
}

.campus-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.campus-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.campus-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0068FF;
}

.campus-title {
  font-size: 11px;
  font-weight: 800;
  color: #0F172A;
}

.campus-desc {
  font-size: 10.5px;
  color: #475569;
  line-height: 1.4;
  margin: 0;
  padding-left: 20px;
}

/* Contact Details */
.footer-contact-details {
  background: #FFFFFF;
  border: 1px dashed #93C5FD;
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 1px 4px rgba(0, 104, 255, 0.04);
}

.contact-line {
  font-size: 10.5px;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.c-label {
  color: #64748B;
  font-weight: 600;
}

.c-val {
  color: #0F172A;
  font-weight: 700;
}

.c-val.text-blue {
  color: #0068FF;
  text-decoration: none;
}

.c-sep {
  color: #CBD5E1;
}

/* Nav Links Grid */
.footer-nav-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
  text-align: left;
}

.footer-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 11px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  color: #1E293B;
  font-size: 10.5px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.footer-nav-link:hover {
  background: #EFF6FF;
  border-color: #0068FF;
  color: #0068FF;
  transform: translateX(2px);
}

/* Legal & Compliance */
.footer-legal-block {
  border-top: 1px solid #CBD5E1;
  padding-top: 14px;
}

.legal-badge-seal {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #059669;
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.legal-text {
  font-size: 9.5px;
  color: #64748B;
  line-height: 1.5;
  margin: 0;
}

.legal-text strong {
  color: #0F172A;
}

/* ==========================================================================
   10. COMMON UTILITIES & RETROFIT STYLES
   ========================================================================== */
/* Student Progress Tracker */
.student-status-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.status-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.status-label {
  font-size: 10.5px;
  color: var(--text-muted);
}

.status-user {
  font-size: 12.5px;
  font-weight: 700;
  color: #0F172A;
}

.status-percent {
  font-size: 11px;
  font-weight: 800;
  color: var(--success);
  background: var(--success-light);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.progress-bar-wrap {
  width: 100%;
  height: 7px;
  background: #E2E8F0;
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--success) 100%);
  border-radius: var(--radius-pill);
}

.doc-checklist {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 10.5px;
}

.doc-item.done { color: var(--success); font-weight: 600; }
.doc-item.pending { color: var(--warning); font-weight: 600; }

/* Program Cards */
.section-container { margin-bottom: 14px; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.section-title { font-size: 13.5px; font-weight: 800; color: #0F172A; }
.section-subtitle { font-size: 10.5px; color: var(--text-muted); }
.badge-count {
  font-size: 10.5px;
  font-weight: 700;
  background: #EFF6FF;
  color: var(--primary);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.program-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.program-card:hover { border-color: #93C5FD; box-shadow: var(--shadow-md); }

.program-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.tag-hot { background: #FEE2E2; color: #DC2626; font-size: 9.5px; font-weight: 700; padding: 1px 5px; border-radius: 4px; }
.tag-tech { background: #E0E7FF; color: #4338CA; font-size: 9.5px; font-weight: 700; padding: 1px 5px; border-radius: 4px; }
.tag-creative { background: #FCE7F3; color: #BE185D; font-size: 9.5px; font-weight: 700; padding: 1px 5px; border-radius: 4px; }

.program-title { font-size: 13.5px; font-weight: 800; color: #0F172A; line-height: 1.3; }
.program-code { font-size: 10.5px; color: var(--text-muted); display: block; }

.program-salary {
  text-align: right;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius-sm);
  padding: 3px 6px;
}

.program-salary small { display: block; font-size: 8.5px; color: #166534; }
.program-salary strong { font-size: 11px; color: #15803D; white-space: nowrap; }

.program-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.p-tag { background: #F1F5F9; font-size: 10px; color: #475569; padding: 2px 6px; border-radius: var(--radius-sm); }

.program-financial-preview {
  background: #F8FAFC;
  border-radius: var(--radius-sm);
  padding: 7px 9px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 10px;
}

.text-green { color: var(--success); }

.program-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.btn-apply {
  background: linear-gradient(135deg, #0068FF 0%, #0052cc 100%);
  color: #FFFFFF;
  border: none;
  font-size: 11.5px;
  font-weight: 700;
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(0, 104, 255, 0.22);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-apply:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

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

.btn-share-parent {
  background: #EFF6FF;
  border: 1.2px solid #BFDBFE;
  color: #0068FF;
  font-size: 11.5px;
  font-weight: 700;
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-share-parent:hover {
  background: #DBEAFE;
  border-color: #93C5FD;
  transform: translateY(-1px);
}

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

/* AI Interactive Box */
.ai-interactive-box {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.ai-box-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ai-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06B6D4 0%, var(--primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.ai-box-header h4 { font-size: 12.5px; font-weight: 800; }
.ai-box-header p { font-size: 10.5px; color: var(--text-muted); }

.ai-quick-prompts { display: flex; flex-direction: column; gap: 5px; margin-bottom: 8px; }
.prompt-chip {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  font-size: 10.5px;
  color: #334155;
  text-align: left;
  cursor: pointer;
}
.prompt-chip:hover { background: #EFF6FF; color: var(--primary); border-color: #93C5FD; }

.ai-chat-preview {
  background: #F1F5F9;
  border-radius: var(--radius-md);
  padding: 8px;
  font-size: 11px;
  line-height: 1.35;
}

/* ==========================================================================
   11. PARENT VIEW STYLES
   ========================================================================== */
.parent-welcome-banner {
  background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px;
}

.parent-badge {
  display: inline-block;
  background: #F59E0B;
  color: #78350F;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}

.parent-welcome-banner h3 { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.parent-welcome-banner p { font-size: 11.5px; color: #DBEAFE; line-height: 1.4; }

.parent-concerns-box { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.concern-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.c-icon { font-size: 22px; }
.c-content h4 { font-size: 12.5px; font-weight: 700; color: #0F172A; }
.c-content p { font-size: 11px; color: var(--text-muted); line-height: 1.35; }

.parent-snapshot-card {
  background: #FFFFFF;
  border: 2px solid #93C5FD;
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-md);
}

.snapshot-tag { background: #DBEAFE; color: var(--primary); font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.snapshot-header h3 { font-size: 16px; font-weight: 800; color: #1E3A8A; margin: 6px 0 2px; }
.snapshot-duration { font-size: 11.5px; color: var(--text-muted); margin-bottom: 14px; }

.financial-table {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 14px;
}

.f-row { display: flex; justify-content: space-between; font-size: 12px; padding: 6px 0; border-bottom: 1px dashed var(--border-light); }
.f-row.highlight-green { color: #15803D; font-weight: 700; }
.f-row.total-row { border-bottom: none; padding-top: 8px; font-weight: 800; }
.f-row .price-val { color: var(--primary); font-size: 14px; }

.career-pathway { margin-bottom: 16px; }
.career-pathway h4 { font-size: 13px; font-weight: 800; color: #0F172A; margin-bottom: 10px; }
.path-step { display: flex; align-items: flex-start; gap: 10px; font-size: 11.5px; margin-bottom: 8px; line-height: 1.35; }

.step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.parent-cta-action { background: #EFF6FF; border-radius: var(--radius-md); padding: 14px; text-align: center; }
.parent-cta-action h4 { font-size: 13.5px; font-weight: 800; color: #1E3A8A; margin-bottom: 4px; }
.parent-cta-action p { font-size: 11px; color: #475569; margin-bottom: 12px; }

.parent-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.parent-form input { padding: 9px 12px; border: 1px solid #BFDBFE; border-radius: var(--radius-sm); font-size: 12px; outline: none; }
.btn-parent-submit {
  background: linear-gradient(135deg, #1E40AF 0%, var(--primary) 100%);
  color: #fff;
  border: none;
  font-size: 12px;
  font-weight: 700;
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.parent-guarantee { font-size: 10px; color: var(--text-muted); }

/* Bottom Bar inside Mini App (Native SVG Icons) */
.zalo-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  padding-bottom: 2px;
}

.tab-item {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #64748B;
  cursor: pointer;
  padding: 4px 14px;
  transition: var(--transition);
  position: relative;
}

.tab-item .tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.tab-item .tab-icon svg {
  display: block;
  stroke: currentColor;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.tab-item:hover .tab-icon svg {
  transform: translateY(-1px);
}

.tab-item .tab-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: -0.1px;
}

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

.tab-item.active .tab-icon svg {
  stroke: var(--primary);
  filter: drop-shadow(0 2px 4px rgba(0, 104, 255, 0.25));
}

/* Pitch Notes Aside */
.mobile-side-notes { max-width: 420px; padding-top: 24px; }
.pitch-badge {
  display: inline-block;
  background: #EFF6FF;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid #BFDBFE;
  margin-bottom: 10px;
}

.mobile-side-notes h3 { font-size: 21px; font-weight: 800; color: #0F172A; margin-bottom: 18px; line-height: 1.3; }
.pitch-point { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.p-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pitch-point strong { font-size: 14px; color: #0F172A; }
.pitch-point p { font-size: 12.5px; color: var(--text-muted); line-height: 1.45; margin-top: 2px; }

.btn-demo-action {
  background: linear-gradient(135deg, var(--primary) 0%, #0099FF 100%);
  color: #fff;
  border: none;
  font-size: 13.5px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 104, 255, 0.3);
  transition: var(--transition);
}
.btn-demo-action:hover { transform: translateY(-2px); }

/* ==========================================================================
   12. PC CRM TUYỂN SINH 360 - BỘ QUẢN TRỊ 2 PHẦN FULL MÀN HÌNH (MENU TRÁI + CHỨC NĂNG PHẢI)
   ========================================================================== */
.school-pc-wrapper {
  display: none;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  height: calc(100vh - 65px);
  min-height: calc(100vh - 65px);
  overflow: hidden;
  box-sizing: border-box;
}

.school-pc-wrapper.active-view {
  display: block;
  animation: fadeIn 0.25s ease;
}

/* Chế độ Toàn màn hình làm việc tối đa (Fullscreen Workspace Mode) */
body.admin-fullscreen-mode {
  overflow: hidden !important;
}
body.admin-fullscreen-mode .top-nav-bar {
  display: none !important;
}
body.admin-fullscreen-mode .app-viewport {
  min-height: 100vh !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.admin-fullscreen-mode .school-pc-wrapper {
  height: 100vh !important;
  min-height: 100vh !important;
}
body.admin-fullscreen-mode .crm-portal-layout {
  height: 100vh !important;
}
body.admin-fullscreen-mode .crm-sidebar-menu {
  height: 100vh !important;
}
body.admin-fullscreen-mode .crm-main-content {
  height: 100vh !important;
}

/* 2-Column Split Layout - Full Screen Edge-to-Edge */
.crm-portal-layout {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: #F8FAFC;
  border: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

/* --- BÊN TRÁI: SIDEBAR MENU FULL HEIGHT (MODERN LIGHT THEME) --- */
.crm-sidebar-menu {
  width: 260px;
  min-width: 260px;
  max-width: 260px;
  height: 100%;
  background: #FFFFFF;
  color: #0F172A;
  display: flex;
  flex-direction: column;
  padding: 16px 14px;
  border-right: 1px solid #E2E8F0;
  box-shadow: 2px 0 8px rgba(15, 23, 42, 0.03);
  flex-shrink: 0;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

.sidebar-brand-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid #F1F5F9;
  margin-bottom: 14px;
}

.sidebar-brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0068FF 0%, #0084FF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 104, 255, 0.28);
}

.sidebar-brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-brand-info h3 {
  font-size: 13.5px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  letter-spacing: -0.2px;
}

.sidebar-version-tag {
  font-size: 8.5px;
  font-weight: 700;
  background: #EFF6FF;
  color: #0068FF;
  padding: 1.5px 5px;
  border-radius: 4px;
  border: 1px solid #DBEAFE;
}

.sidebar-brand-info span {
  font-size: 9.5px;
  color: #64748B;
  display: block;
  font-weight: 600;
  margin-top: 1px;
}

.sidebar-profile-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 9px 10px;
  margin-bottom: 12px;
  position: relative;
  transition: background 0.15s ease;
}

.sidebar-profile-card:hover {
  background: #F1F5F9;
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0068FF 0%, #0284C7 100%);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 104, 255, 0.25);
}

.profile-meta strong {
  display: block;
  font-size: 11.5px;
  color: #0F172A;
  font-weight: 700;
}

.profile-meta small {
  display: block;
  font-size: 9.5px;
  color: #64748B;
  font-weight: 500;
}

.profile-online-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 2.5px rgba(16, 185, 129, 0.25);
}

.sidebar-nav-container {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sidebar-group-label {
  font-size: 8.5px;
  font-weight: 800;
  color: #94A3B8;
  letter-spacing: 0.7px;
  margin: 12px 6px 5px;
  text-transform: uppercase;
}

.crm-nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 8.5px 10px;
  color: #475569;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease-in-out;
  margin-bottom: 2px;
  position: relative;
}

.crm-nav-btn:hover {
  background: #F1F5F9;
  color: #0068FF;
}

.crm-nav-btn:hover .nav-icon {
  color: #0068FF;
}

.crm-nav-btn.active {
  background: #EFF6FF;
  border-left: 3.5px solid #0068FF;
  color: #0068FF;
  font-weight: 700;
}

.crm-nav-btn.active .nav-icon {
  color: #0068FF;
}

.nav-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.nav-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.1px;
}

.nav-pill {
  font-size: 8.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.nav-pill.live {
  background: #FEE2E2;
  color: #DC2626;
  border: 1px solid #FECACA;
  animation: blinkLive 1.5s infinite;
}

@keyframes blinkLive {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.nav-pill.count {
  background: #DBEAFE;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

.nav-pill.roi {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #BBF7D0;
}

.nav-pill.oa {
  background: #E0F2FE;
  color: #0284C7;
  border: 1px solid #BAE6FD;
}

.nav-pill.add {
  background: #F3E8FF;
  color: #7E22CE;
  border: 1px solid #E9D5FF;
}

.sidebar-footer-widget {
  margin-top: auto;
  padding: 10px 11px;
  border-radius: 8px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
}

.widget-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  color: #334155;
  margin-bottom: 3px;
}

.status-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.widget-sub {
  font-size: 8.5px;
  color: #64748B;
  font-weight: 500;
}

/* --- BÊN PHẢI: KHU VỰC CHỨC NĂNG FULL SCREEN --- */
.crm-main-content {
  flex: 1;
  min-width: 0;
  height: 100%;
  background: #F8FAFC;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

.crm-content-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #E2E8F0;
  border-radius: 0;
  padding: 12px 28px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
  flex-wrap: wrap;
  gap: 12px;
}

.topbar-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.content-title {
  font-size: 15px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
}

.content-subtitle {
  font-size: 11px;
  color: #64748B;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Global Search Box in Admin Topbar */
.topbar-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 7px 12px;
  min-width: 250px;
  transition: all 0.2s ease;
}

.topbar-search-box:focus-within {
  background: #FFFFFF;
  border-color: #0068FF;
  box-shadow: 0 0 0 3px rgba(0, 104, 255, 0.12);
}

.topbar-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 11.5px;
  font-family: inherit;
  color: #0F172A;
  width: 100%;
}

.topbar-search-box .search-icon {
  font-size: 12px;
  opacity: 0.7;
}

.topbar-compliance-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #166534;
  font-size: 10.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

.btn-topbar-action {
  border: none;
  font-size: 11.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  user-select: none;
}

.btn-refresh-action {
  background: #F1F5F9;
  color: #334155;
  border: 1px solid #CBD5E1;
}

.btn-refresh-action:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.btn-qr-action {
  background: #0068FF;
  color: #FFFFFF;
}

.btn-qr-action:hover {
  background: #0055d4;
  box-shadow: 0 2px 8px rgba(0, 104, 255, 0.35);
}

.btn-export-action {
  background: #EFF6FF;
  color: #0068FF;
  border: 1px solid #BFDBFE;
}

.btn-export-action:hover {
  background: #DBEAFE;
}

.btn-fullscreen-action {
  background: #0F172A;
  color: #FFFFFF;
  border: 1px solid #1E293B;
}

.btn-fullscreen-action:hover {
  background: #1E293B;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
}

.btn-mobile-view {
  background: #FFFFFF;
  color: #475569;
  border: 1px solid #CBD5E1;
}

.btn-mobile-view:hover {
  background: #F1F5F9;
  color: #0F172A;
}

/* Tabs Content Switching in Full Screen */
.crm-tab-content {
  display: none;
  padding: 22px 30px 60px;
  width: 100%;
  box-sizing: border-box;
}

.crm-tab-content.active {
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeIn 0.25s ease;
}

/* Specific Tab Styles: Zalo OA, Reports, Settings */
.oa-campaigns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.oa-stat-metric-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.oa-stat-num {
  font-size: 22px;
  font-weight: 800;
  color: #0068FF;
}

.oa-automation-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.oa-auto-row {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.oa-auto-info strong {
  display: block;
  font-size: 12px;
  color: #0F172A;
}

.oa-auto-info span {
  font-size: 10.5px;
  color: #64748B;
}

.btn-test-zns {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #0068FF;
  font-size: 10.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-test-zns:hover {
  background: #DBEAFE;
}

.crm-brand { display: flex; align-items: center; gap: 14px; }
.crm-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0068FF 0%, #0099FF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.crm-brand h2 { font-size: 16px; font-weight: 800; color: #0F172A; }
.crm-brand span { font-size: 12px; color: var(--text-muted); }

.crm-top-actions { display: flex; align-items: center; gap: 14px; }
.compliance-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #166534;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

.btn-primary-sm {
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.user-avatar-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 10px;
  border-left: 1px solid var(--border-light);
}

.u-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1E293B;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.user-avatar-pill strong { display: block; font-size: 12.5px; color: #0F172A; }
.user-avatar-pill small { display: block; font-size: 10.5px; color: var(--text-muted); }

/* KPI Summary Cards Grid */
.crm-kpi-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.kpi-card.highlight-card { background: linear-gradient(135deg, #EFF6FF 0%, #FFFFFF 100%); border: 2px solid var(--primary); }
.kpi-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.kpi-label { font-size: 11.5px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; display: inline-flex; align-items: center; gap: 5px; }
.kpi-growth { font-size: 10.5px; font-weight: 800; background: var(--success-light); color: var(--success); padding: 2px 6px; border-radius: 4px; }
.kpi-target { font-size: 10.5px; font-weight: 800; color: var(--primary); }
.kpi-number { font-size: 26px; font-weight: 800; color: #0F172A; line-height: 1.1; margin-bottom: 4px; }
.text-blue { color: var(--primary); }
.kpi-sub { font-size: 10.5px; color: var(--text-muted); }

/* Funnel + ROI Stack (Mỗi box 1 hàng) */
.crm-analytics-grid { display: flex; flex-direction: column; gap: 24px; margin-bottom: 24px; width: 100%; }
.crm-panel { background: #FFFFFF; border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.panel-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.panel-header h3 { font-size: 15px; font-weight: 800; color: #0F172A; }
.panel-header p { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.panel-tag { font-size: 10.5px; font-weight: 700; background: #EFF6FF; color: var(--primary); padding: 3px 9px; border-radius: var(--radius-pill); }

.btn-outline-sm {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Redesigned Modern Funnel 360 Visualizer */
.funnel-panel {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.funnel-quick-kpi-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 9px 12px;
  margin-bottom: 14px;
}

.funnel-kpi-item {
  display: flex;
  flex-direction: column;
}

.funnel-kpi-label {
  font-size: 9.5px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.funnel-kpi-val {
  font-size: 13.5px;
  font-weight: 800;
  color: #0F172A;
  margin-top: 1px;
}

.funnel-kpi-val.text-green { color: #16A34A; }
.funnel-kpi-val.text-blue { color: #0068FF; }

.modern-funnel-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.modern-funnel-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 9px 12px;
  transition: all 0.2s ease;
  position: relative;
}

.modern-funnel-card:hover {
  border-color: #93C5FD;
  box-shadow: 0 3px 10px rgba(0, 104, 255, 0.08);
  transform: translateX(2px);
}

.modern-funnel-card.stage-enrolled {
  background: linear-gradient(135deg, #F0FDF4 0%, #FFFFFF 100%);
  border-color: #86EFAC;
}

.funnel-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.funnel-stage-meta {
  display: flex;
  align-items: center;
  gap: 7px;
}

.funnel-num-pill {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: #EFF6FF;
  color: #1D4ED8;
  font-size: 9.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage-enrolled .funnel-num-pill {
  background: #DCFCE7;
  color: #15803D;
}

.funnel-stage-name {
  font-size: 12px;
  font-weight: 700;
  color: #1E293B;
  display: flex;
  align-items: center;
  gap: 4px;
}

.funnel-stage-values {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.funnel-count-main {
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
}

.funnel-pct-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1.5px 5.5px;
  border-radius: 4px;
  background: #F1F5F9;
  color: #475569;
}

.funnel-pct-badge.badge-lead { background: #DBEAFE; color: #1E40AF; }
.funnel-pct-badge.badge-consult { background: #E0E7FF; color: #3730A3; }
.funnel-pct-badge.badge-reg { background: #E0F2FE; color: #0369A1; }
.funnel-pct-badge.badge-docs { background: #CCFBF1; color: #0F766E; }
.funnel-pct-badge.badge-pass { background: #FEF3C7; color: #92400E; }
.funnel-pct-badge.badge-enrolled { background: #DCFCE7; color: #166534; font-weight: 800; }

.funnel-track-wrap {
  position: relative;
  height: 6px;
  background: #F1F5F9;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 5px;
}

.funnel-fill-bar {
  height: 100%;
  border-radius: 10px;
  transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-stage-1 { background: linear-gradient(90deg, #3B82F6, #1D4ED8); }
.bar-stage-2 { background: linear-gradient(90deg, #6366F1, #4338CA); }
.bar-stage-3 { background: linear-gradient(90deg, #0284C7, #0369A1); }
.bar-stage-4 { background: linear-gradient(90deg, #14B8A6, #0F766E); }
.bar-stage-5 { background: linear-gradient(90deg, #F59E0B, #D97706); }
.bar-stage-6 { background: linear-gradient(90deg, #10B981, #059669); }

.funnel-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  color: #64748B;
}

.funnel-step-desc {
  display: flex;
  align-items: center;
  gap: 4px;
}

.funnel-conv-rate {
  font-weight: 700;
  color: #0369A1;
}

.stage-enrolled .funnel-conv-rate {
  color: #15803D;
  font-weight: 800;
}

.funnel-insight { background: #FFFBEB; border: 1px solid #FDE68A; border-radius: var(--radius-sm); padding: 10px 12px; font-size: 11.5px; color: #92400E; line-height: 1.4; }

/* Pipeline Toolbar & Excel View */
.pipeline-top-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #E2E8F0;
}

.pipeline-view-switcher {
  display: inline-flex;
  background: #F1F5F9;
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
  border: 1px solid #E2E8F0;
}

.view-btn {
  background: transparent;
  border: none;
  font-size: 11.5px;
  font-weight: 700;
  color: #64748B;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.view-btn.active {
  background: #FFFFFF;
  color: #0068FF;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.pipeline-search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  flex: 1;
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 180px;
}

.search-input-wrap input {
  width: 100%;
  height: 33px;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  padding: 0 10px 0 30px;
  font-size: 11.5px;
  color: #0F172A;
  background: #FFFFFF;
}

.search-input-wrap input:focus {
  border-color: #0068FF;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 104, 255, 0.1);
}

.search-input-wrap svg {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  pointer-events: none;
}

/* Excel View Spreadsheet Table */
.pipeline-excel-container {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.pipeline-excel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.pipeline-excel-table th {
  background: #F8FAFC;
  padding: 10px 12px;
  font-weight: 700;
  color: #475569;
  border-bottom: 2px solid #E2E8F0;
  white-space: nowrap;
}

.pipeline-excel-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #F1F5F9;
  color: #1E293B;
  vertical-align: middle;
}

.pipeline-excel-table tr:hover td {
  background: #F8FAFC;
}

.excel-user-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.excel-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 10.5px;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.excel-avatar.blue { background: #2563EB; }
.excel-avatar.teal { background: #0D9488; }
.excel-avatar.indigo { background: #4F46E5; }
.excel-avatar.purple { background: #7C3AED; }
.excel-avatar.rose { background: #E11D48; }
.excel-avatar.orange { background: #EA580C; }
.excel-avatar.amber { background: #D97706; }
.excel-avatar.emerald { background: #059669; }

.excel-name-box strong {
  display: block;
  font-size: 12px;
  color: #0F172A;
}

.excel-name-box small {
  display: block;
  font-size: 10px;
  color: #64748B;
}

.table-status-select {
  padding: 4px 7px;
  border-radius: 4px;
  border: 1px solid #CBD5E1;
  font-size: 11px;
  font-weight: 600;
  background: #FFFFFF;
  cursor: pointer;
}

.excel-action-btns {
  display: flex;
  gap: 4px;
}

.excel-btn {
  padding: 3.5px 7.5px;
  border-radius: 4px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  font-size: 10.5px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.15s ease;
}

.excel-btn:hover {
  background: #EFF6FF;
  color: #0068FF;
  border-color: #BFDBFE;
}

/* CRM Analytics Stack: Mỗi Box 1 Hàng */
.crm-analytics-grid { display: flex; flex-direction: column; gap: 24px; margin-bottom: 24px; width: 100%; }
.crm-funnel-col { display: contents; }

/* Major Admission Performance Panel */
.major-perf-panel {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.major-perf-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 1200px) {
  .major-perf-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .major-perf-list {
    grid-template-columns: 1fr;
  }
}

.major-perf-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: all 0.2s ease;
}

.major-perf-card:hover {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

.major-perf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
}

.major-perf-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.major-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.major-icon-box.auto { background: #EFF6FF; }
.major-icon-box.design { background: #FAF5FF; }
.major-icon-box.mecha { background: #F0FDF4; }
.major-icon-box.logistics { background: #FFF7ED; }

.major-title-text h4 {
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.major-code-pill {
  font-size: 9.5px;
  font-family: monospace;
  background: #E2E8F0;
  color: #475569;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 600;
}

.major-meta-sub {
  font-size: 10.5px;
  color: #64748B;
  margin-top: 2px;
}

.major-perf-rate {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.major-enrolled-count {
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
}

.major-enrolled-count span {
  font-size: 11px;
  font-weight: 500;
  color: #64748B;
}

.major-badge-status {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.major-badge-status.hot {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

.major-badge-status.warning {
  background: #FFFBEB;
  color: #D97706;
  border: 1px solid #FDE68A;
}

.major-badge-status.success {
  background: #F0FDF4;
  color: #16A34A;
  border: 1px solid #BBF7D0;
}

.major-badge-status.info {
  background: #F0F9FF;
  color: #0284C7;
  border: 1px solid #BAE6FD;
}

/* Progress bar */
.major-progress-wrap {
  margin-bottom: 7px;
}

.major-progress-track {
  height: 6px;
  background: #E2E8F0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.major-progress-bar {
  height: 100%;
  border-radius: 10px;
  transition: width 0.6s ease;
}

.major-progress-bar.bar-auto {
  background: linear-gradient(90deg, #3B82F6, #1D4ED8);
}

.major-progress-bar.bar-design {
  background: linear-gradient(90deg, #A855F7, #7E22CE);
}

.major-progress-bar.bar-mecha {
  background: linear-gradient(90deg, #22C55E, #15803D);
}

.major-progress-bar.bar-logistics {
  background: linear-gradient(90deg, #F97316, #C2410C);
}

/* Sub-metrics row */
.major-submetrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #64748B;
  padding-top: 4px;
  border-top: 1px dashed #E2E8F0;
}

.major-submetric-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.major-submetric-item strong {
  color: #334155;
  font-weight: 700;
}

.major-perf-footer {
  margin-top: 12px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 11.5px;
  color: #334155;
  line-height: 1.45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.major-perf-footer strong {
  color: #0F172A;
}

/* CRM ROI Table */
.table-responsive { overflow-x: auto; }
.crm-table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
.crm-table th { background: #F8FAFC; padding: 10px 12px; font-weight: 700; color: var(--text-muted); border-bottom: 1px solid var(--border-light); }
.crm-table td { padding: 11px 12px; border-bottom: 1px solid var(--border-light); color: #1E293B; }
.crm-table td strong { display: block; font-size: 12.5px; color: #0F172A; }
.crm-table td small { display: block; font-size: 10.5px; color: var(--text-muted); }
.crm-table td code { background: #F1F5F9; padding: 2px 6px; border-radius: 4px; font-family: monospace; font-size: 10.5px; color: #0369A1; }
.bold-cell { font-weight: 800; color: #0F172A; }

.badge-rate { padding: 2px 7px; border-radius: var(--radius-pill); font-weight: 800; font-size: 11px; }
.badge-rate.high { background: #DCFCE7; color: #15803D; }
.badge-rate.medium { background: #FEF3C7; color: #B45309; }
.badge-rate.low { background: #FEE2E2; color: #B91C1C; }

.roi-tag { font-size: 10.5px; font-weight: 700; padding: 3px 7px; border-radius: 4px; }
.roi-tag.best { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }
.roi-tag.good { background: #F0FDF4; color: #166534; }
.roi-tag.warning { background: #FFFBEB; color: #B45309; }
.roi-tag.normal { background: #F1F5F9; color: #475569; }
.source-conclusion { margin-top: 12px; background: #EFF6FF; border: 1px solid #BFDBFE; border-radius: var(--radius-sm); padding: 9px 12px; font-size: 11.5px; color: #1E40AF; line-height: 1.4; }

/* Kanban Board */
.kanban-panel { margin-top: 10px; }
.pipeline-filters { display: flex; gap: 10px; }
.crm-select { padding: 6px 12px; border: 1px solid var(--border-light); border-radius: var(--radius-sm); font-size: 11.5px; background: #FFFFFF; outline: none; }
.kanban-board { display: grid; grid-template-columns: repeat(5, minmax(230px, 1fr)); gap: 14px; margin-top: 16px; overflow-x: auto; padding-bottom: 10px; }
.kanban-col { background: #F8FAFC; border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 12px; min-width: 230px; }
.col-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 6px; border-bottom: 1px solid #E2E8F0; }
.col-title { font-size: 12px; font-weight: 800; color: #1E293B; }
.col-count { background: #E2E8F0; color: #475569; font-size: 10.5px; font-weight: 800; padding: 1px 6px; border-radius: var(--radius-pill); }
.col-cards {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  overflow: hidden;
  min-height: 480px;
}

.lead-card {
  background: #FFFFFF;
  border: none;
  border-bottom: 1px solid #E2E8F0;
  border-radius: 0;
  padding: 13px 12px;
  box-shadow: none;
  transition: background-color 0.15s ease;
  cursor: grab;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lead-card:last-child {
  border-bottom: none;
}

.lead-card:hover {
  background-color: #F8FAFC;
  transform: none;
  box-shadow: none;
}

.lead-card:active {
  cursor: grabbing;
}

.lead-card.hot-lead,
.lead-card.registered-card,
.lead-card.enrolled-card {
  border-left: none;
}

/* Card Header: Avatar, Name, Code, Badges */
.lead-card-header {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  justify-content: space-between;
}

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

.lead-mini-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.avatar-blue { background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%); }
.avatar-teal { background: linear-gradient(135deg, #0D9488 0%, #047857 100%); }
.avatar-indigo { background: linear-gradient(135deg, #6366F1 0%, #4338CA 100%); }
.avatar-purple { background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%); }
.avatar-rose { background: linear-gradient(135deg, #F43F5E 0%, #BE123C 100%); }
.avatar-orange { background: linear-gradient(135deg, #F97316 0%, #C2410C 100%); }
.avatar-amber { background: linear-gradient(135deg, #F59E0B 0%, #B45309 100%); }
.avatar-emerald { background: linear-gradient(135deg, #10B981 0%, #059669 100%); }

.lead-pulse-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  background: #10B981;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
}

.lead-pulse-dot.hot {
  background: #EF4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.lead-title-box {
  flex: 1;
  min-width: 0;
}


.lead-meta-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
}

.lead-meta-row .lead-code-pill {
  flex-shrink: 0;
}

.lead-meta-row .lead-source-tag {
  margin-top: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-name-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.lead-name {
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lead-code-pill {
  font-size: 9px;
  font-weight: 700;
  color: #64748B;
  background: #F1F5F9;
  padding: 1px 4px;
  border-radius: 4px;
  letter-spacing: 0.2px;
}

.lead-source-tag {
  font-size: 10px;
  color: #64748B;
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  margin-top: 2px;
}

.lead-priority-badge {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2.5px 6.5px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-hot-glow {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

.badge-warm-glow {
  background: #FFFBEB;
  color: #D97706;
  border: 1px solid #FDE68A;
}

.badge-cool-glow {
  background: #F0F9FF;
  color: #0284C7;
  border: 1px solid #BAE6FD;
}

.badge-reg-glow {
  background: #EEF2FF;
  color: #4F46E5;
  border: 1px solid #C7D2FE;
}

.badge-parent-glow {
  background: #FAF5FF;
  color: #7E22CE;
  border: 1px solid #E9D5FF;
}

.badge-warn-glow {
  background: #FFFBEB;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.badge-success-glow {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}

/* Detail chips grid */
.lead-detail-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.lead-detail-chip {
  font-size: 10.5px;
  color: #334155;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 2.5px 6.5px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lead-detail-chip.major-chip {
  background: #EFF6FF;
  border-color: #DBEAFE;
  color: #1D4ED8;
  font-weight: 600;
}

/* AI Behavioral insight box */
.lead-ai-box {
  background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
  border: 1px solid #BAE6FD;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 10.5px;
  color: #0369A1;
  display: flex;
  align-items: flex-start;
  gap: 5.5px;
  line-height: 1.35;
}

.ai-box-icon {
  flex-shrink: 0;
  margin-top: 1px;
  color: #0284C7;
}

.ai-box-text strong {
  color: #0369A1;
  font-weight: 700;
}

/* Footer: Assignee & Action Buttons */
/* Footer: 2-Row Layout */
.card-footer, .modern-card-footer {
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
  padding-top: 8px !important;
  border-top: 1px dashed #E2E8F0 !important;
  margin-top: 4px !important;
  width: 100% !important;
}

/* Hàng 1: Chuyên viên phụ trách / Thời gian nhập học */
.card-footer-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.sale-assign, .sale-assign-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  font-size: 10.5px !important;
  color: #64748B !important;
  line-height: 1.3 !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.sale-assign svg, .sale-assign-pill svg {
  color: #0284C7 !important;
  flex-shrink: 0 !important;
}

.sale-assign strong, .sale-assign-pill strong, .sale-name {
  color: #0F172A !important;
  font-weight: 700 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* Góc phải: Thời gian cập nhật gần nhất (icon + time) */
.card-time-ago {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  font-size: 9.5px !important;
  font-weight: 600 !important;
  color: #64748B !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  margin-left: auto !important;
  background: #F1F5F9 !important;
  padding: 1.5px 5px !important;
  border-radius: 4px !important;
  border: 1px solid #E2E8F0 !important;
  line-height: 1.25 !important;
}

.card-time-ago svg {
  color: #64748B !important;
  flex-shrink: 0 !important;
}

.card-time-ago.time-hot {
  color: #0369A1 !important;
  background: #F0F9FF !important;
  border-color: #BAE6FD !important;
}

.card-time-ago.time-hot svg {
  color: #0284C7 !important;
}

.table-time-ago {
  display: inline-flex;
  align-items: center;
  gap: 4.5px;
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
  background: #F8FAFC;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
  white-space: nowrap;
}

.table-time-ago svg {
  color: #0284C7;
  flex-shrink: 0;
}

.sale-mini-avatar {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #E2E8F0;
  color: #1E293B;
  font-size: 9px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sale-label {
  font-size: 10.5px;
  color: #64748B;
}

.sale-status-badge {
  font-size: 9.5px !important;
  font-weight: 700 !important;
  color: #0369A1 !important;
  background: #E0F2FE !important;
  padding: 1.5px 6px !important;
  border-radius: 10px !important;
  margin-left: auto !important;
  flex-shrink: 0 !important;
}

.enroll-time {
  font-size: 11px !important;
  color: #166534 !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4.5px !important;
  width: 100% !important;
}

.enroll-time svg {
  color: #16A34A !important;
  flex-shrink: 0 !important;
}

/* Hàng 2: Cụm nút thao tác (Nhật ký + Gọi điện / ZNS) */
.card-action-group {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.modern-btn-log, .btn-card-log {
  flex: 1;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  color: #334155;
  height: 29px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modern-btn-log:hover, .btn-card-log:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
  color: #0F172A;
}

.modern-btn-log .log-count, .btn-card-log span {
  background: #E2E8F0;
  color: #0F172A;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
}

.modern-btn-call, .btn-action-call {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  border: none;
  color: #FFFFFF;
  border-radius: 6px;
  width: 29px;
  height: 29px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(2, 132, 199, 0.25);
  transition: all 0.15s ease;
}

.modern-btn-call:hover, .btn-action-call:hover {
  background: linear-gradient(135deg, #0369A1 0%, #075985 100%);
  transform: scale(1.06);
  box-shadow: 0 3px 8px rgba(2, 132, 199, 0.4);
}

.modern-btn-zns, .btn-auto-zns {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  border: none;
  color: #FFFFFF;
  border-radius: 6px;
  height: 29px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.25);
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.modern-btn-zns:hover, .btn-auto-zns:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: scale(1.04);
  box-shadow: 0 3px 8px rgba(16, 185, 129, 0.35);
}

/* Fallback for old elements */
.card-badges { display: flex; gap: 5px; margin-bottom: 5px; flex-wrap: wrap; }
.badge-hot { font-size: 9.5px; font-weight: 800; background: #FEE2E2; color: #DC2626; padding: 2px 5px; border-radius: 4px; display: inline-flex; align-items: center; gap: 3.5px; }
.badge-reg { font-size: 9.5px; font-weight: 800; background: #E0E7FF; color: #4338CA; padding: 2px 5px; border-radius: 4px; display: inline-flex; align-items: center; gap: 3.5px; }
.badge-source { font-size: 9.5px; font-weight: 600; background: #F1F5F9; color: #475569; padding: 2px 5px; border-radius: 4px; }
.badge-parent { font-size: 9.5px; font-weight: 700; background: #FAF5FF; color: #7E22CE; padding: 2px 5px; border-radius: 4px; display: inline-flex; align-items: center; gap: 3.5px; }
.badge-warn { font-size: 9.5px; font-weight: 700; background: #FEF3C7; color: #B45309; padding: 2px 5px; border-radius: 4px; display: inline-flex; align-items: center; gap: 3.5px; }
.badge-success { font-size: 9.5px; font-weight: 800; background: #DCFCE7; color: #15803D; padding: 2px 5px; border-radius: 4px; display: inline-flex; align-items: center; gap: 3.5px; }
.lead-detail { font-size: 11px; color: var(--text-muted); display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
.lead-detail span { display: inline-flex; align-items: center; gap: 4px; }
.lead-detail svg { flex-shrink: 0; }
.lead-insight { background: #F8FAFC; border-radius: 4px; padding: 3px 6px; font-size: 10.5px; color: #0369A1; margin-bottom: 6px; }

/* ==========================================================================
   13. MODALS, POPUPS & DRAWERS
   ========================================================================== */
.modal-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.65); backdrop-filter: blur(4px); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.active-modal { display: flex; animation: fadeIn 0.25s ease; }
.modal-card { background: #FFFFFF; border-radius: var(--radius-xl); max-width: 520px; width: 100%; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); overflow: hidden; }
.modal-header { padding: 16px 22px; border-bottom: 1px solid var(--border-light); display: flex; justify-content: space-between; align-items: center; }

/* ==========================================================================
   IN-APP MOBILE MODALS (Confined strictly inside .screen-frame - Không tràn màn hình làm việc)
   ========================================================================== */
.modal-overlay.in-app-modal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  border-radius: 40px;
  overflow: hidden;
}

.modal-overlay.in-app-modal.active-modal {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.in-app-modal .modal-card {
  background: #FFFFFF;
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 100%;
  max-height: 88%;
  box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  animation: sheetSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes sheetSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-overlay.in-app-modal .modal-header {
  padding: 14px 16px;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
}

.modal-overlay.in-app-modal .modal-body {
  padding: 14px 16px 28px;
  overflow-y: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay.in-app-modal .modal-body::-webkit-scrollbar {
  display: none;
}

.modal-overlay.in-app-modal .form-row {
  grid-template-columns: 1fr;
  gap: 0;
}
.ai-chip { background: #ECFEFF; color: #0891B2; font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: var(--radius-pill); margin-bottom: 3px; display: inline-block; }
.badge-blue { background: #EFF6FF; color: var(--primary); font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: var(--radius-pill); margin-bottom: 3px; display: inline-block; }
.badge-purple { background: #FAF5FF; color: var(--purple); font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: var(--radius-pill); margin-bottom: 3px; display: inline-block; }
.modal-title-wrap h3 { font-size: 15px; font-weight: 800; color: #0F172A; }
.btn-close-modal { background: #F1F5F9; border: none; width: 30px; height: 30px; border-radius: 50%; font-size: 13px; color: #64748B; cursor: pointer; }
.modal-body { padding: 18px 22px; }
.modal-intro { font-size: 12.5px; color: var(--text-muted); margin-bottom: 14px; }

.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 12px; font-weight: 700; color: #1E293B; margin-bottom: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-control, .form-group input { width: 100%; padding: 9px 12px; border: 1px solid var(--border-light); border-radius: var(--radius-sm); font-size: 12.5px; outline: none; }
.form-control:focus, .form-group input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 104, 255, 0.15); }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #334155; cursor: pointer; }
.data-privacy-notice { background: #F8FAFC; border-radius: var(--radius-sm); padding: 7px 10px; font-size: 10.5px; color: var(--text-muted); margin-bottom: 14px; }
.btn-full-primary { width: 100%; background: linear-gradient(135deg, var(--primary) 0%, #0099FF 100%); color: #fff; border: none; font-size: 13px; font-weight: 700; padding: 11px; border-radius: var(--radius-sm); cursor: pointer; }

/* Quiz Styles */
.q-number { font-size: 10.5px; font-weight: 800; color: var(--primary); margin-bottom: 3px; }
.q-title { font-size: 13.5px; font-weight: 800; margin-bottom: 12px; }
.q-options { display: flex; flex-direction: column; gap: 7px; }
.option-label { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: #F8FAFC; border: 1px solid var(--border-light); border-radius: var(--radius-md); font-size: 12px; cursor: pointer; }
.option-label:hover { background: #EFF6FF; border-color: #93C5FD; }
.quiz-result-box { background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: var(--radius-lg); padding: 14px; }
.match-score { display: inline-block; background: var(--success); color: #fff; font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: var(--radius-pill); margin-bottom: 5px; }
.suggested-major { display: flex; align-items: center; gap: 10px; margin: 8px 0 12px; }
.major-icon { font-size: 28px; }
.suggested-major h4 { font-size: 14px; font-weight: 800; color: #166534; }
.suggested-major p { font-size: 11.5px; color: #14532D; }
.result-details { background: #FFFFFF; border-radius: var(--radius-sm); padding: 9px 11px; margin-bottom: 12px; font-size: 11.5px; }
.r-item { display: flex; justify-content: space-between; padding: 2px 0; }

/* QR Modal */
.qr-preview-box { display: flex; align-items: center; gap: 14px; background: #FAF5FF; border: 1px solid #E9D5FF; border-radius: var(--radius-md); padding: 12px; margin-bottom: 16px; }
.qr-code-graphic { width: 65px; height: 65px; background: #1E293B; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 8.5px; font-weight: 800; text-align: center; }
.qr-info-text h5 { font-size: 12.5px; font-weight: 800; color: #581C87; margin-bottom: 2px; }
.qr-info-text p { font-size: 11px; color: #6B21A8; }

/* Pitch Drawer */
.pitch-drawer { position: fixed; top: 0; right: -520px; width: 480px; height: 100vh; background: #FFFFFF; box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15); z-index: 3000; transition: right 0.35s ease; display: flex; flex-direction: column; }
.pitch-drawer.open-drawer { right: 0; }
.drawer-header { padding: 18px 22px; border-bottom: 1px solid var(--border-light); display: flex; justify-content: space-between; align-items: center; background: #F8FAFC; }
.drawer-tag { font-size: 10.5px; font-weight: 800; color: var(--purple); display: block; margin-bottom: 2px; }
.drawer-header h3 { font-size: 15px; font-weight: 800; color: #0F172A; }
.btn-close-drawer { background: #F1F5F9; border: none; width: 30px; height: 30px; border-radius: 50%; font-size: 13px; cursor: pointer; }
.drawer-content { flex: 1; overflow-y: auto; padding: 16px 22px 60px; display: flex; flex-direction: column; gap: 12px; }
.guide-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px; border-radius: var(--radius-md); border: 1px solid var(--border-light); background: #F8FAFC; }
.g-page { background: #EFF6FF; color: var(--primary); font-weight: 800; font-size: 10.5px; padding: 3px 7px; border-radius: 4px; }
.g-info h4 { font-size: 13px; font-weight: 800; color: #0F172A; margin-bottom: 2px; }
.g-info p { font-size: 11.5px; color: var(--text-muted); line-height: 1.35; }

/* Toast */
.toast-notification { position: fixed; bottom: 24px; right: 24px; background: #1E293B; color: #fff; padding: 11px 18px; border-radius: var(--radius-pill); display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 600; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); z-index: 4000; transform: translateY(100px); opacity: 0; transition: all 0.3s ease; }
.toast-notification.show-toast { transform: translateY(0); opacity: 1; }
.toast-icon { width: 18px; height: 18px; border-radius: 50%; background: var(--success); display: flex; align-items: center; justify-content: center; font-size: 10px; }

/* ==========================================================================
   COMPONENT 3: EVENT HEADLINE CARD (Thiết Kế Chuyên Nghiệp Mới)
   ========================================================================== */
.event-headline-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: 0 4px 18px rgba(0, 104, 255, 0.08);
  border: 1px solid rgba(0, 104, 255, 0.12);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.event-headline-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 104, 255, 0.15);
  border-color: var(--primary);
}

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

.event-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.event-tag-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(225, 29, 72, 0.1);
  color: #E11D48;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.3px;
}

.event-countdown {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #EFF6FF;
  color: #0068FF;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.event-views-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  color: #64748B;
  font-weight: 600;
}

.event-card-media {
  position: relative;
  width: 100%;
  height: 120px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 10px;
}

.event-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.event-headline-card:hover .event-card-img {
  transform: scale(1.04);
}

.event-media-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.co-brand-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00D26A;
}

.event-headline-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.35;
  margin-bottom: 9px;
}

.event-meta-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #475569;
  font-size: 11.5px;
}

.meta-icon-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0068FF;
  flex-shrink: 0;
}

.event-rsvp-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px dashed #E2E8F0;
}

.rsvp-registered-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar-ring-stack {
  display: flex;
  align-items: center;
}

.avatar-chip {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #FFFFFF;
  font-size: 9px;
  font-weight: 800;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -6px;
}

.avatar-chip:first-child {
  margin-left: 0;
}

.avatar-chip.chip-1 { background: #0068FF; }
.avatar-chip.chip-2 { background: #E11D48; }
.avatar-chip.chip-3 { background: #10B981; }

.rsvp-count {
  font-size: 11px;
  color: #64748B;
}

.rsvp-count strong {
  color: #0F172A;
}

.btn-event-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #0068FF 0%, #00B4D8 100%);
  color: #FFFFFF;
  border: none;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 104, 255, 0.25);
  transition: all 0.2s ease;
}

.btn-event-action:hover {
  filter: brightness(1.08);
  transform: translateX(2px);
}

.btn-event-action.btn-icon-view {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 104, 255, 0.3);
}

.btn-event-action.btn-icon-view:hover {
  transform: scale(1.1);
  filter: brightness(1.12);
}

/* ==========================================================================
   SUB-VIEW 3: CHI TIẾT SỰ KIỆN / BÀI VIẾT (Event Detail Page)
   ========================================================================== */
#eventDetailAppView {
  padding: 0;
  background: #F8FAFC;
}

/* Sticky Navigation Header */
.detail-nav-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #E2E8F0;
}

.detail-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: #0068FF;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}

.detail-back-btn:hover {
  background: #EFF6FF;
}

.detail-header-title {
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
}

.detail-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.detail-action-btn:hover {
  color: #0068FF;
  border-color: #0068FF;
  background: #EFF6FF;
}

/* Hero Media Banner */
.detail-hero-media {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.detail-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.75) 100%);
}

.detail-hero-pills {
  position: absolute;
  bottom: 12px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.hero-pill-badge.pill-red {
  background: rgba(225, 29, 72, 0.9);
  color: #FFFFFF;
}

.hero-pill-badge.pill-blue {
  background: rgba(0, 104, 255, 0.9);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
}

/* Content Wrap */
.detail-content-wrap {
  padding: 14px;
}

.detail-article-title {
  font-size: 15.5px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.35;
  margin-bottom: 10px;
}

.detail-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid #E2E8F0;
  margin-bottom: 14px;
}

.author-profile {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-avatar-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0068FF, #00B4D8);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 104, 255, 0.25);
}

.author-name {
  font-size: 12px;
  font-weight: 700;
  color: #0F172A;
}

.post-time {
  font-size: 10.5px;
  color: #64748B;
}

.detail-stats-pills {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #F1F5F9;
  color: #475569;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: var(--radius-pill);
}

/* Info Card */
.detail-info-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid #E2E8F0;
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.info-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-text {
  font-size: 12px;
  color: #334155;
  line-height: 1.4;
}

.info-text strong {
  color: #0F172A;
}

/* Description & Subtitles */
.detail-description-section {
  margin-bottom: 16px;
}

.detail-sub-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-sub-title.mb-0 {
  margin-bottom: 2px;
}

.detail-paragraph {
  font-size: 12px;
  line-height: 1.55;
  color: #334155;
  margin-bottom: 12px;
}

.highlight-quote-box {
  background: #EFF6FF;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 14px;
  display: flex;
  gap: 10px;
}

.quote-bar {
  width: 3px;
  border-radius: 2px;
  background: #0068FF;
  flex-shrink: 0;
}

.highlight-quote-box p {
  font-size: 11.5px;
  font-style: italic;
  color: #1E3A8A;
  line-height: 1.45;
  margin: 0;
}

/* Agenda Timeline */
.agenda-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  padding-left: 18px;
  margin-top: 10px;
}

.agenda-timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 5px;
  width: 2px;
  background: #CBD5E1;
}

.timeline-step {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -18px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0068FF;
  border: 2.5px solid #FFFFFF;
  box-shadow: 0 0 0 1.5px #0068FF;
}

.timeline-time {
  font-size: 10.5px;
  font-weight: 800;
  color: #0068FF;
  margin-bottom: 2px;
}

.timeline-desc {
  font-size: 11.5px;
  color: #475569;
  line-height: 1.4;
}

.timeline-desc strong {
  color: #0F172A;
}

/* RSVP Conversion Box */
.detail-rsvp-box {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border-radius: var(--radius-lg);
  padding: 14px;
  color: #FFFFFF;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
}

.rsvp-box-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.rsvp-box-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.rsvp-slots-left {
  font-size: 10.5px;
  color: #94A3B8;
}

.rsvp-free-badge {
  background: #10B981;
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.btn-rsvp-confirm {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: linear-gradient(135deg, #0068FF 0%, #00B4D8 100%);
  color: #FFFFFF;
  border: none;
  font-size: 12.5px;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 104, 255, 0.35);
  transition: all 0.2s ease;
}

.btn-rsvp-confirm:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.rsvp-privacy-note {
  text-align: center;
  font-size: 10px;
  color: #94A3B8;
  margin-top: 7px;
}

.ticket-success-card {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-top: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: fadeIn 0.3s ease;
}

.ticket-check-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #10B981;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  flex-shrink: 0;
}

.ticket-info h4 {
  font-size: 12px;
  font-weight: 800;
  color: #34D399;
  margin-bottom: 2px;
}

.ticket-info p {
  font-size: 11px;
  color: #E2E8F0;
  margin-bottom: 2px;
}

.ticket-code {
  color: #FCD34D;
  letter-spacing: 0.5px;
}

.ticket-sub {
  font-size: 10px;
  color: #94A3B8;
  display: block;
}

/* Q&A Section */
.detail-qa-section {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid #E2E8F0;
  padding: 14px;
  margin-bottom: 20px;
}

.qa-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.qa-sub-note {
  font-size: 10.5px;
  color: #64748B;
}

.qa-counter-badge {
  background: #EFF6FF;
  color: #0068FF;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.qa-input-box {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  transition: border-color 0.2s ease;
}

.qa-input-box:focus-within {
  border-color: #0068FF;
  box-shadow: 0 0 0 2px rgba(0, 104, 255, 0.12);
}

.qa-input-avatar {
  flex-shrink: 0;
  margin-top: 2px;
}

.qa-input-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.qa-input-inner textarea {
  width: 100%;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 11.5px;
  color: #0F172A;
  resize: none;
  outline: none;
}

.qa-input-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px dashed #E2E8F0;
}

.qa-hint {
  font-size: 9.5px;
  color: #94A3B8;
}

.btn-qa-submit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #0068FF;
  color: #FFFFFF;
  border: none;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-qa-submit:hover {
  background: #0052CC;
}

/* Q&A Feed */
.qa-feed-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qa-item {
  padding-bottom: 12px;
  border-bottom: 1px solid #F1F5F9;
}

.qa-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.qa-user-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.qa-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 800;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qa-avatar.avatar-blue { background: #0068FF; }
.qa-avatar.avatar-green { background: #10B981; }
.qa-avatar.avatar-orange { background: #F59E0B; }

.qa-user-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.qa-username {
  font-size: 11.5px;
  font-weight: 700;
  color: #0F172A;
}

.qa-badge-school {
  font-size: 9px;
  font-weight: 600;
  background: #EFF6FF;
  color: #0068FF;
  padding: 1px 5px;
  border-radius: 3px;
}

.qa-badge-parent {
  font-size: 9px;
  font-weight: 600;
  background: #ECFDF5;
  color: #10B981;
  padding: 1px 5px;
  border-radius: 3px;
}

.qa-time {
  font-size: 10px;
  color: #94A3B8;
  margin-left: auto;
}

.qa-question-text {
  font-size: 12px;
  color: #1E293B;
  line-height: 1.4;
  margin-bottom: 8px;
  padding-left: 32px;
}

.qa-answer-box {
  margin-left: 32px;
  background: #F8FAFC;
  border-left: 2.5px solid #0068FF;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 8px 10px;
}

.qa-answer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.qa-official-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 800;
  color: #0068FF;
}

.qa-answer-time {
  font-size: 9.5px;
  color: #94A3B8;
}

.qa-answer-text {
  font-size: 11px;
  color: #334155;
  line-height: 1.4;
}

/* Related Section */
.detail-related-section {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid #E2E8F0;
  padding: 14px;
}

.related-header {
  margin-bottom: 12px;
}

.related-sub-text {
  font-size: 10.5px;
  color: #64748B;
}

.related-articles-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.related-card {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius-md);
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.related-card:hover {
  background: #FFFFFF;
  border-color: #0068FF;
  transform: translateX(2px);
  box-shadow: 0 2px 8px rgba(0, 104, 255, 0.08);
}

.related-card-img-wrap {
  position: relative;
  width: 75px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.related-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-tag {
  position: absolute;
  top: 3px;
  left: 3px;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 2px;
  color: #FFFFFF;
}

.related-tag.tag-blue { background: rgba(0, 104, 255, 0.9); }
.related-tag.tag-green { background: rgba(16, 185, 129, 0.9); }
.related-tag.tag-indigo { background: rgba(99, 102, 241, 0.9); }

.related-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.related-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #94A3B8;
  margin-top: 4px;
}

.r-view {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* Responsive */
@media (max-width: 1024px) {
  .crm-analytics-grid { grid-template-columns: 1fr; }
  .crm-kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .kanban-board { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .mobile-demo-wrapper { flex-direction: column; align-items: center; }
  .crm-kpi-grid { grid-template-columns: 1fr; }
  .kanban-board { grid-template-columns: 1fr; }
  .pitch-drawer { width: 100%; right: -100%; }
}

/* ==========================================================================
   13. STYLES FOR DEDICATED SUBVIEWS (8 TRANG RIÊNG BIỆT CHO CÁC MENU)
   ========================================================================== */

/* Subpage Hero Banners (Tươi Sáng - Tuyệt Đối Không Dùng Tông Đen) */
.subpage-hero-banner {
  padding: 16px 14px;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border-bottom: 1px solid #BFDBFE;
  text-align: left;
}

.subpage-hero-banner.hero-quiz {
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
  border-color: #FED7AA;
}

.subpage-hero-banner.hero-majors {
  background: linear-gradient(135deg, #EFF6FF 0%, #E0F2FE 100%);
  border-color: #BAE6FD;
}

.subpage-hero-banner.hero-tuition {
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  border-color: #A7F3D0;
}

.subpage-hero-banner.hero-dorm {
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
  border-color: #BBF7D0;
}

.subpage-hero-banner.hero-events {
  background: linear-gradient(135deg, #FAF5FF 0%, #F3E8FF 100%);
  border-color: #E9D5FF;
}

.subpage-hero-banner.hero-admission {
  background: linear-gradient(135deg, #FFF1F2 0%, #FFE4E6 100%);
  border-color: #FECDD3;
}

.subpage-pill {
  display: inline-block;
  background: #FFFFFF;
  color: #0068FF;
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  box-shadow: 0 1px 3px rgba(0, 104, 255, 0.12);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.subpage-hero-banner h2 {
  font-size: 15px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.35;
  margin-bottom: 4px;
}

.subpage-hero-banner p {
  font-size: 11px;
  color: #334155;
  line-height: 1.45;
  margin: 0;
}

.subpage-content-box {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

/* Action Buttons */
.btn-primary-action {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #0068FF 0%, #00B4D8 100%);
  color: #FFFFFF;
  border: none;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 104, 255, 0.25);
  transition: all 0.2s ease;
}

.btn-primary-action:hover {
  filter: brightness(1.08);
}

.btn-secondary-action {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #FFFFFF;
  color: #475569;
  border: 1px solid #CBD5E1;
  font-size: 11.5px;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary-action:hover {
  background: #F8FAFC;
  color: #0068FF;
  border-color: #93C5FD;
}

/* --- 1. QUIZ STYLES --- */
.quiz-block-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.quiz-q-num {
  font-size: 9px;
  font-weight: 800;
  color: #EA580C;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.quiz-q-title {
  font-size: 12px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.4;
  margin-bottom: 10px;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiz-option-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-option-card:hover {
  background: #EFF6FF;
  border-color: #93C5FD;
}

.quiz-option-card.selected {
  background: #EFF6FF;
  border-color: #0068FF;
  box-shadow: 0 0 0 1px #0068FF;
}

.opt-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.opt-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.opt-text strong {
  font-size: 11.5px;
  color: #0F172A;
}

.opt-text span {
  font-size: 10px;
  color: #64748B;
  line-height: 1.35;
}

.quiz-result-hero {
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  border: 1px solid #A7F3D0;
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  text-align: center;
  margin-bottom: 14px;
}

.match-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #059669;
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.match-pill {
  font-size: 9px;
  font-weight: 800;
  color: #065F46;
  letter-spacing: 0.5px;
}

.quiz-result-hero h3 {
  font-size: 14px;
  font-weight: 800;
  color: #064E3B;
  margin: 4px 0 6px;
}

.quiz-result-hero p {
  font-size: 11px;
  color: #047857;
  line-height: 1.45;
  margin: 0;
}

.match-breakdown-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 14px;
}

.match-breakdown-card h4 {
  font-size: 11.5px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 10px;
}

.match-progress-item {
  margin-bottom: 9px;
}

.match-progress-item:last-child {
  margin-bottom: 0;
}

.match-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #334155;
  margin-bottom: 3px;
}

.match-info-row strong {
  color: #0068FF;
}

.match-track {
  width: 100%;
  height: 6px;
  background: #F1F5F9;
  border-radius: 3px;
  overflow: hidden;
}

.match-fill {
  height: 100%;
  background: #0068FF;
  border-radius: 3px;
}

.match-fill.bg-purple { background: #8B5CF6; }
.match-fill.bg-green { background: #10B981; }

.quiz-result-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* --- 2. MAJORS STYLES --- */
.majors-filter-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 14px 4px;
  scrollbar-width: none;
}

.majors-filter-bar::-webkit-scrollbar {
  display: none;
}

.major-filter-tab {
  flex-shrink: 0;
  padding: 5px 12px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-pill);
  font-size: 10.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.major-filter-tab.active {
  background: #0068FF;
  border-color: #0068FF;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 104, 255, 0.25);
}

.majors-full-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.major-full-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.major-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.major-code-badge {
  font-size: 9.5px;
  font-weight: 700;
  color: #64748B;
  background: #F1F5F9;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.badge-discount-70 {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
}

.badge-scholarship {
  background: #EFF6FF;
  color: #0068FF;
  border: 1px solid #BFDBFE;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
}

.major-card-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
}

.major-card-desc {
  font-size: 11px;
  color: #475569;
  line-height: 1.45;
  margin: 0;
}

.major-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  background: #F8FAFC;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid #F1F5F9;
}

.meta-cell {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.m-label {
  font-size: 9.5px;
  color: #94A3B8;
}

.m-val {
  font-size: 11px;
  color: #0F172A;
}

.m-val.text-green {
  color: #059669;
  font-weight: 800;
}

.major-card-actions {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 7px;
  margin-top: 4px;
}

.btn-major-apply {
  background: #0068FF;
  color: #FFFFFF;
  border: none;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-major-apply:hover {
  background: #0052CC;
}

.btn-major-parent {
  background: #FFFFFF;
  color: #0068FF;
  border: 1px solid #BFDBFE;
  font-size: 10.5px;
  font-weight: 700;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-major-parent:hover {
  background: #EFF6FF;
}

/* --- 3. TUITION & SCHOLARSHIP PRO STYLES (Light, Professional & Modern) --- */

/* Hero Banner */
.tuition-hero-pro {
  padding: 16px 14px;
  background: linear-gradient(135deg, #FFFFFF 0%, #F0FDF4 50%, #EFF6FF 100%);
  border-bottom: 1px solid #BFDBFE;
  text-align: left;
}

.legal-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FFFFFF;
  border: 1px solid #BFDBFE;
  color: #0068FF;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  box-shadow: 0 1px 4px rgba(0, 104, 255, 0.08);
  margin-bottom: 7px;
  letter-spacing: 0.3px;
}

.tuition-hero-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.35;
  margin-bottom: 5px;
}

.tuition-hero-desc {
  font-size: 11px;
  color: #475569;
  line-height: 1.45;
  margin: 0;
}

/* Calculator Pro Card */
.tuition-calc-card-pro {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: 0 3px 12px rgba(0, 104, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calc-pro-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.calc-icon-badge {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.calc-pro-title {
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 2px;
}

.calc-pro-subtitle {
  font-size: 10px;
  color: #64748B;
}

.calc-select-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calc-input-label {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
}

.select-field-custom select {
  width: 100%;
  padding: 9px 10px;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: #0F172A;
  background: #F8FAFC;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.select-field-custom select:focus {
  border-color: #0068FF;
  background: #FFFFFF;
}

/* 2 Metrics KPI Grid */
.calc-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8px;
}

.metric-card-pro {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-card-pro.metric-green {
  background: #F0FDF4;
  border-color: #BBF7D0;
}

.m-pro-label {
  font-size: 9px;
  font-weight: 700;
  color: #64748B;
}

.m-pro-val {
  font-size: 12.5px;
  font-weight: 800;
  color: #1E293B;
}

.m-pro-sub {
  font-size: 8.5px;
  color: #94A3B8;
}

.metric-green .m-pro-sub {
  color: #059669;
}

/* Final Payable Box */
.final-payable-box {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 1.5px solid #93C5FD;
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.final-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.payable-tag {
  font-size: 9px;
  font-weight: 800;
  color: #1E40AF;
  letter-spacing: 0.5px;
}

.payable-price {
  font-size: 17px;
  font-weight: 900;
  color: #0068FF;
  line-height: 1.2;
}

.payable-price small {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
}

.month-equiv-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: #FFFFFF;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid #BFDBFE;
}

.month-equiv-badge span {
  font-size: 8.5px;
  color: #64748B;
}

.month-equiv-badge strong {
  font-size: 11px;
  font-weight: 800;
  color: #059669;
}

.payable-guarantee {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  color: #047857;
  font-weight: 600;
  line-height: 1.35;
  border-top: 1px dashed #93C5FD;
  padding-top: 7px;
}

/* 4-Tier Support Framework */
.support-framework-section {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.section-title-with-icon {
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-title-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #EFF6FF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-sub-title {
  font-size: 12px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  line-height: 1.25;
}

.section-badge-info {
  font-size: 8.5px;
  font-weight: 700;
  color: #0068FF;
  background: #EFF6FF;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  border: 1px solid #DBEAFE;
}

.support-tiers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.tier-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
  position: relative;
}

.tier-card:hover {
  border-color: #CBD5E1;
  transform: translateY(-1px);
}

.tier-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.tier-num-badge {
  font-size: 7.5px;
  font-weight: 800;
  color: #0068FF;
  background: #EFF6FF;
  padding: 1.5px 5px;
  border-radius: 4px;
  letter-spacing: 0.2px;
}

.tier-num-badge.badge-orange {
  color: #D97706;
  background: #FFFBEB;
}

.tier-num-badge.badge-green {
  color: #059669;
  background: #ECFDF5;
}

.tier-num-badge.badge-indigo {
  color: #4F46E5;
  background: #EEF2FF;
}

.tier-icon-wrap {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #EFF6FF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tier-card.tier-orange .tier-icon-wrap {
  background: #FFF7ED;
}

.tier-card.tier-green .tier-icon-wrap {
  background: #ECFDF5;
}

.tier-card.tier-indigo .tier-icon-wrap {
  background: #EEF2FF;
}

.tier-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tier-content strong {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.3;
}

.tier-content p {
  font-size: 8.5px;
  color: #64748B;
  line-height: 1.35;
  margin: 0;
}

.tier-mini-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 8px;
  font-weight: 700;
  color: #0068FF;
  background: #F1F5F9;
  padding: 1px 5px;
  border-radius: 4px;
  margin-top: 2px;
  width: fit-content;
}

.tier-card.tier-orange .tier-mini-chip {
  color: #D97706;
  background: #FFFBEB;
}

.tier-card.tier-green .tier-mini-chip {
  color: #059669;
  background: #ECFDF5;
}

.tier-card.tier-indigo .tier-mini-chip {
  color: #4F46E5;
  background: #EEF2FF;
}

/* Grant Voucher Cards */
.grant-voucher-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  display: flex;
}

.voucher-left-bar {
  width: 5px;
  background: #0068FF;
  flex-shrink: 0;
}

.voucher-left-bar.bar-orange {
  background: #F59E0B;
}

.voucher-body {
  padding: 11px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.v-pill-tag {
  font-size: 8.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
}

.v-pill-tag.tag-blue {
  background: #EFF6FF;
  color: #0068FF;
}

.v-pill-tag.tag-orange {
  background: #FFFBEB;
  color: #D97706;
}

.v-code {
  font-size: 9px;
  font-family: monospace;
  font-weight: 700;
  color: #94A3B8;
}

.v-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #0F172A;
  margin: 2px 0 0;
  line-height: 1.35;
}

.v-desc {
  font-size: 10.5px;
  color: #475569;
  line-height: 1.4;
  margin: 0;
}

.v-meta {
  display: flex;
  gap: 12px;
  font-size: 10px;
  color: #64748B;
  margin-top: 4px;
}

.v-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  border-top: 1px dashed #E2E8F0;
  padding-top: 6px;
}

.v-slots {
  font-size: 10px;
  color: #EA580C;
}

.btn-claim-voucher {
  background: #D97706;
  color: #FFFFFF;
  border: none;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: filter 0.15s ease;
}

.btn-claim-voucher:hover {
  filter: brightness(1.1);
}

/* BGH 4 KHÔNG Guarantee Certificate */
.bgh-financial-commitment {
  background: #FFFFFF;
  border: 1.5px solid #0068FF;
  border-radius: var(--radius-md);
  padding: 13px;
  box-shadow: 0 3px 12px rgba(0, 104, 255, 0.06);
}

.bgh-seal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #F1F5F9;
  padding-bottom: 8px;
}

.seal-icon-svg {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #EFF6FF;
  border: 1.5px solid #BFDBFE;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bgh-seal-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #0068FF;
  margin: 0 0 1px;
  letter-spacing: 0.3px;
}

.bgh-seal-meta {
  font-size: 9px;
  color: #64748B;
}

.commitment-checklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.commit-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.commit-check {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ECFDF5;
  color: #059669;
  font-size: 10px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.commit-text {
  font-size: 10.5px;
  color: #334155;
  line-height: 1.4;
}

.commit-text strong {
  color: #0F172A;
}

/* Bottom CTA */
.tuition-bottom-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

/* --- 4. DORM STYLES --- */
.dorm-amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.amenity-item {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  padding: 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.am-icon {
  font-size: 18px;
  margin-bottom: 2px;
}

.amenity-item strong {
  font-size: 11px;
  color: #0F172A;
}

.amenity-item small {
  font-size: 9.5px;
  color: #64748B;
}

.dorm-room-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dorm-room-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 12px 12px;
}

.dorm-room-card.highlight-card {
  border-color: #0068FF;
  background: #F0F7FF;
  position: relative;
}

.room-badge-fav {
  display: inline-block;
  background: #0068FF;
  color: #FFFFFF;
  font-size: 8.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  margin-bottom: 5px;
}

.room-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.room-top h4 {
  font-size: 12.5px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
}

.room-price {
  font-size: 13px;
  font-weight: 800;
  color: #059669;
}

.room-price.price-blue {
  color: #0068FF;
}

.room-price small {
  font-size: 9.5px;
  color: #64748B;
  font-weight: 400;
}

.room-desc {
  font-size: 10.5px;
  color: #475569;
  line-height: 1.45;
  margin: 0;
}

.dorm-booking-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 14px 12px;
}

.dorm-booking-box h4 {
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 3px;
}

.form-sub-note {
  font-size: 10.5px;
  color: #64748B;
  margin-bottom: 12px;
}

.dorm-form-group {
  margin-bottom: 10px;
}

.dorm-form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 4px;
}

.dorm-form-group input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 11.5px;
  color: #0F172A;
  background: #F8FAFC;
  outline: none;
}

.dorm-type-selector {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6px;
}

.dorm-type-btn {
  padding: 7px 6px;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}

.dorm-type-btn.active {
  background: #EFF6FF;
  border-color: #0068FF;
  color: #0068FF;
  font-weight: 700;
}

.dorm-success-box {
  text-align: center;
  padding: 10px 4px;
}

.success-icon-big {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #10B981;
  color: #FFFFFF;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

.dorm-success-box h4 {
  font-size: 13px;
  font-weight: 800;
  color: #065F46;
  margin-bottom: 4px;
}

.dorm-success-box p {
  font-size: 11.5px;
  color: #334155;
  margin-bottom: 6px;
}

.success-note {
  display: block;
  font-size: 10px;
  color: #64748B;
  line-height: 1.45;
  margin-bottom: 12px;
}

/* --- 5. EVENTS FEED STYLES --- */
.events-feed-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event-feed-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  transition: all 0.2s ease;
}

.event-feed-card:hover {
  border-color: #0068FF;
  transform: translateY(-1px);
}

.event-feed-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.event-tag-live {
  background: #FFE4E6;
  color: #E11D48;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.event-tag-upcoming {
  background: #F3E8FF;
  color: #7E22CE;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.event-countdown-badge {
  font-size: 9.5px;
  font-weight: 700;
  color: #64748B;
}

.event-feed-title {
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.35;
  margin: 0 0 6px;
}

.event-feed-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 10.5px;
  color: #475569;
  margin-bottom: 10px;
}

.event-feed-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #F1F5F9;
  padding-top: 8px;
}

.event-slots-tag {
  font-size: 10px;
  color: #059669;
  font-weight: 700;
}

.btn-event-pill {
  background: #EFF6FF;
  color: #0068FF;
  border: 1px solid #BFDBFE;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

/* --- 6. ADMISSION STYLES --- */
.admission-full-form {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 14px;
}

.form-step-badge {
  display: inline-block;
  background: #F1F5F9;
  color: #0068FF;
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

.ad-form-row {
  margin-bottom: 10px;
}

.ad-form-row label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 4px;
}

.ad-form-row input, .ad-form-row select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 11.5px;
  color: #0F172A;
  background: #F8FAFC;
  outline: none;
}

.btn-submit-full {
  margin-top: 12px;
  padding: 12px;
  font-size: 12.5px;
}

.ad-privacy-note {
  font-size: 9.5px;
  color: #64748B;
  text-align: center;
  margin-top: 8px;
}

.admission-success-card {
  background: #FFFFFF;
  border: 1.5px solid #10B981;
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  text-align: center;
}

.success-crest-icon {
  font-size: 32px;
  margin-bottom: 6px;
}

.success-pill-tag {
  display: inline-block;
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-bottom: 6px;
}

.admission-success-card h3 {
  font-size: 13.5px;
  font-weight: 800;
  color: #065F46;
  margin-bottom: 4px;
  line-height: 1.35;
}

.admission-success-card p {
  font-size: 11px;
  color: #475569;
  margin: 0 0 12px;
}

.candidate-ticket-box {
  background: #F0FDF4;
  border: 1px dashed #86EFAC;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
  margin-bottom: 14px;
}

.cand-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #334155;
}

.success-btn-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* --- 8. FULL-SCREEN AI CHAT STYLES --- */
.ai-header-status {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.online-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  color: #10B981;
  font-weight: 700;
}

.dot-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
}

.ai-page-prompts {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 12px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  scrollbar-width: none;
}

.ai-page-prompts::-webkit-scrollbar {
  display: none;
}

.ai-prompt-chip {
  flex-shrink: 0;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #334155;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.ai-prompt-chip:hover {
  background: #EFF6FF;
  border-color: #0068FF;
  color: #0068FF;
}

.ai-page-feed {
  padding: 12px 14px 70px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 480px;
}

.ai-page-msg {
  display: flex;
  gap: 8px;
  max-width: 88%;
}

.ai-page-msg.bot-bubble {
  align-self: flex-start;
}

.ai-page-msg.user-bubble {
  align-self: flex-end;
  justify-content: flex-end;
}

.ai-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.msg-bubble-content {
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 11.5px;
  line-height: 1.5;
  text-align: left;
}

.bot-bubble .msg-bubble-content {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #1E293B;
  border-top-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.user-bubble .msg-bubble-content {
  background: #0068FF;
  color: #FFFFFF;
  border-top-right-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 104, 255, 0.25);
}

.bot-quick-list {
  list-style: none;
  padding: 0;
  margin: 6px 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #475569;
}

.msg-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #E2E8F0;
}

.btn-msg-subaction {
  background: #EFF6FF;
  color: #0068FF;
  border: 1px solid #BFDBFE;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.btn-msg-subaction:hover {
  background: #0068FF;
  color: #FFFFFF;
}

.ai-page-input-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid #E2E8F0;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.ai-page-input-bar input {
  flex: 1;
  padding: 9px 12px;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 11.5px;
  color: #0F172A;
  background: #F8FAFC;
  outline: none;
}

.ai-page-input-bar input:focus {
  border-color: #0068FF;
  background: #FFFFFF;
}

.btn-ai-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0068FF;
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.btn-ai-send:hover {
  transform: scale(1.06);
}

.typing-dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #94A3B8;
  border-radius: 50%;
  margin: 0 2px;
  animation: typingBounce 1s infinite alternate;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

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

/* ==========================================================================
   SUB-VIEW 11: TRUNG TÂM CÁ NHÂN & LỘ TRÌNH TIẾN ĐỘ HỒ SƠ
   ========================================================================== */
#profileAppView {
  background: #F8FAFC;
  padding: 0;
}

/* Profile Candidate Hero Card */
.profile-hero-card {
  background: linear-gradient(135deg, #EFF6FF 0%, #FFFFFF 55%, #F0FDF4 100%);
  border-bottom: 1px solid #E2E8F0;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(0, 104, 255, 0.05);
}

.profile-hero-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-avatar-box {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0068FF 0%, #00B4D8 100%);
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 104, 255, 0.25);
}

.avatar-status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10B981;
  border: 2px solid #FFFFFF;
}

.profile-user-info {
  flex: 1;
}

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

.profile-name {
  font-size: 15px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
}

.profile-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #0068FF;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
}

.profile-meta-text {
  font-size: 11px;
  color: #64748B;
  margin: 3px 0 6px 0;
}

.profile-chips-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.chip-pill {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.chip-pill.chip-blue {
  background: #E0F2FE;
  color: #0284C7;
  border: 1px solid #BAE6FD;
}

.chip-pill.chip-green {
  background: #DCFCE7;
  color: #16A34A;
  border: 1px solid #BBF7D0;
}

/* Fast Stats KPI Bar */
.profile-fast-stats {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  margin-top: 14px;
  padding: 10px 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.fast-stat-item {
  text-align: center;
  padding: 0 4px;
}

.fast-stat-item.stat-border-x {
  border-left: 1px solid #F1F5F9;
  border-right: 1px solid #F1F5F9;
}

.stat-num {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
  white-space: nowrap;
}

.stat-lbl {
  font-size: 9px;
  color: #64748B;
  font-weight: 500;
}

/* ==================== ĐIỂM NHẤN TRỌNG TÂM: LỘ TRÌNH TIẾN ĐỘ HỒ SƠ ==================== */
.pipeline-tracker-card {
  background: #FFFFFF;
  border-radius: 18px;
  border: 1.5px solid #BFDBFE;
  box-shadow: 0 6px 20px rgba(0, 104, 255, 0.08);
  padding: 16px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.pipeline-tracker-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0068FF 0%, #00B4D8 50%, #10B981 100%);
}

.pipeline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.pipeline-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pipeline-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #EFF6FF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pipeline-main-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  line-height: 1.3;
}

.pipeline-sub {
  font-size: 10px;
  color: #64748B;
  display: block;
  margin-top: 2px;
}

.pipeline-status-pill {
  background: linear-gradient(135deg, #0068FF, #00B4D8);
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.pipeline-progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: #E2E8F0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}

.pipeline-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0068FF 0%, #10B981 100%);
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.pipeline-progress-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #64748B;
  margin-bottom: 16px;
}

/* 5 Steps Detailed Timeline */
.pipeline-steps-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 0;
}

.pipeline-step-item {
  display: flex;
  position: relative;
  padding-bottom: 14px;
}

.pipeline-step-item:last-child {
  padding-bottom: 0;
}

/* Vertical connector line */
.pipeline-step-item::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 26px;
  bottom: 0;
  width: 2px;
  background: #E2E8F0;
}

.pipeline-step-item.step-completed::before {
  background: #10B981;
}

.pipeline-step-item.step-active::before {
  background: linear-gradient(180deg, #0068FF 0%, #E2E8F0 100%);
}

.pipeline-step-item:last-child::before {
  display: none;
}

.step-marker {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #F1F5F9;
  border: 2px solid #CBD5E1;
  color: #64748B;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
  margin-right: 12px;
  transition: all 0.2s ease;
}

.step-completed .step-marker {
  background: #10B981;
  border-color: #10B981;
  color: #FFFFFF;
}

.step-active .step-marker {
  background: #FFFFFF;
  border-color: #0068FF;
  box-shadow: 0 0 0 4px rgba(0, 104, 255, 0.2);
}

.pulsing-inner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0068FF;
  animation: pulseDotRing 1.4s infinite;
}

@keyframes pulseDotRing {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.step-card-body {
  flex: 1;
  background: #F8FAFC;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid #E2E8F0;
}

.step-card-body.active-body {
  background: #EFF6FF;
  border-color: #93C5FD;
  box-shadow: 0 2px 8px rgba(0, 104, 255, 0.08);
}

.step-time-tag {
  font-size: 9.5px;
  font-weight: 700;
  color: #64748B;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.step-time-tag.tag-pulse {
  color: #0068FF;
}

.step-title {
  font-size: 12px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 4px 0;
  line-height: 1.35;
}

.step-desc {
  font-size: 11px;
  color: #475569;
  margin: 0;
  line-height: 1.45;
}

.step-action-row {
  margin-top: 8px;
}

.btn-step-action {
  background: #0068FF;
  color: #FFFFFF;
  border: none;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-step-action:hover {
  background: #0050CC;
}

.pipeline-cta-bar {
  margin-top: 14px;
}

.btn-receipt-download {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #F1F5F9;
  border: 1.5px dashed #CBD5E1;
  color: #0068FF;
  font-size: 11.5px;
  font-weight: 700;
  padding: 9px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-receipt-download:hover {
  background: #EFF6FF;
  border-color: #93C5FD;
}

/* ==================== GÓC DÀNH CHO PHỤ HUYNH (TÍCH HỢP TRONG CÁ NHÂN) ==================== */
.parent-companion-card {
  background: linear-gradient(180deg, #FFFBEB 0%, #FEF3C7 35%, #FFFFFF 100%);
  border: 1.5px solid #FCD34D;
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.08);
}

.parent-hub-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  color: #B45309;
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}

.parent-hub-title {
  font-size: 14px;
  font-weight: 800;
  color: #78350F;
  margin: 0 0 4px 0;
}

.parent-hub-desc {
  font-size: 11px;
  color: #92400E;
  margin: 0 0 12px 0;
  line-height: 1.45;
}

.parent-pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.pillar-mini-card {
  background: #FFFFFF;
  border: 1px solid #FDE68A;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pillar-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.pillar-mini-card strong {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 2px;
}

.pillar-mini-card span {
  display: block;
  font-size: 9.5px;
  color: #64748B;
  line-height: 1.35;
}

.parent-hub-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-share-parent-zalo {
  width: 100%;
  background: linear-gradient(135deg, #0068FF 0%, #00B4D8 100%);
  color: #FFFFFF;
  border: none;
  font-size: 11.5px;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 3px 10px rgba(0, 104, 255, 0.25);
  transition: transform 0.15s ease;
}

.btn-share-parent-zalo:hover {
  transform: translateY(-1px);
}

.btn-open-parent-full {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-open-parent-full:hover {
  background: #F8FAFC;
  color: #0068FF;
}

/* ==================== SECTION CARDS IN PROFILE ==================== */
.profile-section-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.p-sec-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.p-sec-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.p-sec-icon.bg-orange-soft { background: #FEF3C7; }
.p-sec-icon.bg-purple-soft { background: #F3E8FF; }
.p-sec-icon.bg-blue-soft { background: #EFF6FF; }

.p-sec-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
}

.p-sec-sub {
  font-size: 10px;
  color: #64748B;
  display: block;
}

/* 1. Vouchers */
.my-vouchers-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.voucher-mini-item {
  display: flex;
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  border-radius: 10px;
  overflow: hidden;
}

.v-mini-left {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #FFFFFF;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 65px;
  text-align: center;
}

.v-mini-left.bg-cyan {
  background: linear-gradient(135deg, #0284C7, #00B4D8);
}

.v-val {
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.v-unit {
  font-size: 8px;
  font-weight: 700;
  margin-top: 2px;
  letter-spacing: 0.3px;
}

.v-mini-right {
  padding: 8px 10px;
  flex: 1;
}

.v-mini-right strong {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #0F172A;
}

.v-mini-right p {
  font-size: 10px;
  color: #64748B;
  margin: 2px 0 4px 0;
}

.v-code-tag {
  font-size: 9px;
  font-weight: 700;
  color: #0068FF;
  background: #EFF6FF;
  padding: 2px 6px;
  border-radius: 4px;
}

/* 2. Events Ticket */
.my-event-ticket-card {
  background: #FAF5FF;
  border: 1px solid #E9D5FF;
  border-radius: 12px;
  padding: 12px;
}

.ticket-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.ticket-badge-live {
  font-size: 9px;
  font-weight: 800;
  color: #7C3AED;
  background: #EDE9FE;
  padding: 2px 6px;
  border-radius: 4px;
}

.ticket-qr-id {
  font-size: 10px;
  font-weight: 700;
  color: #6B21A8;
}

.ticket-event-name {
  font-size: 12px;
  font-weight: 800;
  color: #1E1B4B;
  margin: 0 0 8px 0;
}

.ticket-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  font-size: 10px;
  margin-bottom: 10px;
  background: #FFFFFF;
  padding: 8px;
  border-radius: 8px;
}

.t-lbl { color: #64748B; display: block; }
.t-val { color: #0F172A; display: block; }

.btn-view-qr-ticket {
  width: 100%;
  background: #7C3AED;
  color: #FFFFFF;
  border: none;
  font-size: 10.5px;
  font-weight: 700;
  padding: 7px;
  border-radius: 8px;
  cursor: pointer;
}

/* 3. AI Vocational Summary */
.ai-result-mini-box {
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  border-radius: 12px;
  padding: 12px;
}

.ai-fit-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.ai-fit-percent {
  font-size: 20px;
  font-weight: 900;
  color: #0284C7;
  background: #FFFFFF;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.2);
  flex-shrink: 0;
}

.ai-fit-major {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #0C4A6E;
}

.ai-fit-type {
  display: block;
  font-size: 10px;
  color: #0369A1;
  margin-top: 2px;
}

.btn-retake-ai-test {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #7DD3FC;
  color: #0284C7;
  font-size: 10.5px;
  font-weight: 700;
  padding: 7px;
  border-radius: 8px;
  cursor: pointer;
}

/* 4. Mentor Card */
.profile-mentor-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  padding: 14px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mentor-avatar-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #EFF6FF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mentor-role-badge {
  font-size: 9px;
  font-weight: 800;
  color: #0068FF;
  background: #EFF6FF;
  padding: 2px 6px;
  border-radius: 4px;
}

.mentor-name {
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
  margin: 4px 0 2px 0;
}

.mentor-desc {
  font-size: 10.5px;
  color: #64748B;
  margin: 0;
  line-height: 1.4;
}

.mentor-actions {
  display: flex;
  gap: 8px;
}

.btn-mentor-call, .btn-mentor-chat {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 8px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
}

.btn-mentor-call {
  background: #0068FF;
  color: #FFFFFF;
  border: none;
}

.btn-mentor-chat {
  background: #EFF6FF;
  color: #0068FF;
  border: 1px solid #BFDBFE;
}

/* 5. Settings List */
.profile-settings-list {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  padding: 10px 14px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #F1F5F9;
}

.setting-row:last-child {
  border-bottom: none;
}

.setting-row strong {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: #0F172A;
}

.setting-sub {
  font-size: 9.5px;
  color: #64748B;
  display: block;
  margin-top: 2px;
}

.badge-secure-status {
  font-size: 10px;
  font-weight: 700;
  color: #10B981;
  background: #ECFDF5;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

/* Switch toggle */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
  flex-shrink: 0;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #CBD5E1;
  transition: .25s;
  border-radius: 20px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .25s;
  border-radius: 50%;
}

.switch-toggle input:checked + .toggle-slider {
  background-color: #0068FF;
}

.switch-toggle input:checked + .toggle-slider:before {
  transform: translateX(18px);
}

/* ==================== ZALO SHARE MODAL STYLES ==================== */
.zalo-share-card {
  max-width: 380px;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 104, 255, 0.18);
  border: 1px solid #DBEAFE;
}

.zalo-share-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #0068FF;
  color: #FFFFFF;
}

.zalo-brand-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.zalo-z-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #FFFFFF;
  color: #0068FF;
  font-weight: 900;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zalo-header-title {
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
}

.zalo-header-sub {
  font-size: 10px;
  color: #BFDBFE;
  display: block;
}

.zalo-share-header .btn-close-modal {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
}

.zalo-share-body {
  padding: 14px;
  max-height: 480px;
  overflow-y: auto;
}

.zalo-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  margin-bottom: 12px;
}

.zalo-search-box input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 11px;
  color: #0F172A;
  outline: none;
  font-family: inherit;
}

.zalo-section-label {
  font-size: 9.5px;
  font-weight: 800;
  color: #64748B;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.zalo-contacts-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.zalo-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.zalo-contact-row:hover {
  background: #EFF6FF;
  border-color: #BFDBFE;
}

.zalo-contact-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #0068FF;
  cursor: pointer;
}

.zalo-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.bg-avatar-dad { background: #DBEAFE; }
.bg-avatar-mom { background: #FCE7F3; }
.bg-avatar-fam { background: #FEF3C7; }
.bg-avatar-teacher { background: #E0E7FF; }

.zalo-contact-info {
  flex: 1;
}

.zalo-contact-name {
  display: flex;
  align-items: center;
  gap: 6px;
}

.zalo-contact-name strong {
  font-size: 11.5px;
  color: #0F172A;
}

.zalo-pin-star {
  font-size: 9px;
  color: #D97706;
  font-weight: 700;
}

.zalo-contact-sub {
  font-size: 9.5px;
  color: #64748B;
  display: block;
}

/* Rich Message Card Preview */
.zalo-rich-msg-preview {
  background: #FFFFFF;
  border: 1.5px solid #0068FF;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 104, 255, 0.12);
  margin-bottom: 10px;
}

.rich-msg-banner {
  background: linear-gradient(135deg, #0068FF 0%, #00B4D8 100%);
  color: #FFFFFF;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9.5px;
  font-weight: 700;
}

.rich-msg-pill {
  background: rgba(255, 255, 255, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
}

.rich-msg-brand {
  font-size: 9px;
  opacity: 0.9;
}

.rich-msg-content {
  padding: 10px;
}

.rich-msg-title {
  font-size: 12px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 6px 0;
  line-height: 1.35;
}

.rich-msg-text {
  font-size: 10.5px;
  color: #334155;
  margin: 0 0 6px 0;
  line-height: 1.4;
}

.rich-msg-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 10px;
  color: #475569;
  line-height: 1.5;
  background: #F8FAFC;
  padding: 6px 8px;
  border-radius: 8px;
  border-left: 3px solid #0068FF;
}

/* Clickable Mini App Link inside Zalo Card */
.rich-msg-miniapp-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #EFF6FF 0%, #E0F2FE 100%);
  border-top: 1px solid #BFDBFE;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.rich-msg-miniapp-box:hover {
  background: #DBEAFE;
}

.miniapp-thumb {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #FFFFFF;
  border: 1px solid #BFDBFE;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.miniapp-link-info {
  flex: 1;
}

.miniapp-tag {
  font-size: 8px;
  font-weight: 800;
  color: #0068FF;
  letter-spacing: 0.4px;
  display: block;
}

.miniapp-link-title {
  font-size: 10.5px;
  font-weight: 800;
  color: #0047BA;
  display: block;
  line-height: 1.25;
}

.miniapp-url {
  font-size: 8.5px;
  color: #64748B;
  display: block;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 220px;
}

.miniapp-arrow {
  font-size: 18px;
  font-weight: 800;
  color: #0068FF;
}

/* Custom note */
.zalo-personal-note-box textarea {
  width: 100%;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 10.5px;
  font-family: inherit;
  color: #334155;
  background: #F8FAFC;
  outline: none;
  resize: none;
  box-sizing: border-box;
}

.zalo-personal-note-box textarea:focus {
  border-color: #0068FF;
  background: #FFFFFF;
}

/* Send button */
.zalo-send-actions {
  margin-top: 10px;
}

.btn-zalo-send-final {
  width: 100%;
  background: linear-gradient(135deg, #0068FF 0%, #00B4D8 100%);
  color: #FFFFFF;
  border: none;
  font-size: 12px;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 104, 255, 0.3);
  transition: transform 0.15s ease;
}

.btn-zalo-send-final:hover {
  transform: translateY(-1px);
}

/* ==================== ZALO OA VISUAL CARD (BỚT CHỮ, THÊM ICON) ==================== */
.zalo-oa-visual-card {
  background: #FFFFFF;
  border: 1.2px solid #E2E8F0;
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 2px 8px rgba(0, 104, 255, 0.05);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.zalo-oa-visual-card:hover {
  border-color: #BFDBFE;
}

.oa-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.oa-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.oa-header-avatar {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #0068FF 0%, #0099FF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(0, 104, 255, 0.24);
}

.oa-header-avatar .oa-badge-check {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 14px;
  height: 14px;
  background: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.oa-header-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.oa-header-name {
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.oa-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  color: #059669;
}

.oa-dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* Button CTA */
.btn-oa-action {
  flex-shrink: 0;
  background: #0068FF;
  color: #FFFFFF;
  border: none;
  font-size: 11.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 104, 255, 0.25);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-oa-action:hover {
  background: #0055d4;
  transform: translateY(-1px);
}

.btn-oa-action:active {
  transform: scale(0.97);
}

.btn-oa-action.followed {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
  box-shadow: none;
}

.btn-oa-action.followed:hover {
  background: #E6F9F0;
}

/* ==================== FOOTER CAMPUS MAP BADGES ==================== */
.badge-click-map {
  font-size: 8.5px;
  font-weight: 700;
  color: #0068FF;
  background: #EFF6FF;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: auto;
  border: 1px solid #BFDBFE;
  transition: all 0.15s ease;
}

.campus-card {
  transition: all 0.2s ease;
}

.campus-card:hover {
  border-color: #0068FF !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 104, 255, 0.1);
}

.campus-card:hover .badge-click-map {
  background: #0068FF;
  color: #FFFFFF;
}

/* ==================== DORM MAP BANNER CARD ==================== */
.dorm-map-banner-card {
  background: #FFFFFF;
  border: 1.5px solid #BFDBFE;
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 104, 255, 0.08);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  margin-top: 6px;
}

.dorm-map-banner-card:hover {
  border-color: #0068FF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 104, 255, 0.16);
}

.dorm-map-banner-card:active {
  transform: scale(0.98);
}

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

.map-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #EFF6FF;
  color: #0068FF;
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

.map-click-hint {
  font-size: 10px;
  font-weight: 700;
  color: #0068FF;
  display: flex;
  align-items: center;
}

.map-visual-preview {
  position: relative;
  height: 95px;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #334155;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.map-preview-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 20px 20px;
}

.map-radar-pulse {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 104, 255, 0.6);
  background: rgba(0, 104, 255, 0.15);
  animation: radarWave 2s infinite ease-out;
  pointer-events: none;
}

@keyframes radarWave {
  0% { transform: scale(0.3); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

.map-preview-pin {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(0, 104, 255, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.map-preview-pin .pin-icon {
  font-size: 14px;
}

.map-preview-pin .pin-text {
  font-size: 10.5px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.2px;
}

.map-bus-pill {
  position: absolute;
  bottom: 6px;
  z-index: 2;
  background: rgba(16, 185, 129, 0.92);
  color: #FFFFFF;
  font-size: 8.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.map-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  gap: 6px;
}

.map-address-info {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #475569;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.map-address-info span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.btn-mini-map {
  background: #0068FF;
  color: #FFFFFF;
  border: none;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 104, 255, 0.25);
  transition: all 0.15s ease;
}

.btn-mini-map:hover {
  background: #0055d4;
}

/* ==================== CAMPUS & DORM MAP MODAL STYLES ==================== */
.campus-map-card {
  background: #FFFFFF;
  border-radius: 24px 24px 0 0;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.map-modal-header {
  padding: 12px 14px;
  background: linear-gradient(135deg, #0068FF 0%, #0284C7 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.map-modal-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-modal-badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.map-modal-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.25;
}

.map-modal-sub {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.85);
  display: block;
}

.map-modal-header .btn-close-modal {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  transition: background 0.15s ease;
}

.map-modal-header .btn-close-modal:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Tabs Bar */
.map-tabs-bar {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  background: #F1F5F9;
  border-bottom: 1px solid #E2E8F0;
  flex-shrink: 0;
}

.map-tab-btn {
  flex: 1;
  padding: 7px 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: #64748B;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.map-tab-btn.active {
  background: #EFF6FF;
  color: #0068FF;
  border-color: #0068FF;
  box-shadow: 0 2px 6px rgba(0, 104, 255, 0.12);
}

.map-modal-body {
  padding: 12px 14px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Simulated Vector Map Screen */
.map-screen-display {
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid #CBD5E1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.map-canvas-visual {
  height: 165px;
  position: relative;
  background: radial-gradient(circle at 50% 45%, #1E293B 0%, #0F172A 100%);
  overflow: hidden;
}

.map-street-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.street-line {
  position: absolute;
  background: rgba(148, 163, 184, 0.22);
}

.street-line.h-1 {
  top: 35%;
  left: 0;
  right: 0;
  height: 14px;
  background: rgba(148, 163, 184, 0.18);
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.street-line.h-2 {
  top: 75%;
  left: 0;
  right: 0;
  height: 10px;
}

.street-line.v-1 {
  left: 46%;
  top: 0;
  bottom: 0;
  width: 14px;
  background: rgba(148, 163, 184, 0.18);
  border-left: 1px dashed rgba(255, 255, 255, 0.2);
  border-right: 1px dashed rgba(255, 255, 255, 0.2);
}

.street-line.v-2 {
  left: 82%;
  top: 0;
  bottom: 0;
  width: 8px;
}

.street-name-tag {
  position: absolute;
  font-size: 8px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.street-name-tag.st-1 {
  top: 24%;
  left: 10px;
}

.street-name-tag.st-2 {
  bottom: 10px;
  right: 14px;
}

/* Target Radar Pin */
.map-target-pin {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

.pin-sonar-wave {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 104, 255, 0.25);
  border: 1.5px solid #0068FF;
  animation: sonarPing 2.2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.pin-sonar-wave.delay {
  animation-delay: 1.1s;
}

@keyframes sonarPing {
  0% { transform: translate(-50%, -50%) scale(0.2); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}

.pin-core-circle {
  position: relative;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0068FF 0%, #00B4D8 100%);
  border: 2.5px solid #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 104, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pinBounce 2s ease-in-out infinite;
}

@keyframes pinBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.pin-emoji {
  font-size: 18px;
}

.pin-callout-bubble {
  position: relative;
  z-index: 2;
  margin-top: 5px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  padding: 4px 9px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  text-align: center;
  white-space: nowrap;
}

.pin-callout-bubble strong {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: #FFFFFF;
}

.pin-callout-bubble span {
  font-size: 8px;
  color: #34D399;
  font-weight: 700;
}

/* Nearby Floating Transit Badges */
.map-floating-landmarks {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  gap: 5px;
  z-index: 5;
}

.landmark-pill {
  font-size: 8.5px;
  font-weight: 700;
  color: #FFFFFF;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 3px 7px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.landmark-pill.landmark-metro {
  border-color: rgba(59, 130, 246, 0.4);
}

.landmark-pill.landmark-bus {
  border-color: rgba(16, 185, 129, 0.4);
}

/* Location Details Box */
.map-info-details-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.loc-detail-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.loc-detail-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.loc-detail-text {
  flex: 1;
}

.loc-title {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 2px;
  line-height: 1.3;
}

.loc-addr {
  font-size: 10px;
  color: #475569;
  line-height: 1.4;
  margin: 0;
}

/* Transit Info Card */
.transit-info-card {
  background: #FFFFFF;
  border: 1px solid #BFDBFE;
  border-radius: 10px;
  padding: 8px 10px;
}

.transit-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 800;
  color: #0068FF;
  margin-bottom: 6px;
}

.transit-routes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.transit-routes li {
  font-size: 9.5px;
  color: #334155;
  line-height: 1.45;
}

.transit-routes li strong {
  color: #0F172A;
}

/* Action CTA Buttons */
.map-action-buttons-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-open-gmaps {
  width: 100%;
  background: linear-gradient(135deg, #0068FF 0%, #0284C7 100%);
  color: #FFFFFF;
  border: none;
  font-size: 12px;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 104, 255, 0.28);
  transition: all 0.2s ease;
}

.btn-open-gmaps:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

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

.map-secondary-actions {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 6px;
}

.btn-map-call, .btn-copy-address {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 6px;
  border-radius: 10px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-map-call {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.btn-map-call:hover {
  background: #D1FAE5;
}

.btn-copy-address {
  background: #F8FAFC;
  color: #334155;
  border: 1px solid #CBD5E1;
}

.btn-copy-address:hover {
  background: #F1F5F9;
}

/* ==========================================================================
   17. KANBAN DRAG & DROP & NHẬT KÝ CHĂM SÓC THÍ SINH (CRM 360)
   ========================================================================== */
.lead-card[draggable="true"] {
  cursor: grab;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.lead-card[draggable="true"]:active {
  cursor: grabbing;
}
.lead-card.dragging {
  opacity: 0.35;
  background: #EFF6FF;
  box-shadow: 0 4px 12px rgba(0, 104, 255, 0.15);
}
.col-cards {
  transition: background-color 0.2s ease, outline 0.2s ease;
}
.col-cards.drag-over {
  background-color: rgba(0, 104, 255, 0.08) !important;
  outline: 2px dashed #0068FF !important;
  outline-offset: -2px;
}

/* Note: Card Action Buttons & 2-row footer layout defined in Section 17 */

/* Lead Care Modal & Timeline */
.lead-care-modal-card {
  max-width: 1130px;
  width: 95%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
  background: #FFFFFF;
}
.lead-modal-header {
  padding: 16px 24px;
  background: #0B132B;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lead-header-info {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lead-avatar-lg {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0068FF, #00C49F);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 104, 255, 0.4);
}
.lead-header-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
  flex-wrap: wrap;
}
.lead-header-title-row h3 {
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
}
.lead-code-badge {
  background: rgba(255, 255, 255, 0.15);
  color: #E2E8F0;
  font-size: 10px;
  font-family: monospace;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}
.lead-status-chip {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
  background: #0068FF;
  color: #FFFFFF;
}
.lead-header-sub {
  font-size: 11px;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lead-quick-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  padding: 10px 24px;
  gap: 12px;
  flex-wrap: wrap;
}
.lead-status-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
}
.lead-status-selector select {
  background: #FFFFFF;
  border: 1.5px solid #0068FF;
  color: #0068FF;
  font-weight: 700;
  font-size: 11.5px;
  padding: 6px 10px;
  border-radius: 8px;
  outline: none;
  cursor: pointer;
}
.lead-direct-contacts {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.btn-contact-quick {
  border: none;
  font-size: 10.5px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.btn-contact-quick .c-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-contact-quick svg {
  flex-shrink: 0;
}
.btn-call { background: #DCFCE7; color: #15803D; border: 1px solid #BBF7D0; }
.btn-call:hover { background: #BBF7D0; }
.btn-parent-call { background: #FEF3C7; color: #B45309; border: 1px solid #FDE68A; }
.btn-parent-call:hover { background: #FDE68A; }
.btn-zalo-oa { background: #EFF6FF; color: #0068FF; border: 1px solid #BFDBFE; }
.btn-zalo-oa:hover { background: #DBEAFE; }
.btn-zns-fast { background: #F3E8FF; color: #7E22CE; border: 1px solid #E9D5FF; }
.btn-zns-fast:hover { background: #E9D5FF; }

.lead-modal-body {
  padding: 0;
}

.care-content-split {
  display: grid;
  grid-template-columns: 430px 1fr;
  gap: 0;
  padding: 0;
  max-height: calc(92vh - 145px);
  overflow-y: auto;
  box-sizing: border-box;
}
@media (max-width: 820px) {
  .care-content-split {
    grid-template-columns: 1fr;
  }
  .care-add-box {
    border-right: none !important;
    border-bottom: 1px solid #E2E8F0;
  }
}
.care-add-box {
  background: #FFFFFF;
  border: none;
  border-right: 1px solid #E2E8F0;
  border-radius: 0;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
}
.care-history-box {
  background: #FFFFFF;
  border: none;
  border-radius: 0;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
}
.care-box-title {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #F1F5F9;
}
.care-box-title span {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
}
.care-box-title small {
  font-size: 10px;
  color: #64748B;
}
.care-form-group {
  margin-bottom: 11px;
}
.care-form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 5px;
}
.interaction-type-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.type-pill {
  cursor: pointer;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 10.5px;
  font-weight: 600;
  color: #475569;
  background: #F8FAFC;
  transition: all 0.15s ease;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.type-pill svg {
  flex-shrink: 0;
  transition: stroke 0.15s ease;
}
.type-pill input { display: none; }
.type-pill.active {
  background: #0068FF;
  color: #FFFFFF;
  border-color: #0068FF;
  box-shadow: 0 2px 6px rgba(0, 104, 255, 0.25);
}
.type-pill.active svg {
  stroke: #FFFFFF;
}
.lead-heat-selector {
  display: flex;
  gap: 12px;
  font-size: 11px;
}
.lead-heat-selector label {
  font-weight: 600;
  cursor: pointer;
}
.heat-hot { color: #DC2626; font-weight: 700; }
.heat-warm { color: #D97706; font-weight: 700; }
.heat-cool, .heat-cold { color: #2563EB; font-weight: 700; }

.care-form-group textarea, .care-form-group input[type="text"] {
  width: 100%;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  font-family: inherit;
  outline: none;
  background: #F8FAFC;
  transition: border-color 0.2s, background-color 0.2s;
  box-sizing: border-box;
}
.care-form-group textarea:focus, .care-form-group input[type="text"]:focus {
  background: #FFFFFF;
  border-color: #0068FF;
  box-shadow: 0 0 0 3px rgba(0, 104, 255, 0.1);
}
.btn-submit-care-log {
  margin-top: 4px;
  background: linear-gradient(135deg, #0068FF 0%, #0099FF 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 104, 255, 0.3);
  transition: all 0.2s ease;
}
.btn-submit-care-log:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(0, 104, 255, 0.4);
}

/* Timeline */
.care-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  max-height: 440px;
  padding-right: 4px;
}
.timeline-entry {
  display: flex;
  gap: 12px;
  position: relative;
  padding-bottom: 12px;
  border-bottom: 1px dashed #E2E8F0;
}
.timeline-entry:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.timeline-icon-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #EFF6FF;
  color: #0068FF;
  border: 1px solid #BFDBFE;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.timeline-body {
  flex: 1;
}
.timeline-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}
.timeline-type-lbl {
  font-size: 11px;
  font-weight: 700;
  color: #0F172A;
}
.timeline-time {
  font-size: 9.5px;
  color: #94A3B8;
}
.timeline-author {
  font-size: 9.5px;
  color: #0068FF;
  font-weight: 600;
  margin-bottom: 3px;
}
.timeline-note-text {
  font-size: 11px;
  line-height: 1.45;
  color: #334155;
  background: #F8FAFC;
  padding: 8px 10px;
  border-radius: 8px;
  border-left: 3px solid #0068FF;
}
.timeline-tag {
  display: inline-block;
  margin-top: 4px;
  font-size: 9px;
  font-weight: 700;
  color: #059669;
  background: #ECFDF5;
  padding: 2px 6px;
  border-radius: 4px;
}

/* --- ADMIN MODULES ENHANCEMENTS --- */
.admin-major-card {
  transition: all 0.2s ease;
}
.admin-major-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08) !important;
  border-color: #CBD5E1 !important;
}

/* ==========================================================================
   CHỨC NĂNG QUẢN LÝ SỰ KIỆN, WORKSHOP & NGÀY HỘI OPEN DAY (EXECUTIVE SAAS)
   ========================================================================== */
.event-mgmt-panel {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 6px 20px -6px rgba(15, 23, 42, 0.04);
}

/* Header Wrap */
.event-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #F1F5F9;
  flex-wrap: wrap;
}

.event-title-block h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0F172A;
  margin: 6px 0 4px 0;
  letter-spacing: -0.02em;
}

.event-title-block p {
  font-size: 12.5px;
  color: #64748B;
  margin: 0;
  line-height: 1.5;
  max-width: 820px;
}

.event-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  color: #1D4ED8;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

.pulse-dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseLiveDot 1.8s infinite;
}

@keyframes pulseLiveDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.event-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-indigo-sm {
  background: #4F46E5;
  color: #FFFFFF;
  border: none;
  font-size: 11.5px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 1px 2px rgba(79, 70, 229, 0.2);
}
.btn-indigo-sm:hover {
  background: #4338CA;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
}

/* KPI Cards Grid */
.event-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 1200px) {
  .event-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .event-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.event-kpi-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 16px 18px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.event-kpi-card:hover {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.event-kpi-card.highlight-card {
  background: #F0F7FF;
  border-color: #BFDBFE;
}

.kpi-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.event-kpi-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-kpi-icon.icon-blue { background: #DBEAFE; color: #1D4ED8; }
.event-kpi-icon.icon-indigo { background: #E0E7FF; color: #4338CA; }
.event-kpi-icon.icon-green { background: #DCFCE7; color: #15803D; }
.event-kpi-icon.icon-amber { background: #FEF3C7; color: #B45309; }

.event-kpi-card .kpi-number {
  font-size: 22px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.2;
  margin-bottom: 8px;
}

.event-kpi-card .kpi-number span {
  font-size: 13px;
  font-weight: 500;
  color: #64748B;
}

.event-kpi-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-size: 11px;
}

.event-kpi-pill {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.event-kpi-pill.pill-blue { background: #DBEAFE; color: #1E40AF; }
.event-kpi-pill.pill-green { background: #DCFCE7; color: #166534; }
.event-kpi-pill.pill-growth { background: #DEF7EC; color: #046C4E; }
.event-kpi-pill.pill-scholarship { background: #FEF3C7; color: #92400E; }

.event-progress-wrap {
  width: 100%;
  height: 5px;
  background: #E2E8F0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.event-progress-bar {
  height: 100%;
  background: #2563EB;
  border-radius: 4px;
}

/* Event Filter Toolbar */
.event-filter-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 9px;
  padding: 10px 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.event-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 7px;
  padding: 6px 12px;
  flex: 1;
  min-width: 260px;
  max-width: 440px;
}

.event-search-box input {
  border: none;
  outline: none;
  font-size: 12px;
  color: #0F172A;
  width: 100%;
  background: transparent;
}

.event-filter-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.event-filter-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-filter-item .filter-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
}

.event-filter-item select {
  font-size: 11.5px;
  padding: 5px 9px;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  background: #FFFFFF;
  color: #0F172A;
  outline: none;
  cursor: pointer;
}

/* Table Styling */
.event-table th {
  background: #F8FAFC !important;
  color: #475569 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 11px 14px !important;
  border-bottom: 1px solid #E2E8F0 !important;
}

.event-table td {
  padding: 14px 14px !important;
  vertical-align: middle !important;
  border-bottom: 1px solid #F1F5F9 !important;
}

.event-data-row:hover {
  background: #F8FAFC !important;
}

/* Title Cell */
.event-title-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.event-name-text {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.35;
}

.event-desc-sub {
  font-size: 11.5px;
  color: #64748B;
  line-height: 1.4;
}

.event-major-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  width: fit-content;
  margin-bottom: 2px;
}

.badge-oto { background: #EFF6FF; color: #1D4ED8; border: 1px solid #DBEAFE; }
.badge-robot { background: #F5F3FF; color: #6D28D9; border: 1px solid #EDE9FE; }
.badge-design { background: #FDF2F8; color: #BE185D; border: 1px solid #FCE7F3; }
.badge-logistics { background: #ECFEFF; color: #0E7490; border: 1px solid #CFFAFE; }

/* Schedule Cell */
.event-schedule-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
}

.event-time-row {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #0F172A;
}

.event-place-row {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748B;
}

.event-bus-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  margin-top: 1px;
}

/* Partner Cell */
.event-partner-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}

.partner-avatar-group {
  display: flex;
  align-items: center;
}

.partner-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 800;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
  margin-left: -5px;
}
.partner-badge:first-child { margin-left: 0; }
.partner-vf { background: #E11D48; }
.partner-thaco { background: #1E40AF; }
.partner-samsung { background: #1D4ED8; }
.partner-siemens { background: #0284C7; }
.partner-vng { background: #EA580C; }
.partner-fpt { background: #F59E0B; }
.partner-tancang { background: #0D9488; }
.partner-viettel { background: #E11D48; }

.partner-info {
  display: flex;
  flex-direction: column;
}

.partner-info strong {
  font-size: 12px;
  color: #0F172A;
}

.partner-info small {
  font-size: 10.5px;
  color: #64748B;
}

/* Ticket Cell */
.event-ticket-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ticket-number-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
}

.ticket-registered strong {
  color: #0F172A;
  font-weight: 700;
}

.ticket-percent {
  font-weight: 700;
  color: #2563EB;
  font-size: 11px;
}

.table-progress-track {
  width: 100%;
  height: 5px;
  background: #E2E8F0;
  border-radius: 3px;
  overflow: hidden;
}

.table-progress-fill {
  height: 100%;
  border-radius: 3px;
}
.table-progress-fill.fill-blue { background: #2563EB; }
.table-progress-fill.fill-orange { background: #EA580C; }

.ticket-remain {
  font-size: 10.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Stat Cell */
.event-stat-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11.5px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.stat-lbl {
  color: #64748B;
  font-size: 10.5px;
}

.stat-sub {
  font-size: 10px;
  color: #059669;
  font-weight: 600;
  margin-top: 2px;
}

/* Status Tags */
.event-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.event-status-tag .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.tag-open {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #BBF7D0;
}
.tag-open .status-dot { background: #16A34A; }

.tag-urgent {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
}
.tag-urgent .status-dot { background: #D97706; }

.tag-closed {
  background: #F1F5F9;
  color: #64748B;
  border: 1px solid #E2E8F0;
}
.tag-closed .status-dot { background: #94A3B8; }

/* Actions Flex */
.event-actions-flex {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.btn-icon-sm {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-icon-sm:hover {
  background: #EFF6FF;
  border-color: #93C5FD;
  color: #1D4ED8;
}

/* ==========================================================================
   INTERACTIVE REAL-TIME LIVE MONITOR GRID (SCANNER + FEED)
   ========================================================================== */
.event-live-monitor-grid {
  display: grid;
  grid-template-columns: 46% 54%;
  gap: 16px;
  margin-top: 24px;
}

@media (max-width: 992px) {
  .event-live-monitor-grid {
    grid-template-columns: 1fr;
  }
}

.live-scanner-card,
.live-stream-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.monitor-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.monitor-title-box h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
  margin: 4px 0 0 0;
}

.live-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  font-weight: 700;
  color: #059669;
  background: #ECFDF5;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

.live-pulse-badge .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseLiveDot 1.8s infinite;
}

.feed-badge {
  display: inline-flex;
  font-size: 9.5px;
  font-weight: 700;
  color: #2563EB;
  background: #EFF6FF;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

.scanner-device-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 600;
  color: #15803D;
  background: #DCFCE7;
  padding: 3px 7px;
  border-radius: 5px;
}

.btn-refresh-feed {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-refresh-feed:hover {
  background: #F1F5F9;
  color: #0F172A;
}

/* Scanner Viewfinder Simulation */
.scanner-viewfinder-box {
  background: #0B1329;
  border-radius: 9px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
}

.viewfinder-frame {
  height: 120px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, rgba(11, 19, 41, 0.6) 100%);
}

.viewfinder-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2.5px solid #10B981;
}
.viewfinder-corner.tl { top: 6px; left: 6px; border-right: none; border-bottom: none; }
.viewfinder-corner.tr { top: 6px; right: 6px; border-left: none; border-bottom: none; }
.viewfinder-corner.bl { bottom: 6px; left: 6px; border-right: none; border-top: none; }
.viewfinder-corner.br { bottom: 6px; right: 6px; border-left: none; border-top: none; }

.viewfinder-laser-line {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: #10B981;
  box-shadow: 0 0 8px #10B981, 0 0 16px rgba(16, 185, 129, 0.6);
  animation: laserScan 2.4s ease-in-out infinite alternate;
}

@keyframes laserScan {
  0% { top: 12px; opacity: 0.8; }
  50% { opacity: 1; }
  100% { top: 105px; opacity: 0.8; }
}

.viewfinder-tip {
  position: absolute;
  bottom: 8px;
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Last Scanned Attendee Card */
.last-scanned-card {
  background: #1E293B;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 12px;
  transition: all 0.3s ease;
}

.scanned-badge-ok {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  color: #10B981;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.scanned-person-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.scanned-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #2563EB;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scanned-meta {
  flex: 1;
}

.scanned-name-code {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scanned-name-code strong {
  font-size: 13.5px;
  color: #FFFFFF;
}

.ticket-code-pill {
  font-size: 9.5px;
  font-weight: 700;
  background: #334155;
  color: #94A3B8;
  padding: 1px 6px;
  border-radius: 4px;
}

.scanned-school-sub {
  font-size: 11px;
  color: #94A3B8;
  margin-top: 2px;
}

.scanned-gift-box {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11px;
  color: #34D399;
  display: flex;
  align-items: center;
  gap: 6px;
}

.scanner-btn-group {
  margin-top: 12px;
}

.btn-full-width {
  width: 100%;
  justify-content: center;
  padding: 8px;
}

/* Live Stream Feed */
.live-feed-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 290px;
  overflow-y: auto;
  padding-right: 4px;
}

.feed-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  transition: all 0.18s ease;
}

.feed-item:hover {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.feed-time-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 44px;
}

.feed-time-badge {
  font-size: 11px;
  font-weight: 700;
  color: #0F172A;
  background: #E2E8F0;
  padding: 2px 5px;
  border-radius: 4px;
}

.feed-ago {
  font-size: 9px;
  color: #94A3B8;
}

.feed-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  flex-shrink: 0;
}

.feed-content-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.feed-line-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.feed-line-top strong {
  font-size: 12.5px;
  color: #0F172A;
}

.feed-school-pill {
  font-size: 10px;
  font-weight: 600;
  color: #475569;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  padding: 1px 6px;
  border-radius: 4px;
}

.feed-verified-tag {
  font-size: 9.5px;
  font-weight: 700;
  color: #059669;
  background: #DCFCE7;
  padding: 1px 5px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.feed-line-mid {
  font-size: 11px;
  color: #64748B;
}

.feed-line-mid strong {
  color: #334155;
}

.feed-gift-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: #059669;
  font-weight: 600;
}

/* Modals Styling */
.event-attendees-modal-card {
  max-width: 860px !important;
  width: 90% !important;
}

.event-create-modal-card {
  max-width: 680px !important;
  width: 90% !important;
}

.event-scanner-modal-card {
  max-width: 520px !important;
  width: 90% !important;
}

.event-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.event-form-grid .span-2 {
  grid-column: span 2;
}

.attendees-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.attendees-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #CBD5E1;
  border-radius: 7px;
  padding: 6px 12px;
  flex: 1;
  max-width: 320px;
}

.attendees-search input {
  border: none;
  outline: none;
  font-size: 12px;
  width: 100%;
}

.attendees-actions {
  display: flex;
  gap: 8px;
}

/* Large Scanner Viewfinder in Modal */
.scanner-large-viewport {
  background: #0B1329;
  border-radius: 12px;
  padding: 24px;
  position: relative;
  margin-bottom: 16px;
}

.large-viewfinder {
  height: 200px;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(11, 19, 41, 0.8) 100%);
}

.large-laser-sweep {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 3px;
  background: #10B981;
  box-shadow: 0 0 10px #10B981, 0 0 20px rgba(16, 185, 129, 0.7);
  animation: largeLaserSweep 2.2s ease-in-out infinite alternate;
}

@keyframes largeLaserSweep {
  0% { top: 16px; }
  100% { top: 180px; }
}

.scanner-live-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  font-weight: 700;
  color: #10B981;
  background: rgba(0, 0, 0, 0.6);
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.scanner-quick-result {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 12px 16px;
  text-align: left;
}

.scanner-quick-result h4 {
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  margin: 6px 0 2px 0;
}

.scanner-quick-result p {
  font-size: 12px;
  color: #64748B;
  margin: 0;
}

.scan-status-pill.success {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  color: #15803D;
  background: #DCFCE7;
  padding: 2px 7px;
  border-radius: 4px;
}

