/* =========================================================
   DiagAI - Shared site styles (dùng chung cho mọi trang)
   Biến màu, header/nav, nút bấm, lightbox, các khối dùng lại
   ========================================================= */

:root {
  --primary: #0B5C34;
  --primary-dark: #05381F;
  --primary-light: #EBF7F0;
  --primary-accent: #10B981;
  --secondary: #0284C7;
  --warning: #D97706;
  --danger: #DC2626;
  --danger-light: #FEF2F2;
  --bg: #F1F5F9;
  --card-bg: #FFFFFF;
  --text: #0F172A;
  --text-muted: #475569;
  --border: rgba(11, 92, 52, 0.15);
  --shadow-sm: 0 4px 12px rgba(11, 92, 52, 0.05);
  --shadow-md: 0 16px 36px -8px rgba(11, 92, 52, 0.14);
  --shadow-lg: 0 24px 48px -12px rgba(11, 92, 52, 0.22);
  --radius: 20px;
  --radius-sm: 12px;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-theme="dark"] {
  --primary: #34D399;
  --primary-dark: #10B981;
  --primary-light: #062C19;
  --primary-accent: #059669;
  --secondary: #38BDF8;
  --warning: #FBBF24;
  --danger: #F87171;
  --danger-light: #2A1010;
  --bg: #070F0A;
  --card-bg: #0F1F16;
  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --border: rgba(52, 211, 153, 0.22);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 16px 36px -8px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.8);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: clip;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
}

.svg-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: inline-block;
  vertical-align: middle;
}

.svg-icon.lg { width: 28px; height: 28px; }
.svg-icon.xl { width: 36px; height: 36px; }

.site-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav (dùng chung mọi trang) ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 99999;
  background: rgba(241, 245, 249, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

header.is-scrolled {
  padding: 10px 0;
  background: rgba(241, 245, 249, 0.98);
  box-shadow: 0 10px 30px -5px rgba(11, 92, 52, 0.15);
  border-bottom-color: rgba(11, 92, 52, 0.25);
}

[data-theme="dark"] header {
  background: rgba(7, 15, 10, 0.92);
}

[data-theme="dark"] header.is-scrolled {
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.6);
  border-bottom-color: rgba(52, 211, 153, 0.3);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(11, 92, 52, 0.25);
}

.brand-info h1 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.brand-info p {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 14px;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.theme-toggle:hover {
  border-color: var(--primary);
  transform: scale(1.08) rotate(12deg);
  box-shadow: 0 6px 16px rgba(11, 92, 52, 0.2);
}

.theme-toggle .svg-icon {
  width: 22px;
  height: 22px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.theme-toggle .sun-icon {
  display: none;
  opacity: 0;
  transform: scale(0.4) rotate(-90deg);
}

.theme-toggle .moon-icon {
  display: block;
  opacity: 1;
  transform: scale(1) rotate(0deg);
  color: #0284C7;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  display: block;
  opacity: 1;
  transform: scale(1) rotate(0deg);
  color: #FBBF24;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: none;
  opacity: 0;
  transform: scale(0.4) rotate(90deg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #0B5C34 0%, #10B981 100%);
  color: #FFFFFF;
  box-shadow: 0 10px 24px -4px rgba(11, 92, 52, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 35%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 65%
  );
  transform: translateX(-100%) rotate(25deg);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
  animation: shimmerWave 1.4s ease-in-out infinite;
}

@keyframes shimmerWave {
  0% { transform: translateX(-100%) rotate(25deg); }
  100% { transform: translateX(150%) rotate(25deg); }
}

@keyframes radarPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes radarPulseDanger {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.8); }
  70% { box-shadow: 0 0 0 14px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-accent);
  animation: radarPulse 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  display: inline-block;
  flex-shrink: 0;
}

.pulse-dot.danger {
  background: var(--danger);
  animation: radarPulseDanger 1.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 32px -4px rgba(11, 92, 52, 0.55);
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-danger {
  background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
  color: #FFFFFF;
  box-shadow: 0 10px 24px -4px rgba(220, 38, 38, 0.4);
}

.btn-danger:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 32px -4px rgba(220, 38, 38, 0.55);
}

/* ---------- Scroll reveal & Tab Entrance Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.93) translateY(20px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays for grid items */
.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }

/* Navigation Tab Active Indicator & Micro-animations */
.nav-links a {
  position: relative;
  transition: color 0.3s ease, transform 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 99px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
  left: 0;
}

/* ---------- Section headers (dùng chung) ---------- */
.section-header {
  margin-bottom: 28px;
}

.section-tag {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 6px;
}

.section-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-desc {
  font-size: 15px;
  color: var(--text-muted);
}

/* ---------- Gallery grid (ảnh có overlay khi hover) ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--card-bg);
  transition: all 0.3s ease;
}

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

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  color: #FFF;
  font-size: 12.5px;
  font-weight: 700;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* ---------- Video grid/card (dùng cho các khối video 16:9) ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.video-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.video-wrapper {
  position: relative;
  width: 100%;
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-info {
  padding: 16px;
}

.video-info h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

.video-info p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---------- Lightbox Modal (dùng chung mọi trang) ---------- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-modal.active {
  display: flex !important;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  position: relative;
  z-index: 1000000;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.25);
  color: #FFF;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000001;
  transition: background-color 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.4);
}

[onclick*="openLightbox"],
.hero-gallery-item,
.gallery-item,
.phone-frame,
.study-card-img {
  cursor: pointer !important;
}

/* ---------- Disclaimer box ---------- */
.disclaimer-box {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

.disclaimer-icon {
  color: var(--primary);
  flex-shrink: 0;
}

.disclaimer-text strong {
  display: block;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 4px;
}

.disclaimer-text p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
  z-index: 2;
}

/* Ensure content stays above per-page background animations */
.site-wrapper {
  position: relative;
  z-index: 2;
}

/* ---------- Shared responsive (header/nav/buttons/grids) ---------- */
@media (max-width: 1080px) {
  .video-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: clip !important;
  }

  .site-wrapper {
    padding: 0 16px;
  }

  header {
    padding: 10px 0;
  }

  .brand {
    gap: 8px;
  }

  .brand img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .brand-info h1 {
    font-size: 16px;
  }

  .nav-wrapper {
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-links {
    display: flex;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    gap: 8px;
    padding: 4px 0 2px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links li {
    flex-shrink: 0;
  }

  .nav-links a {
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--primary);
    display: inline-block;
  }

  [data-theme="dark"] .nav-links a {
    background: rgba(52, 211, 153, 0.15);
    color: #34D399;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: var(--primary);
    color: #ffffff !important;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-actions .btn-primary {
    padding: 10px 14px;
    font-size: 12.5px;
    border-radius: 10px;
  }

  .theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .section-title {
    font-size: 20px;
  }

  .section-desc {
    font-size: 13.5px;
  }

  .disclaimer-box {
    flex-direction: column;
    padding: 16px;
    gap: 12px;
  }

  .btn {
    padding: 12px 16px;
    font-size: 13px;
  }

  footer {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding: 20px 0;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   NÂNG CẤP ANIMATION & APP SHOWCASE ĐỈNH CAO
   ========================================================================== */

/* ---------- Ambient Floating Aura Orbs Background ---------- */
.bg-ambient-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.aura-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.16;
  pointer-events: none;
  will-change: transform;
}

[data-theme="dark"] .aura-blob {
  opacity: 0.12;
}

.aura-blob-1 {
  top: 5%;
  left: -5%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #10B981 0%, rgba(16, 185, 129, 0) 70%);
  animation: auraDrift1 24s ease-in-out infinite alternate;
}

.aura-blob-2 {
  top: 40%;
  right: -8%;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, #0284C7 0%, rgba(2, 132, 199, 0) 70%);
  animation: auraDrift2 28s ease-in-out infinite alternate;
}

.aura-blob-3 {
  bottom: 8%;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #D97706 0%, rgba(217, 119, 6, 0) 70%);
  animation: auraDrift3 22s ease-in-out infinite alternate;
}

@keyframes auraDrift1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.1); }
  100% { transform: translate(-30px, 70px) scale(0.94); }
}

@keyframes auraDrift2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-70px, -40px) scale(1.08); }
  100% { transform: translate(30px, 60px) scale(0.92); }
}

@keyframes auraDrift3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, -30px) scale(1.06); }
  100% { transform: translate(-40px, 40px) scale(0.92); }
}

/* ---------- BÁO CHÍ NÓI VỀ DIAGAI: REALISTIC BOOK CORNER CURL & 3D SPREAD ---------- */
.press-feature-container {
  position: relative;
  perspective: 1600px;
  margin-top: 10px;
}

.press-feature {
  position: relative;
  display: block;
  border-radius: 28px;
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  box-shadow: 
    0 16px 38px -10px rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

[data-theme="dark"] .press-feature {
  background: #0f1f16;
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.75);
}

.press-feature:hover {
  transform: perspective(1600px) rotateX(2.5deg) rotateY(-1.2deg) translateY(-8px) scale(1.012);
  box-shadow: 
    0 30px 65px -14px rgba(0, 0, 0, 0.22),
    0 12px 28px -6px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .press-feature:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 70px -14px rgba(0, 0, 0, 0.85);
}

.press-paper-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 28px;
}

.press-feature img {
  width: 100%;
  height: auto;
  display: block;
  transition: filter 0.4s ease;
}

/* Central magazine spine crease (nếp gấp gáy báo ở giữa) */
.press-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 48px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.03) 25%,
    rgba(0, 0, 0, 0.15) 50%,
    rgba(0, 0, 0, 0.03) 75%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
  z-index: 3;
}

/* Light glare sweep across magazine on hover (vệt phản quang quét qua bề mặt in) */
.press-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.36) 48%,
    rgba(255, 255, 255, 0.04) 54%,
    transparent 68%
  );
  transform: translateX(-120%);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 4;
}

.press-feature:hover .press-glare {
  transform: translateX(120%);
}

/* Floating badge indicator (nhãn mời mở PDF) */
.press-badge-float {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(15, 23, 42, 0.88);
  color: #FFFFFF;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 5;
}

.press-feature:hover .press-badge-float {
  transform: scale(1.05);
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.4);
}

.press-badge-float .svg-icon {
  transition: transform 0.3s ease;
}

.press-feature:hover .press-badge-float .svg-icon {
  transform: translate(3px, -3px);
}

/* Book Corner Curl (góc lật trang báo tinh tế khi hover) */
.book-corner-curl {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 64px;
  height: 64px;
  pointer-events: none;
  z-index: 6;
  opacity: 0;
  transform: scale(0.4);
  transform-origin: 100% 100%;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.press-feature:hover .book-corner-curl {
  opacity: 1;
  transform: scale(1);
}

/* 1. Phần che góc ảnh gốc bằng nền mặt bàn */
.curl-cutout {
  position: absolute;
  inset: 0;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  border-bottom-right-radius: 28px;
  background: var(--bg-body, #F8FAFC);
  z-index: 1;
}

[data-theme="dark"] .curl-cutout {
  background: var(--bg-body, #0B132B);
}

/* 2. Đổ bóng trên mặt bàn ngay dưới góc trang giấy lật lên */
.curl-under-shadow {
  position: absolute;
  inset: 0;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  border-bottom-right-radius: 28px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.08) 50%, transparent 100%);
  z-index: 2;
}

/* 3. Nếp trang sách/báo lật lên (tam giác gập vào trong) */
.curl-fold {
  position: absolute;
  inset: 0;
  clip-path: polygon(100% 0, 0 100%, 0 0);
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #f8fafc 35%,
    #e2e8f0 70%,
    #cbd5e1 100%
  );
  filter: drop-shadow(-4px -4px 8px rgba(0, 0, 0, 0.28));
  z-index: 3;
}

[data-theme="dark"] .curl-fold {
  background: linear-gradient(
    135deg,
    #e2e8f0 0%,
    #cbd5e1 35%,
    #94a3b8 70%,
    #64748b 100%
  );
  filter: drop-shadow(-4px -4px 10px rgba(0, 0, 0, 0.6));
}

/* Hint pill at corner */
.curl-hint {
  position: absolute;
  bottom: 14px;
  right: 80px;
  background: rgba(255, 255, 255, 0.95);
  color: #0F172A;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.08);
  white-space: nowrap;
  opacity: 0.9;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

[data-theme="dark"] .curl-hint {
  background: #0f1f16;
  color: #F8FAFC;
  border-color: rgba(52, 211, 153, 0.3);
}

.press-feature:hover .curl-hint {
  opacity: 0;
  transform: translateX(12px);
}

/* ---------- SMARTPHONE DEVICE MOCKUP (Titanium Pro Frame) ---------- */
.phone-mockup-wrap {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

.phone-mockup {
  position: relative;
  width: 100%;
  max-width: 250px;
  aspect-ratio: 9 / 19.5;
  background: #000000;
  border-radius: 44px;
  border: 9px solid #1E293B;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 24px 56px -12px rgba(0, 0, 0, 0.4),
    0 10px 20px -6px rgba(11, 92, 52, 0.18);
  overflow: hidden;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: zoom-in;
  user-select: none;
}

[data-theme="dark"] .phone-mockup {
  border-color: #0F172A;
  box-shadow: 
    0 0 0 1px rgba(52, 211, 153, 0.25) inset,
    0 30px 70px -15px rgba(0, 0, 0, 0.85);
}

/* Dynamic Island */
.phone-mockup .dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: #000000;
  border-radius: 20px;
  z-index: 10;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
}

.phone-mockup .island-lens {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle, #253347 25%, #050505 100%);
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.2) inset;
}

.phone-mockup .island-indicator {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10B981;
  opacity: 0.85;
  box-shadow: 0 0 4px #10B981;
}

/* Screen Image */
.phone-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.phone-mockup:hover img {
  transform: scale(1.03);
}

/* Screen Glare Layer */
.phone-mockup .phone-screen-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0.03) 35%,
    transparent 55%
  );
  pointer-events: none;
  z-index: 5;
}

/* Zoom overlay indicator */
.phone-zoom-hint {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 8;
  color: #FFFFFF;
}

.phone-zoom-hint span {
  background: rgba(15, 23, 42, 0.88);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transform: translateY(10px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.phone-mockup:hover .phone-zoom-hint {
  opacity: 1;
}

.phone-mockup:hover .phone-zoom-hint span {
  transform: translateY(0);
}

/* ---------- DUAL-PHONE 3D LAYERED SHOWCASE ---------- */
.dual-phones {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 520px;
  perspective: 1400px;
}

.dual-phones .phone-primary {
  position: relative;
  z-index: 3;
  transform: translateY(0) rotate(-1.5deg);
  animation: floatGentle 6s ease-in-out infinite alternate;
}

.dual-phones .phone-secondary {
  position: absolute;
  z-index: 2;
  right: 12%;
  transform: translate(32px, 18px) scale(0.92) rotate(4deg);
  opacity: 0.95;
  filter: brightness(0.96);
  animation: floatGentleReverse 7s ease-in-out infinite alternate;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dual-phones:hover .phone-secondary {
  transform: translate(64px, 12px) scale(0.96) rotate(6deg);
  opacity: 1;
  filter: brightness(1);
}

@keyframes floatGentle {
  0% { transform: translateY(0px) rotate(-1.5deg); }
  100% { transform: translateY(-12px) rotate(0deg); }
}

@keyframes floatGentleReverse {
  0% { transform: translate(32px, 18px) scale(0.92) rotate(4deg); }
  100% { transform: translate(32px, 6px) scale(0.92) rotate(2.5deg); }
}

/* ---------- FLOATING CHIPS / FEATURE PILLS ---------- */
.floating-chip {
  position: absolute;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: none;
  animation: floatChip 5s ease-in-out infinite alternate;
}

.floating-chip .chip-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.floating-chip.top-left {
  top: 10%;
  left: -15px;
  animation-delay: 0s;
}

.floating-chip.bottom-right {
  bottom: 12%;
  right: -15px;
  animation-delay: 1.5s;
}

.floating-chip.top-right {
  top: 8%;
  right: -10px;
  animation-delay: 0.8s;
}

.floating-chip.bottom-left {
  bottom: 10%;
  left: -15px;
  animation-delay: 2.2s;
}

@keyframes floatChip {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-10px) scale(1.02); }
}

/* ---------- MODERN FEATURE CARDS GRID (Thẻ Tính Năng) ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.feature-glass-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.feature-glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.feature-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(11, 92, 52, 0.2);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-glass-card:hover .feature-card-icon {
  transform: scale(1.12) rotate(6deg);
}

.feature-glass-card h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.feature-glass-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ---------- VIDEO THEATER HERO SECTION ---------- */
.video-theater {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
  padding: 40px;
  margin: 32px 0 54px 0;
  position: relative;
  overflow: hidden;
}

.video-theater::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 15%;
  width: 420px;
  height: 320px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.16) 0%, transparent 70%);
  filter: blur(55px);
  pointer-events: none;
}

.theater-grid {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 48px;
  align-items: center;
}

.theater-phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.theater-phone {
  width: 100%;
  max-width: 270px;
  aspect-ratio: 9 / 19.5;
  background: #000;
  border-radius: 44px;
  border: 9px solid #1E293B;
  box-shadow: 
    0 25px 60px -10px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(16, 185, 129, 0.25);
  overflow: hidden;
  position: relative;
}

.theater-phone video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.theater-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.theater-step-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(241, 245, 249, 0.6);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 20px;
  transition: all 0.3s ease;
}

[data-theme="dark"] .theater-step-item {
  background: rgba(15, 31, 22, 0.6);
}

.theater-step-item:hover {
  background: var(--card-bg);
  border-color: var(--primary);
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-accent) 100%);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(11, 92, 52, 0.25);
}

.step-content h5 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.step-content p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---------- BOTTOM CALL TO ACTION BANNER ---------- */
.bottom-cta-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #FFFFFF;
  border-radius: 32px;
  padding: 56px 44px;
  margin: 64px 0 40px 0;
  box-shadow: 0 25px 60px -15px rgba(11, 92, 52, 0.45);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.bottom-cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, transparent 70%);
  filter: blur(40px);
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: #FFFFFF;
}

.cta-content p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 28px;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta-white {
  background: #FFFFFF;
  color: var(--primary);
  font-weight: 800;
  padding: 15px 30px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-cta-white:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
  color: var(--primary-dark);
}

.btn-cta-outline {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  font-weight: 800;
  padding: 15px 30px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-cta-outline:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #FFFFFF;
  transform: translateY(-3px);
}

/* ---------- RESPONSIVE CHO CÁC KHỐI NÂNG CẤP ---------- */
@media (max-width: 1080px) {
  .theater-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  
  .theater-step-item {
    text-align: left;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .dual-phones {
    min-height: 440px;
  }
}

@media (max-width: 768px) {
  .video-theater {
    padding: 24px 18px;
    border-radius: 24px;
  }
  
  .dual-phones {
    min-height: 380px;
  }
  
  .dual-phones .phone-secondary {
    display: none; /* Tránh tràn và rối mắt trên mobile hẹp */
  }
  
  .floating-chip {
    display: none; /* Ẩn floating chips trên màn hình nhỏ để tránh che nội dung */
  }
  
  .bottom-cta-banner {
    padding: 36px 20px;
    border-radius: 22px;
  }
}

/* ============ Phóng Sự Bệnh Viện (VTV Thời Sự benhvien.mp4) ============ */
.hospital-video-section {
  text-align: left;
  margin-bottom: 48px;
}

.hospital-video-stage {
  max-width: 580px;
  margin: 24px auto 0;
  position: relative;
  text-align: center;
}

.hospital-video-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #000;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 
    0 24px 60px -12px rgba(220, 38, 38, 0.28),
    0 4px 20px rgba(0, 0, 0, 0.08);
  border: 2px solid var(--border);
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.hospital-video-frame:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 
    0 32px 75px -15px rgba(220, 38, 38, 0.38),
    0 0 40px rgba(220, 38, 38, 0.15);
  border-color: rgba(220, 38, 38, 0.45);
}

.hospital-video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hospital-video-caption {
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 680px) {
  .hospital-video-stage {
    max-width: 100%;
  }
  .hospital-video-frame {
    border-radius: 20px;
  }
}



