/* ═══════════════════════════════════════════════════════════════════════════
   NTCK · INDEX-V6 — Scroll Storytelling thay Demo Stepper tĩnh
   Pin sticky stage, scrub qua 4 steps, mỗi step có mockup demo riêng
   Style: light theme đồng bộ V2 (KHÔNG dark như V3)
   ═════════════════════════════════════════════════════════════════════════ */

/* ── V6 STORY SECTION ─────────────────────────────────────────────────── */
/* Desktop pin: JS dùng ScrollTrigger.pin:true (KHONG CSS sticky vì body{overflow-x:hidden} phá sticky)
   Mobile: JS restructure thành blocks 90vh + IntersectionObserver */
.v6-story {
  position: relative;
  background: linear-gradient(180deg, #f9fafb 0%, #ecfdf5 50%, #f9fafb 100%);
  isolation: isolate; /* tạo stacking context riêng → tránh z-index leak từ section khác */
  /* min-height removed - ScrollTrigger pinSpacing auto-compute (end:'+=280%') */
}
.v6-story::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.08), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(251, 191, 36, 0.06), transparent 50%);
  pointer-events: none;
}

.v6-story-stage {
  /* Pin: ScrollTrigger pin:true forces position:fixed (desktop) hoặc
     translate3d (mobile pinType:transform). Cần background EXPLICIT để
     khi pin không bị transparent → tránh marquee/sections phía sau đè lên. */
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #f9fafb 0%, #ecfdf5 50%, #f9fafb 100%);
  z-index: 2;
}
.v6-story-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-12);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 1279px) {
  .v6-story-inner { grid-template-columns: 1fr; gap: var(--space-8); }
}

/* Section header trên stage */
.v6-story-header {
  position: absolute;
  top: 110px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
}
.v6-story-header .v6sh-eyebrow {
  display: inline-block;
  background: rgba(16, 185, 129, 0.1);
  color: var(--green-700);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.v6-story-header h2 {
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.01em;
}
@media (max-width: 1279px) { .v6-story-header { top: 90px; padding: 0 var(--space-4); width: 100%; } }

/* ─── LEFT — text content ─────────────────────────────────────────── */
.v6-story-content {
  position: relative;
  min-height: 480px;
}
.v6-step-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}
.v6-step-text.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.v6-step-text .v6-num {
  font-size: clamp(120px, 14vw, 220px);
  font-weight: 900;
  line-height: 0.9;
  color: rgba(16, 185, 129, 0.08);
  letter-spacing: -0.06em;
  position: absolute;
  top: -20px; right: -20px;
  z-index: 0;
  pointer-events: none;
}
.v6-step-text .v6-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: var(--white);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  width: max-content;
}
.v6-step-text h3 {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--gray-900);
  margin-bottom: var(--space-5);
  position: relative;
  z-index: 1;
}
.v6-step-text h3 .hl {
  background: linear-gradient(135deg, var(--green-600), var(--gold-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}
.v6-step-text p {
  font-size: var(--text-lg);
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: var(--space-5);
  position: relative;
  z-index: 1;
}
.v6-step-text .v6-feats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-5);
}
.v6-step-text .v6-feats span {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--green-800);
}
.v6-step-text .v6-meta {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px dashed rgba(16, 185, 129, 0.3);
}
.v6-step-text .v6-meta-item {
  flex: 1;
}
.v6-step-text .v6-meta-num {
  font-size: var(--text-xl);
  font-weight: 900;
  color: var(--green-700);
  letter-spacing: -0.02em;
}
.v6-step-text .v6-meta-lbl {
  font-size: var(--text-xs);
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

/* ─── RIGHT — mockup demo container ───────────────────────────── */
.v6-story-mockup {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.v6-mockup {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.92) translateY(40px);
  transition: opacity 0.55s ease, transform 0.6s var(--ease-out);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.v6-mockup.active { opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; }

.v6-mockup-frame {
  width: 100%;
  max-width: 560px;
  background: var(--white);
  border-radius: 16px;
  box-shadow:
    0 30px 80px rgba(16, 185, 129, 0.15),
    0 20px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}
.v6-mockup-bar {
  background: #f3f4f6;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #e5e7eb;
}
.v6-mockup-bar .dots { display: flex; gap: 6px; }
.v6-mockup-bar .dots span { width: 10px; height: 10px; border-radius: 50%; }
.v6-mockup-bar .dots span:nth-child(1) { background: #ef4444; }
.v6-mockup-bar .dots span:nth-child(2) { background: #fbbf24; }
.v6-mockup-bar .dots span:nth-child(3) { background: #10b981; }
.v6-mockup-bar .url {
  font-size: 11px;
  color: #6b7280;
  font-family: 'JetBrains Mono', monospace;
  background: var(--white);
  padding: 4px 10px;
  border-radius: 6px;
  flex: 1;
  text-align: center;
}

/* MOCK 1: Google Sheet với menu NTCK ─────────────────────────────────── */
.v6-mock-sheet {
  padding: 0;
}
.v6-mock-sheet .sheet-menubar {
  background: #fff;
  padding: 4px 12px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: #6b7280;
}
.v6-mock-sheet .sheet-menubar span { padding: 4px 6px; }
.v6-mock-sheet .sheet-menubar .menu-ntck {
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: white;
  border-radius: 4px;
  font-weight: 700;
  padding: 4px 10px;
  box-shadow: 0 2px 6px rgba(16,185,129,0.3);
  animation: menu-pulse 2s ease-in-out infinite;
}
@keyframes menu-pulse {
  0%, 100% { box-shadow: 0 2px 6px rgba(16,185,129,0.3); }
  50% { box-shadow: 0 4px 14px rgba(16,185,129,0.55); }
}
.v6-mock-sheet .sheet-toolbar {
  background: #f9fafb;
  padding: 8px 12px;
  display: flex;
  gap: 6px;
  border-bottom: 1px solid #e5e7eb;
}
.v6-mock-sheet .sheet-toolbar span {
  width: 22px; height: 22px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.v6-mock-sheet .sheet-grid {
  display: grid;
  grid-template-columns: 40px repeat(5, 1fr);
  font-size: 11px;
}
.v6-mock-sheet .sheet-grid > div {
  padding: 6px 8px;
  border-right: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  font-family: 'JetBrains Mono', monospace;
}
.v6-mock-sheet .sheet-grid .sheet-h {
  background: #f9fafb;
  font-weight: 700;
  color: #6b7280;
  text-align: center;
  border-bottom: 2px solid #d1d5db;
}
.v6-mock-sheet .sheet-grid .sheet-r {
  background: #f9fafb;
  font-weight: 700;
  color: #6b7280;
  text-align: center;
  border-right: 2px solid #d1d5db;
}
.v6-mock-sheet .sheet-grid .highlighted {
  background: rgba(16, 185, 129, 0.08);
  color: var(--green-700);
  font-weight: 600;
}
.v6-mock-sheet .sheet-sidebar-hint {
  position: absolute;
  bottom: 18px; right: 14px;
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 8px 20px rgba(16,185,129,0.3);
  z-index: 2;
  animation: arrow-bob 1.6s ease-in-out infinite;
}
@keyframes arrow-bob {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-8px); }
}

/* MOCK 2: KW Research với 90 keywords funnel ──────────────────────────── */
.v6-mock-kw {
  padding: 16px;
}
.v6-mock-kw .kw-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f3f4f6;
}
.v6-mock-kw .kw-header .kw-input {
  flex: 1;
  background: #f9fafb;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  color: #374151;
  font-family: 'JetBrains Mono', monospace;
}
.v6-mock-kw .kw-header .kw-btn {
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
}
.v6-mock-kw .kw-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-bottom: 12px;
}
.v6-mock-kw .kw-tab {
  background: #f9fafb;
  padding: 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}
.v6-mock-kw .kw-tab.tofu { background: rgba(251, 191, 36, 0.1); color: #92400e; border-color: rgba(251, 191, 36, 0.3); }
.v6-mock-kw .kw-tab.mofu { background: rgba(16, 185, 129, 0.1); color: var(--green-700); border-color: rgba(16, 185, 129, 0.3); }
.v6-mock-kw .kw-tab.bofu { background: rgba(139, 92, 246, 0.1); color: #6d28d9; border-color: rgba(139, 92, 246, 0.3); }
.v6-mock-kw .kw-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 240px;
  overflow: hidden;
}
.v6-mock-kw .kw-row {
  display: grid;
  grid-template-columns: 1fr 60px 60px;
  align-items: center;
  padding: 6px 8px;
  background: #f9fafb;
  border-radius: 6px;
  font-size: 10px;
}
.v6-mock-kw .kw-row .kw-name { color: #374151; font-weight: 600; }
.v6-mock-kw .kw-row .kw-vol { color: #6b7280; font-family: 'JetBrains Mono', monospace; text-align: right; }
.v6-mock-kw .kw-row .kw-diff { font-weight: 700; text-align: right; }
.v6-mock-kw .kw-row .kw-diff.low { color: var(--green-700); }
.v6-mock-kw .kw-row .kw-diff.mid { color: #d97706; }
.v6-mock-kw .kw-row .kw-diff.high { color: #be123c; }
.v6-mock-kw .kw-count {
  margin-top: 10px;
  text-align: center;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: white;
  padding: 8px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 12px;
}

/* MOCK 3: AI viết bài SEO 2026 ──────────────────────────────────────── */
.v6-mock-ai {
  padding: 16px;
}
.v6-mock-ai .ai-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 11px;
}
.v6-mock-ai .ai-header .ai-dot {
  width: 8px; height: 8px;
  background: var(--green-500);
  border-radius: 50%;
  animation: ai-pulse 1.4s ease-in-out infinite;
}
@keyframes ai-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
}
.v6-mock-ai .ai-header .ai-label { color: var(--green-700); font-weight: 700; }
.v6-mock-ai .ai-header .ai-provider {
  margin-left: auto;
  background: #f9fafb;
  padding: 3px 8px;
  border-radius: 4px;
  color: #6b7280;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
}
.v6-mock-ai .ai-stream {
  background: #f9fafb;
  border-radius: 8px;
  padding: 12px;
  font-size: 11px;
  line-height: 1.6;
  color: #374151;
  font-family: 'JetBrains Mono', monospace;
  position: relative;
  max-height: 280px;
  overflow: hidden;
}
.v6-mock-ai .ai-stream::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  background: linear-gradient(to top, #f9fafb, transparent);
}
.v6-mock-ai .ai-stream .ai-h2 { color: var(--green-700); font-weight: 800; margin: 6px 0; display: block; }
.v6-mock-ai .ai-stream .ai-keyword { background: rgba(251, 191, 36, 0.2); color: #92400e; padding: 1px 4px; border-radius: 3px; }
.v6-mock-ai .ai-stream .cursor { display: inline-block; width: 6px; height: 12px; background: var(--green-500); animation: cursor-blink 0.8s steps(1) infinite; vertical-align: middle; }
@keyframes cursor-blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
.v6-mock-ai .ai-tags {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.v6-mock-ai .ai-tags span {
  background: rgba(16, 185, 129, 0.1);
  color: var(--green-700);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

/* MOCK 4: WordPress đăng bài ────────────────────────────────────────── */
.v6-mock-wp {
  padding: 16px;
}
.v6-mock-wp .wp-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f3f4f6;
}
.v6-mock-wp .wp-logo {
  width: 24px; height: 24px;
  background: #21759b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 12px;
  font-family: Georgia, serif;
}
.v6-mock-wp .wp-title { font-weight: 700; font-size: 12px; color: #1d2327; }
.v6-mock-wp .wp-status {
  margin-left: auto;
  background: rgba(16, 185, 129, 0.15);
  color: var(--green-700);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 5px;
}
.v6-mock-wp .wp-status::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--green-500);
  border-radius: 50%;
}
.v6-mock-wp .wp-featured {
  width: 100%;
  height: 80px;
  background: linear-gradient(135deg, #34d399 0%, #fbbf24 100%);
  border-radius: 8px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}
.v6-mock-wp .wp-featured::before {
  content: '🖼 AI Image · auto-generated';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
  background: rgba(0,0,0,0.15);
}
.v6-mock-wp .wp-post-title {
  font-size: 13px;
  font-weight: 800;
  color: #1d2327;
  margin-bottom: 6px;
  line-height: 1.4;
}
.v6-mock-wp .wp-meta-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}
.v6-mock-wp .wp-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #6b7280;
  padding: 5px 8px;
  background: #f9fafb;
  border-radius: 6px;
  border-left: 2px solid var(--green-500);
}
.v6-mock-wp .wp-meta-item strong { color: #1d2327; font-weight: 700; }
.v6-mock-wp .wp-meta-item .checkmark { color: var(--green-600); font-weight: 800; }

/* ─── PROGRESS DOTS + STEP LABELS ─────────────────────────────────── */
.v6-story-progress {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}
.v6-progress-dot {
  width: 56px;
  height: 4px;
  background: rgba(16, 185, 129, 0.18);
  border-radius: 100px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.v6-progress-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--green-500), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.v6-progress-dot.active { width: 100px; }
.v6-progress-dot.active::after { transform: scaleX(1); }

/* Hint scroll */
.v6-story-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  color: var(--gray-500);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  z-index: 3;
}
.v6-story-hint::after {
  content: '↓';
  font-size: 14px;
  animation: hint-bob 1.5s ease-in-out infinite;
  color: var(--green-600);
}
@keyframes hint-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ═══ MOBILE + TABLET (≤1279px) — INTERSECTION OBSERVER BLOCKS ══════════
   KHÔNG pin (pin scrub jitter trên iOS). 4 step blocks stack tự nhiên 90vh,
   IntersectionObserver activate animation khi block vào view.
   Browser native scroll = 60fps smooth, vẫn giữ phong cách storytelling. */
@media (max-width: 1279px) {

  body.v6-mode { overflow-x: hidden; }

  /* Section + stage RESET — không pin, để natural flow */
  body.v6-mode .v6-story {
    min-height: auto !important;
    padding: 0 !important;
    background: linear-gradient(180deg, #f9fafb 0%, #ecfdf5 50%, #f9fafb 100%);
  }
  body.v6-mode .v6-story-stage {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    padding: var(--space-10) 0 var(--space-6) !important;
    display: block !important;
    overflow: visible !important;
    background: transparent !important;
    z-index: auto !important;
  }

  /* Header normal flow at top */
  body.v6-mode .v6-story-header {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 0 auto var(--space-8) !important;
    padding: 0 var(--space-10) !important; /* 40px căn đều */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  body.v6-mode .v6-story-header h2 {
    font-size: 22px !important;
    line-height: 1.3 !important;
  }
  body.v6-mode .v6-story-header .v6sh-eyebrow {
    font-size: 11px !important;
    padding: 5px 12px !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 8px !important;
  }

  /* Inner: full-width container cho v6-story-blocks */
  body.v6-mode .v6-story-inner {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* BLOCKS wrapper */
  body.v6-mode .v6-story-blocks {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  /* Each step block — 90vh fill viewport (storytelling feel) */
  body.v6-mode .v6-step-block {
    min-height: 90vh;
    min-height: 90svh; /* iPhone safe-area */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    padding: var(--space-8) var(--space-10); /* 40px mỗi bên — căn đều thoáng */
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    /* Initial state: invisible, fade in khi vào view */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  body.v6-mode .v6-step-block.v6-block-active {
    opacity: 1;
    transform: translateY(0);
  }
  /* Subtle divider giữa blocks */
  body.v6-mode .v6-step-block:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0; left: 15%; right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.25), transparent);
  }

  /* Step text RESET — natural flow (KHÔNG absolute trên mobile) */
  body.v6-mode .v6-step-text {
    position: relative !important;
    inset: auto !important;
    top: auto !important; left: auto !important;
    right: auto !important; bottom: auto !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    display: block !important;
    margin: 0 auto var(--space-6) !important;
    padding: 0 var(--space-7) !important; /* 28px ngang TRỰC TIẾP — fallback nếu JS không restructure */
    width: 100% !important;
    max-width: 560px !important;
    box-sizing: border-box;
  }
  /* Badge "BƯỚC X" thay v6-num to */
  body.v6-mode .v6-step-text .v6-num {
    position: relative !important;
    top: auto !important; right: auto !important;
    font-size: 13px !important;
    color: var(--green-700) !important;
    background: rgba(16, 185, 129, 0.12);
    padding: 5px 12px;
    border-radius: 100px;
    width: max-content;
    margin-bottom: 10px;
    letter-spacing: 1px;
    font-weight: 800;
    line-height: 1 !important;
    display: inline-block;
    border: 1px solid rgba(16, 185, 129, 0.25);
  }
  body.v6-mode .v6-step-text .v6-num::before {
    content: 'BƯỚC ';
    opacity: 0.7;
    margin-right: 2px;
  }
  body.v6-mode .v6-step-text .v6-tag { display: none !important; }
  body.v6-mode .v6-step-text h3 {
    font-size: 26px !important;
    line-height: 1.2 !important;
    margin-bottom: 12px !important;
  }
  body.v6-mode .v6-step-text p {
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin-bottom: 14px !important;
    color: var(--gray-700) !important;
  }
  body.v6-mode .v6-step-text .v6-feats {
    gap: 6px !important;
    margin-bottom: 14px !important;
  }
  body.v6-mode .v6-step-text .v6-feats span {
    font-size: 12px !important;
    padding: 5px 10px !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.92) !important;
  }
  body.v6-mode .v6-step-text .v6-meta {
    gap: 12px !important;
    flex-wrap: wrap;
    margin-top: 12px !important;
    padding-top: 12px !important;
  }
  body.v6-mode .v6-step-text .v6-meta-num { font-size: 16px !important; }
  body.v6-mode .v6-step-text .v6-meta-lbl { font-size: 10px !important; letter-spacing: 0.5px !important; }

  /* Mockup RESET — natural flow trong block */
  body.v6-mode .v6-mockup {
    position: relative !important;
    inset: auto !important;
    top: auto !important; left: auto !important;
    right: auto !important; bottom: auto !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    display: block !important;
    margin: 0 auto !important;
    padding: 0 var(--space-7) !important; /* 28px ngang TRỰC TIẾP — fallback */
    width: 100% !important;
    max-width: 560px !important;
    box-sizing: border-box !important;
  }
  body.v6-mode .v6-mockup-frame {
    max-width: 100% !important;
    margin: 0 auto;
    border-radius: 12px;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  /* Mockup elements scale down để fit mobile */
  body.v6-mode .v6-mockup-bar { padding: 7px 10px; }
  body.v6-mode .v6-mockup-bar .url { font-size: 9px; padding: 3px 6px; }
  body.v6-mode .v6-mockup-bar .dots span { width: 8px; height: 8px; }
  body.v6-mode .v6-mock-sheet .sheet-menubar { gap: 6px; font-size: 9px; flex-wrap: wrap; }
  body.v6-mode .v6-mock-sheet .sheet-menubar span { padding: 3px 5px; }
  body.v6-mode .v6-mock-sheet .sheet-grid > div { padding: 4px 6px; font-size: 9px; }
  body.v6-mode .v6-mock-kw .kw-row { font-size: 9px; padding: 5px 7px; }
  body.v6-mode .v6-mock-kw .kw-tab { font-size: 9px; padding: 5px; }
  body.v6-mode .v6-mock-kw .kw-count { font-size: 11px; padding: 7px; }
  body.v6-mode .v6-mock-ai .ai-stream { font-size: 10px; padding: 10px; max-height: 200px; }
  body.v6-mode .v6-mock-wp .wp-featured { height: 60px; }
  body.v6-mode .v6-mock-wp .wp-meta-item { font-size: 9px; padding: 4px 7px; }
  body.v6-mode .v6-mock-wp .wp-post-title { font-size: 12px; }
}

/* ═══ MOBILE SMALL (≤480px) — siêu compact iPhone SE ═══════════════════ */
@media (max-width: 480px) {
  body.v6-mode .v6-story-header h2 { font-size: 19px !important; }
  body.v6-mode .v6-step-block { min-height: 88vh; padding: var(--space-7) var(--space-7); }
  body.v6-mode .v6-step-text h3 { font-size: 22px !important; line-height: 1.2 !important; }
  body.v6-mode .v6-step-text p { font-size: 13px !important; }
  body.v6-mode .v6-step-text .v6-feats span { font-size: 11px !important; padding: 4px 9px !important; }
}

body.v6-mode .how-visual { display: none !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   MOCKUP LIVE ANIMATIONS — 4 mockup chạy infinite khi active
   ─────────────────────────────────────────────────────────────────────────
   Chạy CHỈ khi mockup.active (đồng nhất cho mobile + tablet + desktop
   nhờ ScrollTrigger.pin scrub).
   Subtle, không gây xao nhãng đọc text bên cạnh.
   Pure CSS @keyframes — không cần JS, GPU-accelerated.
   ═════════════════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────────────────
   SELECTOR HELPER: target mockup khi active
   All viewports: .v6-mockup.active .xxx
   ────────────────────────────────────────────────────────────────────── */

/* ═══ MOCKUP 1 — Google Sheet (cell highlight cycle) ═══════════════════ */
@keyframes m1-cell-cycle {
  0%, 24%  { background: rgba(16, 185, 129, 0.18); }
  25%, 100% { background: transparent; }
}
@keyframes m1-cell-cycle-2 {
  0%, 24%   { background: transparent; }
  25%, 49%  { background: rgba(16, 185, 129, 0.18); }
  50%, 100% { background: transparent; }
}
@keyframes m1-cell-cycle-3 {
  0%, 49%   { background: transparent; }
  50%, 74%  { background: rgba(16, 185, 129, 0.18); }
  75%, 100% { background: transparent; }
}
@keyframes m1-cell-cycle-4 {
  0%, 74%   { background: transparent; }
  75%, 99%  { background: rgba(16, 185, 129, 0.18); }
  100%      { background: transparent; }
}
@keyframes m1-menu-glow {
  0%, 100% { box-shadow: 0 2px 6px rgba(16,185,129,0.3); transform: scale(1); }
  50%      { box-shadow: 0 6px 20px rgba(16,185,129,0.7); transform: scale(1.05); }
}
/* Apply — desktop active state */
.v6-mockup.active .v6-mock-sheet .sheet-grid > div:nth-child(8)  { animation: m1-cell-cycle   5s ease-in-out infinite; }
.v6-mockup.active .v6-mock-sheet .sheet-grid > div:nth-child(14) { animation: m1-cell-cycle-2 5s ease-in-out infinite; }
.v6-mockup.active .v6-mock-sheet .sheet-grid > div:nth-child(20) { animation: m1-cell-cycle-3 5s ease-in-out infinite; }
.v6-mockup.active .v6-mock-sheet .sheet-grid > div:nth-child(26) { animation: m1-cell-cycle-4 5s ease-in-out infinite; }
.v6-mockup.active .v6-mock-sheet .menu-ntck { animation: m1-menu-glow 2.5s ease-in-out infinite !important; }

/* Apply — mobile block active state */


/* ═══ MOCKUP 2 — KW Research (rows fade stagger + tabs pulse) ═══════════ */
@keyframes m2-row-reveal {
  0%, 5%   { opacity: 0; transform: translateX(-10px); }
  15%, 95% { opacity: 1; transform: translateX(0); }
  100%     { opacity: 0; transform: translateX(-10px); }
}
@keyframes m2-tab-pulse-tofu {
  0%, 32%  { background: rgba(251, 191, 36, 0.1); transform: scale(1); }
  10%, 22% { background: rgba(251, 191, 36, 0.35); transform: scale(1.04); }
  33%, 100% { background: rgba(251, 191, 36, 0.1); transform: scale(1); }
}
@keyframes m2-tab-pulse-mofu {
  0%, 32%   { background: rgba(16, 185, 129, 0.1); transform: scale(1); }
  33%, 65%  { background: rgba(16, 185, 129, 0.35); transform: scale(1.04); }
  66%, 100% { background: rgba(16, 185, 129, 0.1); transform: scale(1); }
}
@keyframes m2-tab-pulse-bofu {
  0%, 65%   { background: rgba(139, 92, 246, 0.1); transform: scale(1); }
  66%, 95%  { background: rgba(139, 92, 246, 0.35); transform: scale(1.04); }
  96%, 100% { background: rgba(139, 92, 246, 0.1); transform: scale(1); }
}
@keyframes m2-count-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); transform: scale(1); }
  50%      { box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5); transform: scale(1.02); }
}
@keyframes m2-input-typing {
  0%, 100% { border-right-color: transparent; }
  50%      { border-right-color: var(--green-600); }
}
/* Apply desktop */
.v6-mockup.active .v6-mock-kw .kw-row { animation: m2-row-reveal 6s ease-in-out infinite; }
.v6-mockup.active .v6-mock-kw .kw-row:nth-child(1) { animation-delay: 0s; }
.v6-mockup.active .v6-mock-kw .kw-row:nth-child(2) { animation-delay: 0.3s; }
.v6-mockup.active .v6-mock-kw .kw-row:nth-child(3) { animation-delay: 0.6s; }
.v6-mockup.active .v6-mock-kw .kw-row:nth-child(4) { animation-delay: 0.9s; }
.v6-mockup.active .v6-mock-kw .kw-row:nth-child(5) { animation-delay: 1.2s; }
.v6-mockup.active .v6-mock-kw .kw-row:nth-child(6) { animation-delay: 1.5s; }
.v6-mockup.active .v6-mock-kw .kw-row:nth-child(7) { animation-delay: 1.8s; }
.v6-mockup.active .v6-mock-kw .kw-tab.tofu { animation: m2-tab-pulse-tofu 6s ease-in-out infinite; }
.v6-mockup.active .v6-mock-kw .kw-tab.mofu { animation: m2-tab-pulse-mofu 6s ease-in-out infinite; }
.v6-mockup.active .v6-mock-kw .kw-tab.bofu { animation: m2-tab-pulse-bofu 6s ease-in-out infinite; }
.v6-mockup.active .v6-mock-kw .kw-count   { animation: m2-count-glow 3s ease-in-out infinite; }
.v6-mockup.active .v6-mock-kw .kw-input   { animation: m2-input-typing 1.2s steps(1) infinite; border-right: 2px solid transparent; }



/* ═══ MOCKUP 3 — AI Writing (typing + keyword highlight + tags pop) ═════ */
@keyframes m3-keyword-glow {
  0%, 100% { background: rgba(251, 191, 36, 0.2); box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
  50%      { background: rgba(251, 191, 36, 0.5); box-shadow: 0 0 8px rgba(251, 191, 36, 0.6); }
}
@keyframes m3-h2-shimmer {
  0%   { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}
@keyframes m3-tag-pop {
  0%, 5%   { opacity: 0; transform: scale(0.7) translateY(8px); }
  15%, 95% { opacity: 1; transform: scale(1) translateY(0); }
  100%     { opacity: 0; transform: scale(0.7) translateY(8px); }
}
@keyframes m3-stream-scroll {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-30px); }
}
@keyframes m3-provider-pulse {
  0%, 100% { background: #f9fafb; }
  50%      { background: #ecfdf5; color: var(--green-700); }
}
/* Apply desktop */
.v6-mockup.active .v6-mock-ai .ai-keyword { animation: m3-keyword-glow 2s ease-in-out infinite; }
.v6-mockup.active .v6-mock-ai .ai-h2 {
  background: linear-gradient(90deg, transparent 0%, rgba(16, 185, 129, 0.15) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: m3-h2-shimmer 3s ease-in-out infinite;
}
.v6-mockup.active .v6-mock-ai .ai-tags span { animation: m3-tag-pop 5s ease-in-out infinite; }
.v6-mockup.active .v6-mock-ai .ai-tags span:nth-child(1) { animation-delay: 0s; }
.v6-mockup.active .v6-mock-ai .ai-tags span:nth-child(2) { animation-delay: 0.3s; }
.v6-mockup.active .v6-mock-ai .ai-tags span:nth-child(3) { animation-delay: 0.6s; }
.v6-mockup.active .v6-mock-ai .ai-tags span:nth-child(4) { animation-delay: 0.9s; }
.v6-mockup.active .v6-mock-ai .ai-tags span:nth-child(5) { animation-delay: 1.2s; }
.v6-mockup.active .v6-mock-ai .ai-tags span:nth-child(6) { animation-delay: 1.5s; }
.v6-mockup.active .v6-mock-ai .ai-stream { animation: m3-stream-scroll 6s ease-in-out infinite; }
.v6-mockup.active .v6-mock-ai .ai-provider { animation: m3-provider-pulse 4s ease-in-out infinite; }


/* ═══ MOCKUP 4 — WordPress (checkmark tick + status pulse + image shimmer) ═ */
@keyframes m4-check-tick {
  0%, 14%   { opacity: 0; transform: scale(0.5); color: var(--gray-400); }
  20%, 95%  { opacity: 1; transform: scale(1); color: var(--green-600); }
  100%      { opacity: 0; transform: scale(0.5); color: var(--gray-400); }
}
@keyframes m4-meta-slide-in {
  0%, 14%   { opacity: 0.4; transform: translateX(-8px); border-left-color: var(--gray-300); }
  20%, 95%  { opacity: 1; transform: translateX(0); border-left-color: var(--green-500); }
  100%      { opacity: 0.4; transform: translateX(-8px); border-left-color: var(--gray-300); }
}
@keyframes m4-featured-shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes m4-status-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
  50%      { box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4); }
}
/* Apply desktop */
.v6-mockup.active .v6-mock-wp .wp-meta-item { animation: m4-meta-slide-in 6s ease-in-out infinite; }
.v6-mockup.active .v6-mock-wp .wp-meta-item:nth-child(1) { animation-delay: 0s; }
.v6-mockup.active .v6-mock-wp .wp-meta-item:nth-child(2) { animation-delay: 0.5s; }
.v6-mockup.active .v6-mock-wp .wp-meta-item:nth-child(3) { animation-delay: 1.0s; }
.v6-mockup.active .v6-mock-wp .wp-meta-item:nth-child(4) { animation-delay: 1.5s; }
.v6-mockup.active .v6-mock-wp .wp-meta-item .checkmark { animation: m4-check-tick 6s ease-in-out infinite; }
.v6-mockup.active .v6-mock-wp .wp-meta-item:nth-child(1) .checkmark { animation-delay: 0s; }
.v6-mockup.active .v6-mock-wp .wp-meta-item:nth-child(2) .checkmark { animation-delay: 0.5s; }
.v6-mockup.active .v6-mock-wp .wp-meta-item:nth-child(3) .checkmark { animation-delay: 1.0s; }
.v6-mockup.active .v6-mock-wp .wp-meta-item:nth-child(4) .checkmark { animation-delay: 1.5s; }
.v6-mockup.active .v6-mock-wp .wp-featured {
  background-size: 200% 200%;
  animation: m4-featured-shimmer 5s ease-in-out infinite;
}
/* Recover line bị truncate: .v6-mockup.active .v6-mock-wp .wp-status */
.v6-mockup.active .v6-mock-wp .wp-status { animation: m4-status-pulse 2.5s ease-in-out infinite; }


/* ═══ Reduced-motion: respect user preference ════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .v6-mockup.active * {
    animation: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE PERFORMANCE OPTIMIZATIONS (≤1279px) — Fix jitter khi pin scrub
   ─────────────────────────────────────────────────────────────────────────
   iOS Safari + Android Chrome bị giật khi pin scrub vì:
     1. 24 mockup animations infinite → GPU repaint mỗi frame → jitter
     2. backdrop-filter blur quá nặng cho mobile GPU
     3. Composite layers overlap với pin transform (translate3d)
   Fix: tắt animations + blur + add GPU layer hints + CSS containment
   ═════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1279px) {

  /* 1. Mockup animations VẪN bật trên mobile — không còn pin nên không gây jitter
     (Cũ: tắt animation. Mới: enable lại vì IntersectionObserver pattern không
     có scroll-frame work → animations chạy mượt qua GPU compositor) */

  /* 2. DISABLE backdrop-filter trên feat buttons (Safari kill perf khi blur) */
  body.v6-mode .v6-step-text .v6-feats span {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.92) !important;
  }

  /* 3. Stage GPU hints: contain layout + force composite layer riêng */
  body.v6-mode .v6-story-stage {
    contain: layout style paint !important;
    will-change: transform !important;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  /* 4. Mockup frame: GPU layer riêng → composite tách biệt với pin */
  body.v6-mode .v6-mockup-frame {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  /* 5. Step text + mockup transition đơn giản (bỏ multi-property animate) */
  body.v6-mode .v6-step-text {
    transition: opacity 0.35s ease !important;
    transform: none !important;
  }

  body.v6-mode .v6-mockup {
    transition: opacity 0.35s ease !important;
    transform: none !important;
  }
}
