/* ==========================================================================
   CHUNGKHOANSO.NET — DASHBOARD LANDING PAGE
   LIGHT THEME (ĐỊNH DẠNG TRẮNG HIỆN ĐẠI, TINH TẾ)
   ========================================================================== */

:root {
  /* Brand Gradient & Colors */
  --color-indigo: #2510ea;
  --color-purple: #6d00eb;
  --color-magenta: #b800b4;
  --color-pink: #d8008f;
  --color-orange: #f53d00;
  --color-amber: #ff9500;
  --color-securities: #990099;

  --grad-primary: linear-gradient(135deg, #2510ea 0%, #6d00eb 26%, #b800b4 52%, #f53d00 82%, #ff9500 100%);
  --grad-primary-hover: linear-gradient(135deg, #3721f5 0%, #7e18f7 26%, #cb0ec7 52%, #ff4f17 82%, #ffa31a 100%);
  --grad-text: linear-gradient(135deg, #6d00eb 0%, #b800b4 40%, #ea3b00 78%, #f59e0b 100%);
  --grad-subtle: linear-gradient(135deg, rgba(109, 0, 235, 0.05) 0%, rgba(245, 61, 0, 0.04) 100%);
  --grad-border: linear-gradient(135deg, rgba(109, 0, 235, 0.3) 0%, rgba(184, 0, 180, 0.25) 50%, rgba(245, 61, 0, 0.3) 100%);

  /* Light Theme Palette */
  --bg-main: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-muted: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-nav: rgba(255, 255, 255, 0.94);

  --border-light: #f1f5f9;
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-focus: #b800b4;

  /* Typography Colors */
  --text-main: #0f172a;       /* Slate 900 */
  --text-heading: #1e293b;    /* Slate 800 */
  --text-body: #334155;       /* Slate 700 */
  --text-muted: #64748b;      /* Slate 500 */
  --text-light: #94a3b8;      /* Slate 400 */

  /* Dimensions & Spacing */
  --max-w: 1240px;
  --nav-h: 76px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows (Soft & Premium) */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.07), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 35px -4px rgba(15, 23, 42, 0.09), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
  --shadow-glow: 0 10px 30px -5px rgba(109, 0, 235, 0.35);
  --shadow-orange-glow: 0 10px 30px -5px rgba(245, 61, 0, 0.35);
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-body);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Subtle Ambient Gradient Blobs for Clean Light Background */
body::before {
  content: '';
  position: fixed;
  top: -15%;
  right: -5%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(109, 0, 235, 0.06) 0%, rgba(184, 0, 180, 0.03) 40%, rgba(255, 255, 255, 0) 70%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  bottom: -10%;
  left: -5%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(245, 61, 0, 0.05) 0%, rgba(255, 149, 0, 0.03) 40%, rgba(255, 255, 255, 0) 70%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Section Common */
.section {
  padding: 88px 0;
  position: relative;
}

.section-subtle {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 52px auto;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  color: #be185d;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.badge-pill-brand {
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  color: #6d28d9;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.025em;
}

.section-subtitle {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ==========================================================================
   NAVIGATION BAR (LIGHT THEME)
   ========================================================================== */
/* ==========================================================================
   NAVIGATION BAR — NỔI BẬT & ĐẲNG CẤP
   ========================================================================== */
@keyframes nav-glow {
  0%, 100% {
    box-shadow: 0 4px 22px rgba(245, 61, 0, 0.42), 0 2px 10px rgba(109, 0, 235, 0.35);
  }
  50% {
    box-shadow: 0 6px 30px rgba(245, 61, 0, 0.65), 0 3px 16px rgba(109, 0, 235, 0.5);
  }
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1.5px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 4px 24px -2px rgba(15, 23, 42, 0.06), 0 2px 8px -2px rgba(109, 0, 235, 0.05);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.1), 0 2px 8px rgba(109, 0, 235, 0.06);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2510ea 0%, #6d00eb 30%, #b800b4 65%, #f53d00 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px -2px rgba(109, 0, 235, 0.45);
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand-wrapper:hover .brand-mark {
  transform: scale(1.05);
  box-shadow: 0 6px 22px rgba(109, 0, 235, 0.6);
}

.brand-name {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0f172a;
}

.brand-name-accent {
  background: linear-gradient(135deg, #6d00eb 0%, #b800b4 40%, #ea3b00 78%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-brand {
  margin-bottom: 16px;
}

.partner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16);
  flex-shrink: 0;
}

.partner-dot.closed {
  background: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 1.02rem;
  font-weight: 700;
  color: #334155;
  position: relative;
  padding: 10px 4px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #6d00eb;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #6d00eb 0%, #b800b4 50%, #f53d00 100%);
  border-radius: 3px;
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 9999px;
  background: linear-gradient(100deg, #2510ea 0%, #6d00eb 24%, #b800b4 52%, #f53d00 86%, #ff6a00 100%);
  background-size: 140% 100%;
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 22px rgba(245, 61, 0, 0.42), 0 2px 10px rgba(109, 0, 235, 0.35);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  animation: nav-glow 3s infinite ease-in-out;
}

.nav-cta-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 32px rgba(245, 61, 0, 0.65), 0 4px 18px rgba(109, 0, 235, 0.5);
  color: #ffffff !important;
}

.nav-cta-btn svg {
  flex-shrink: 0;
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 26px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger-btn span {
  width: 100%;
  height: 3px;
  background: var(--text-main);
  border-radius: 3px;
  transition: var(--transition);
}

.hamburger-btn.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ==========================================================================
   BUTTONS & COMMON UI (LIGHT THEME)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.98rem;
  transition: var(--transition);
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: var(--grad-primary-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-orange-glow);
}

.btn-outline {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--text-heading);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--color-purple);
  color: var(--color-purple);
  background: #fbfbfe;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-zalo {
  background: #0068ff;
  color: #ffffff;
  box-shadow: 0 6px 20px -3px rgba(0, 104, 255, 0.4);
}

.btn-zalo:hover {
  background: #0056d6;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -3px rgba(0, 104, 255, 0.5);
}

.btn-lg {
  padding: 16px 34px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* ==========================================================================
   HERO SECTION (TRANG CHỦ - LIGHT THEME)
   ========================================================================== */
.hero-section {
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: 76px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 52px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

.partner-text {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--color-orange);
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero-desc {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 30px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

/* Hero Stats Row */
.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  text-align: left;
}

.stat-num {
  font-size: clamp(1.3rem, 1.75vw, 1.75rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 4px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Hero Visual / Dashboard Preview */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.hero-visual-glow {
  position: absolute;
  inset: -15px;
  background: var(--grad-primary);
  border-radius: var(--radius-xl);
  opacity: 0.12;
  filter: blur(40px);
  z-index: 0;
}

/* Floating Badges on Hero Visual */
.float-card {
  position: absolute;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
  animation: float 4s ease-in-out infinite alternate;
}

@keyframes float {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-10px); }
}

.float-card-1 {
  top: -44px;
  left: -44px;
}

.float-card-2 {
  bottom: -44px;
  right: -44px;
  animation-delay: -2s;
}

.float-card {
  max-width: 268px;
  padding: 10px 15px;
  line-height: 1.3;
}

.float-card .float-title { font-size: 0.8rem; }
.float-card .float-desc { font-size: 0.7rem; }
.float-card .float-icon { width: 32px; height: 32px; }

.float-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.float-icon-orange {
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #fed7aa;
}

.float-icon-purple {
  background: #faf5ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

.float-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-main);
}

.float-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FOOTER (LIGHT THEME)
   ========================================================================== */
.footer {
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  padding: 56px 0 28px 0;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand-desc {
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 20px;
}

.footer-col-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list a {
  color: var(--text-muted);
  font-weight: 600;
}

.footer-links-list a:hover {
  color: var(--color-purple);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-disclaimer {
  max-width: 800px;
  line-height: 1.55;
  margin-bottom: 16px;
  color: #94a3b8;
  font-size: 0.8rem;
}

/* ==========================================================================
   FLOATING QUICK ACTIONS & TOAST
   ========================================================================== */
.floating-actions {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

/* chỉ hiện sau khi người đọc đã cuộn qua hero (trước đây nút Zalo đè lên mô tả trên mobile) */
.floating-actions.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  color: #ffffff;
  font-size: 1.35rem;
  position: relative;
}

.float-btn:hover {
  transform: scale(1.12);
}

.float-btn-zalo {
  background: #0068ff;
}

.float-btn-zalo::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-full);
  border: 2px solid #0068ff;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.float-btn-top {
  background: #ffffff;
  color: var(--text-heading);
  border: 1px solid #cbd5e1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.float-btn-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ==========================================================================
   DASHBOARD MOCK (HERO VISUAL)
   ========================================================================== */
.dash-mock {
  position: relative;
  z-index: 1;
  transform: perspective(1400px) rotateY(-3.5deg) rotateX(1.5deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #e6e8f0;
  background: #ffffff;
  box-shadow: 0 24px 60px -18px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(15, 23, 42, 0.04);
}

.dash-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #fbfbfe, #f5f6fb);
  border-bottom: 1px solid #eceef6;
}

.dash-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
  animation: livePulse 2.4s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15); }
  50%      { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.04); }
}

.dash-brand {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.dash-tabs {
  margin-left: auto;
  display: flex;
  gap: 4px;
}

.dash-tab {
  font-size: 0.68rem;
  font-weight: 700;
  color: #8b93a7;
  padding: 4px 9px;
  border-radius: 999px;
}

.dash-tab.active {
  background: #ffffff;
  color: var(--color-purple);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.dash-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 6px;
}

.dash-sym {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: 0.02em;
}

.dash-ex {
  font-size: 0.6rem;
  font-weight: 800;
  color: #6b7280;
  background: #f1f3f9;
  border-radius: 5px;
  padding: 2px 6px;
  letter-spacing: 0.06em;
}

.dash-chips {
  display: flex;
  gap: 3px;
  margin-left: 6px;
}

.dash-chip {
  font-size: 0.64rem;
  font-weight: 800;
  color: #8b93a7;
  padding: 3px 7px;
  border-radius: 6px;
}

.dash-chip.active {
  background: #eef0fb;
  color: var(--color-purple);
}

.dash-legend {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

.lg {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  color: #8b93a7;
}

.lg-line {
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: #f59e0b;
  display: inline-block;
}

.lg-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
  display: inline-block;
}

.dash-plot {
  padding: 0 8px;
}

#heroChart {
  width: 100%;
  height: 178px;
  display: block;
}

.dash-strips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 6px 14px 0;
}

.strip {
  background: #f8f9fd;
  border-radius: 8px;
  padding: 6px 8px;
}

.strip-label {
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #99a1b3;
  display: block;
  margin-bottom: 2px;
}

.spark {
  width: 100%;
  height: 18px;
  display: block;
}

.spark polyline {
  fill: none;
  stroke: #a78bfa;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.dash-caption {
  text-align: left;
  font-size: 0.58rem;
  font-weight: 700;
  color: #b6bccb;
  padding: 6px 16px 10px;
  letter-spacing: 0.04em;
}

.hero-visual-wrapper:hover .dash-mock {
  transform: perspective(1400px) rotateY(0deg) rotateX(0deg) translateY(-4px);
}

@media (max-width: 1100px) {
  .dash-mock {
    transform: none;
  }
}

/* candles */
.cndl { animation: cndlIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }

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

.ma-line {
  fill: none;
  stroke: #f59e0b;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: drawMa 1.6s ease-out 0.45s forwards;
}

@keyframes drawMa {
  to { stroke-dashoffset: 0; }
}

/* ==========================================================================
   FEATURES GRID
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 44px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-primary);
  color: #ffffff;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(109, 0, 235, 0.25);
}

.feature-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   TRUST STRIP (MINH BẠCH DỮ LIỆU)
   ========================================================================== */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 26px;
}

.trust-item {
  background: #ffffff;
  padding: 18px 20px;
}

.trust-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 6px;
}

.trust-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.trust-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   FINAL CTA (BẮT ĐẦU TRONG 30 GIÂY + QR)
   ========================================================================== */
.final-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  background: linear-gradient(135deg, #faf5ff 0%, #fff7ed 100%);
  border: 1px solid #e9d5ff;
  border-radius: var(--radius-xl);
  padding: 40px 44px;
  position: relative;
  overflow: hidden;
}

.final-cta::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 0, 180, 0.14), rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.final-cta-main {
  position: relative;
  z-index: 1;
}

.final-cta h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-main);
  margin: 14px 0 22px;
  letter-spacing: -0.02em;
}

.steps-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 26px;
}

.step-i {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-heading);
}

.step-i-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1.5px solid #c4b5fd;
  color: var(--color-purple);
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* pulsing glow on the main CTA */
.btn-glow {
  position: relative;
  animation: cta-glow 2.4s ease-in-out infinite;
}

@keyframes cta-glow {
  0%, 100% { box-shadow: 0 8px 24px -6px rgba(109, 0, 235, 0.45); }
  50%      { box-shadow: 0 10px 34px -4px rgba(245, 61, 0, 0.55); }
}

.final-cta-note {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 560px;
  margin: -10px 0 20px;
}

.final-cta-qr {
  position: relative;
  z-index: 1;
  text-align: center;
}

.qr-frame {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: var(--shadow-md);
  width: 152px;
}

.qr-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

.qr-caption {
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  max-width: 152px;
}

/* ==========================================================================
   STICKY BOTTOM CTA BAR
   ========================================================================== */
.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 140%);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 12px 10px 18px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-full);
  box-shadow: 0 16px 40px -12px rgba(15, 23, 42, 0.3);
  z-index: 1200;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.sticky-cta.show {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-cta-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sticky-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16);
  flex-shrink: 0;
}

.sticky-dot.closed {
  background: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.18);
}

.sticky-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.sticky-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.2;
}

.sticky-btn {
  white-space: nowrap;
}

/* ==========================================================================
   LETTER SECTION (THƯ NGỎ)
   ========================================================================== */
.letter-card {
  display: grid;
  grid-template-columns: 288px 1fr;
  gap: 48px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.letter-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--grad-primary);
}

.letter-portrait {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.letter-avatar-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid #ffffff;
  box-shadow: 0 16px 32px -12px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(15, 23, 42, 0.06);
  margin-bottom: 14px;
  background: #0f172a;
}

.letter-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.letter-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.letter-role {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-purple);
}

.letter-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.letter-cta {
  border-radius: var(--radius-full);
}

.letter-body {
  font-size: 1.03rem;
  line-height: 1.8;
  color: var(--text-body);
}

.letter-body p {
  margin-bottom: 18px;
}

.letter-lead {
  font-size: 1.13rem;
  line-height: 1.75;
  color: var(--text-heading);
}

.letter-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 20px;
  margin: 26px 0 30px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
}

.letter-point {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-purple);
}

.letter-sign {
  padding-left: 22px;
  border-left: 3px solid var(--border-subtle);
}

.letter-sign-close {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-style: italic;
}

.letter-sign-name {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 2px;
}

.letter-sign-role {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats-row {
    max-width: 600px;
    margin: 0 auto;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .letter-card {
    grid-template-columns: 230px 1fr;
    gap: 32px;
    padding: 36px;
  }
}

@media (max-width: 900px) {
  .dash-tabs { display: none; }
  .dash-top { justify-content: flex-end; }
  .float-card-1 { top: -26px; left: -10px; }
  .float-card-2 { bottom: -26px; right: -8px; }
  .float-card { max-width: 220px; padding: 8px 12px; }
  .float-card .float-title { font-size: 0.74rem; }
  .float-card .float-desc { font-size: 0.64rem; }
}

@media (max-width: 760px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .letter-card {
    grid-template-columns: 1fr;
    padding: 28px 22px;
  }
  .letter-portrait {
    align-items: center;
    text-align: center;
  }
  .letter-avatar-wrap {
    max-width: 220px;
  }
  .letter-points {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .final-cta {
    grid-template-columns: 1fr;
    padding: 30px 24px;
    text-align: center;
    gap: 28px;
  }
  .steps-inline {
    justify-content: center;
  }
  .final-cta-qr {
    margin: 0 auto;
  }
  .qr-caption {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 860px) {
  .nav-links, .nav-cta-btn {
    display: none;
  }
  .letter-card {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 28px 22px;
  }
  .letter-portrait {
    align-items: center;
    text-align: center;
  }
  .letter-avatar-wrap {
    width: 220px;
    max-width: 100%;
  }
  .letter-cta {
    margin: 0 auto;
  }
  .letter-points {
    grid-template-columns: 1fr;
  }
  .hamburger-btn {
    display: flex;
  }
  .mobile-menu-drawer {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform: translateY(-120%);
    transition: transform 0.4s ease;
    z-index: 999;
  }
  .mobile-menu-drawer.open {
    transform: translateY(0);
  }
  .mobile-nav-link {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
  }
  .hero-title {
    font-size: 2.6rem;
  }
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 760px) {
  /* khi thanh sticky CTA hiện, đẩy nút nổi lên trên để không đè nhau */
  body.sticky-on .floating-actions {
    bottom: 92px;
  }
}

@media (max-width: 580px) {
  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .float-card-1 {
    left: 4px;
  }
  .float-card-2 {
    right: 4px;
  }
}
