/**
 * Thuê Xe Tự Lái Tam Kỳ - CSS System & Luxury Aesthetics
 * Brand Palette:
 * - Background Dark: #1A1A1A (Carbon Black)
 * - Primary: #00B140 (Green Accent)
 * - Accent Red: #E32636 (Hotline / Accent)
 * - Secondary: #C0C0C0 (Metallic Silver), #F59E0B (Amber Gold)
 * Typography: Montserrat (Headings) & Roboto (Body)
 */

:root {
  --atv-primary: #39b54a;
  --atv-primary-hover: #2fa13e;
  --atv-primary-dark: #006837;
  --atv-primary-glow: rgba(57, 181, 74, 0.35);

  --atv-accent-sand: #e6d0c6;
  --atv-charcoal: #1a1a1a;

  --atv-bg-dark: #121513;
  --atv-bg-dark-card: #1c211e;
  --atv-bg-dark-card-hover: #242c27;

  --atv-bg-light: #f6f9f7;
  --atv-bg-light-card: #ffffff;
  --atv-bg-section-alt: #edf3ee;

  /* Legacy alias for template compatibility */
  --hv-bg-dark: var(--atv-bg-dark);
  --hv-bg-dark-card: var(--atv-bg-dark-card);
  --hv-bg-dark-card-hover: var(--atv-bg-dark-card-hover);
  --hv-bg-light: var(--atv-bg-light);
  --hv-bg-light-card: var(--atv-bg-light-card);
  --hv-bg-section-alt: var(--atv-bg-section-alt);

  --hv-primary: var(--atv-primary);
  --hv-primary-hover: var(--atv-primary-hover);
  --hv-primary-glow: var(--atv-primary-glow);

  --hv-accent-red: #39b54a;
  --hv-accent-red-hover: #006837;

  --hv-silver: #e6d0c6;
  --hv-gold: #39b54a;

  --hv-text-light: #ffffff;
  --hv-text-muted-dark: #d1dad4;
  --hv-text-dark: #0f172a;
  --hv-text-muted-light: #2b3830;

  --hv-border-dark: rgba(255, 255, 255, 0.12);
  --hv-border-light: rgba(0, 104, 55, 0.16);

  --hv-radius-sm: 8px;
  --hv-radius-md: 12px;
  --hv-radius-lg: 12px;
  --hv-radius-xl: 12px;
  --hv-radius-pill: 12px;

  --font-heading: "Montserrat", sans-serif;
  --font-body: "Roboto", sans-serif;
}

/* Enforce max 12px border-radius across UI elements (no over-rounded 50px pill corners) */
.rounded-4,
.rounded-5,
.rounded-3,
.rounded-pill,
.rounded-bottom-4,
.rounded-top-4 {
  border-radius: 12px !important;
}
.rounded-bottom-4 {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}

/* Global Font & Reset */
body {
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
  overflow-x: hidden;
  background-color: var(--hv-bg-light);
  color: #1a202c;
}

/* Push non-home subpages down below the fixed navbar */
body:not(.page-home) {
  padding-top: 84px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.2px;
}

/* Light Theme (Default & Active) */
html[data-theme="light"] body,
body.theme-light,
body {
  background-color: #f8faf8;
  color: #1e293b;
}

html[data-theme="light"] {
  --hv-bg-section-alt: #edf3ee;
  --hv-bg-card: #ffffff;
}

html[data-theme="light"] .bg-card,
body.theme-light .bg-card,
.bg-card {
  background-color: #ffffff !important;
  border: 1px solid rgba(0, 104, 55, 0.16);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .text-theme-main,
body.theme-light .text-theme-main,
.text-theme-main {
  color: #0f172a !important;
  font-weight: 700;
}

html[data-theme="light"] .text-theme-muted,
body.theme-light .text-theme-muted,
.text-theme-muted {
  color: #2b3830 !important;
  font-weight: 500;
}

/* Dark Theme */
html[data-theme="dark"] {
  --hv-bg-section-alt: #181e1a;
  --hv-bg-card: #1c221e;
}

html[data-theme="dark"] body,
body.theme-dark {
  background-color: #121513 !important;
  color: #f1f5f9 !important;
}

html[data-theme="dark"] .bg-card,
body.theme-dark .bg-card {
  background-color: #1c221e !important;
  border: 1px solid rgba(57, 181, 74, 0.22);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .text-theme-main,
body.theme-dark .text-theme-main {
  color: #ffffff !important;
  font-weight: 700;
}

html[data-theme="dark"] .text-theme-muted,
body.theme-dark .text-theme-muted {
  color: #cbd5e1 !important;
  font-weight: 450;
}

/* Brand Colors Utilities */
.text-hv-green {
  color: var(--hv-primary) !important;
}
.text-hv-red {
  color: var(--hv-accent-red) !important;
}
.text-hv-gold {
  color: var(--hv-gold) !important;
}
.bg-hv-green {
  background-color: var(--hv-primary) !important;
  color: #fff !important;
}
.bg-hv-red {
  background-color: var(--hv-accent-red) !important;
  color: #fff !important;
}
.bg-hv-gold {
  background-color: var(--hv-gold) !important;
  color: #111 !important;
}

.text-gradient-green {
  background: linear-gradient(135deg, #00b140 0%, #16a34a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hover-green:hover {
  color: var(--hv-primary) !important;
  transition: color 0.2s ease;
}

/* Subpage Hero Header */
.subpage-hero {
  background: radial-gradient(
    circle at 50% 0%,
    rgba(0, 177, 64, 0.08) 0%,
    rgba(248, 249, 250, 0.95) 70%
  );
  padding: 45px 0 35px;
  border-bottom: none;
}

html[data-theme="dark"] .subpage-hero {
  background: radial-gradient(
    circle at 50% 0%,
    rgba(0, 177, 64, 0.15) 0%,
    rgba(26, 26, 26, 0.98) 70%
  );
  border-bottom: none;
}

.subpage-badge {
  display: inline-block;
  padding: 6px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--hv-radius-pill);
  background: rgba(57, 181, 74, 0.15);
  border: 1px solid rgba(57, 181, 74, 0.35);
  color: #39b54a;
  margin-bottom: 16px;
}

html[data-theme="light"] .subpage-badge {
  background: rgba(0, 104, 55, 0.08);
  border-color: rgba(0, 104, 55, 0.22);
  color: #006837;
}

/* Section Spacing & Desktop 100vh Snap Scroll Alignment */
.py-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  position: relative;
}

@media (max-width: 768px) {
  .py-section {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }
}

/* Full-Height Desktop Snap Scroll Sections */
@media (min-width: 992px) {
  .page-home #home,
  .page-home #products,
  .page-home #about,
  .page-home #contact,
  .page-home #news {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
    box-sizing: border-box;
    position: relative;
  }
  .page-home #home {
    padding-top: 80px;
    padding-bottom: 0;
  }
  .page-home #products .container,
  .page-home #about .container,
  .page-home #contact .container,
  .page-home #news .container {
    width: 100%;
  }
}

/* Buttons */
.btn-hv-primary,
.btn-primary-hv {
  background: linear-gradient(135deg, var(--hv-primary) 0%, #009636 100%);
  color: #ffffff !important;
  border: none;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--hv-radius-pill);
  padding: 12px 28px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 16px var(--hv-primary-glow);
}
.btn-hv-primary:hover,
.btn-primary-hv:hover {
  background: linear-gradient(135deg, #00d34d 0%, var(--hv-primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--hv-primary-glow);
}

.btn-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border-radius: var(--hv-radius-pill);
  transition: all 0.3s ease;
}

.btn-outline-glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
  font-family: var(--font-heading);
  text-decoration: none;
}
.btn-outline-glass:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
  color: #ffffff !important;
  transform: translateY(-2px);
}

.btn-hv-hotline {
  background-color: var(--hv-accent-red);
  color: #ffffff !important;
  border: none;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: var(--hv-radius-pill);
  padding: 10px 22px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(227, 38, 54, 0.35);
  animation: pulse-red 2s infinite;
}
.btn-hv-hotline:hover {
  background-color: var(--hv-accent-red-hover);
  transform: translateY(-2px);
}

@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(227, 38, 54, 0.5);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(227, 38, 54, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(227, 38, 54, 0);
  }
}

.btn-hv-outline {
  background: transparent;
  color: var(--hv-primary) !important;
  border: 1.5px solid var(--hv-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--hv-radius-pill);
  padding: 8px 20px;
  transition: all 0.3s ease;
}
.btn-hv-outline:hover {
  background-color: var(--hv-primary);
  color: #ffffff !important;
}

/* Header Navbar */
.navbar-custom {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1040;
  transition: padding 0.3s ease;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 14px 0;
  pointer-events: none;
}

.header-inner-wrap {
  pointer-events: auto;
  transition: all 0.3s ease;
  width: 1260px;
  max-width: min(96vw, 1380px);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 104, 55, 0.16);
  border-top: 1.5px solid rgba(0, 104, 55, 0.28) !important;
  border-radius: 50px;
  padding: 12px 20px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 104, 55, 0.06) !important;
  display: flex;
  align-items: center;
  justify-content: center !important;
  gap: 1.4rem;
  flex-wrap: nowrap !important;
}

html[data-theme="dark"] .header-inner-wrap {
  background: rgba(18, 24, 20, 0.94);
  border-color: rgba(57, 181, 74, 0.3);
  border-top: 1.5px solid rgba(74, 222, 128, 0.35) !important;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.65), 0 2px 10px rgba(57, 181, 74, 0.15) !important;
}

/* Scrolled State: Tăng cường độ nổi khối và tách bạch */
.navbar-custom.navbar-scrolled {
  padding: 8px 0;
}
.navbar-custom.navbar-scrolled .header-inner-wrap {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(0, 104, 55, 0.2);
  border-top: 1.5px solid rgba(0, 104, 55, 0.32) !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 104, 55, 0.08) !important;
  padding: 6px 20px !important;
}
html[data-theme="dark"] .navbar-custom.navbar-scrolled .header-inner-wrap {
  background: rgba(15, 20, 17, 0.98);
  border-color: rgba(57, 181, 74, 0.38);
  border-top: 1.5px solid rgba(74, 222, 128, 0.4) !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.8), 0 2px 12px rgba(57, 181, 74, 0.2) !important;
}

.header-left-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap !important;
}

.main-desktop-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap !important;
  gap: 4px;
}

.header-right-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap !important;
  gap: 8px;
}

@media (min-width: 1200px) {
  .header-inner-wrap {
    padding: 7px 24px;
    gap: 1.8rem;
  }
  .main-desktop-nav {
    gap: 6px;
  }
}

@media (max-width: 1199.98px) and (min-width: 992px) {
  .header-inner-wrap {
    gap: 0.75rem;
    padding: 6px 12px;
  }
  .nav-link-custom {
    padding: 5px 7px !important;
    font-size: 0.82rem !important;
  }
  .btn-header-consult {
    padding: 0 10px !important;
    font-size: 0.82rem !important;
  }
}

@media (max-width: 991.98px) {
  .navbar-custom {
    padding: 8px 12px;
  }
  .header-inner-wrap {
    width: 100%;
    max-width: 100%;
    justify-content: space-between !important;
    gap: 0.5rem;
    padding: 6px 14px;
    border-radius: 50px;
  }
}

.navbar-custom .nav-link-custom {
  color: #121513 !important;
}

html[data-theme="dark"] .navbar-custom .nav-link-custom {
  color: #ffffff !important;
}

.nav-link-custom {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 11px;
  border-radius: var(--hv-radius-sm);
  transition: all 0.25s ease;
  white-space: nowrap !important;
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: var(--atv-primary) !important;
  background: rgba(57, 181, 74, 0.12);
}

html[data-theme="light"] .nav-link-custom:hover,
html[data-theme="light"] .nav-link-custom.active {
  color: var(--atv-primary-dark) !important;
  background: rgba(0, 104, 55, 0.08);
}

.mobile-menu-toggle-btn {
  color: #121513 !important;
}
html[data-theme="dark"] .mobile-menu-toggle-btn {
  color: #ffffff !important;
}

.header-logo,
.footer-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.header-logo:hover,
.footer-logo:hover {
  transform: scale(1.03);
}

html[data-theme="dark"] .logo-light {
  display: none !important;
}
html[data-theme="dark"] .logo-dark {
  display: inline-block !important;
}
html[data-theme="light"] .logo-light {
  display: inline-block !important;
}
html[data-theme="light"] .logo-dark {
  display: none !important;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: rgba(0, 104, 55, 0.08);
  border: 1.5px solid rgba(0, 104, 55, 0.25);
  color: #121513 !important;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

html[data-theme="dark"] .theme-toggle-btn {
  background: rgba(57, 181, 74, 0.15);
  border: 1.5px solid rgba(57, 181, 74, 0.4);
  color: #4ade80 !important;
}

.theme-toggle-btn:hover {
  transform: scale(1.1) rotate(15deg);
  border-color: var(--hv-primary);
}

/* Disable individual CSS transitions during theme switch so browser snaps DOM instantly without 6000px recalculation lag */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition: none !important;
}

/* Theme Transition Ripple & Icons Flip Animation */
::view-transition-group(root) {
  animation-duration: 0.75s !important;
  z-index: 999999 !important;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation: none !important;
  mix-blend-mode: normal !important;
  display: block !important;
  height: 100% !important;
  width: 100% !important;
}

::view-transition-old(root) {
  z-index: 1 !important;
}

::view-transition-new(root) {
  z-index: 999999 !important;
}

.theme-ripple-wave {
  position: fixed;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  animation: themeRippleExpand 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  z-index: 99999;
  pointer-events: none;
}

@keyframes themeRippleExpand {
  from {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.95;
  }
  to {
    transform: translate(-50%, -50%) scale(450);
    opacity: 1;
  }
}

.sun-spin {
  animation: sunRotate 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.moon-spin {
  animation: moonFlip 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes sunRotate {
  0% {
    transform: rotate(-120deg) scale(0.3);
    opacity: 0;
  }
  100% {
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
}
@keyframes moonFlip {
  0% {
    transform: rotate(120deg) scale(0.3);
    opacity: 0;
  }
  100% {
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
}

/* ================= HEADER ACTION BUTTONS HARMONIZATION ================= */
.header-left-wrap {
  flex-shrink: 0;
}

.btn-header-hotline {
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 15px !important;
  font-family: var(--font-heading);
  font-size: 0.86rem !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1.5px solid rgba(57, 181, 74, 0.4) !important;
  color: #ffffff !important;
  transition: all 0.25s ease !important;
  white-space: nowrap !important;
}

.btn-header-hotline .header-hotline-icon {
  color: var(--atv-primary) !important;
  stroke: var(--atv-primary) !important;
  transition: transform 0.25s ease;
}

.btn-header-hotline:hover {
  background: var(--atv-primary) !important;
  border-color: var(--atv-primary) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(57, 181, 74, 0.4);
}

.btn-header-hotline:hover .header-hotline-icon {
  color: #ffffff !important;
  stroke: #ffffff !important;
  transform: rotate(15deg) scale(1.1);
}

html[data-theme="light"] .btn-header-hotline {
  background: #ffffff !important;
  border: 1.5px solid rgba(0, 104, 55, 0.22) !important;
  color: #0d1a11 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .btn-header-hotline:hover {
  background: #006837 !important;
  border-color: #006837 !important;
  color: #ffffff !important;
}

html[data-theme="light"] .btn-header-hotline:hover .header-hotline-icon {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

/* Consultation CTA Button (ATV Brand Palette: #39B54A -> #006837) */
.btn-header-consult {
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 17px !important;
  font-family: var(--font-heading);
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  background: linear-gradient(135deg, #39b54a 0%, #006837 100%) !important;
  border: 1.5px solid transparent !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(57, 181, 74, 0.35) !important;
  transition: all 0.25s ease !important;
  white-space: nowrap !important;
}

.btn-header-consult .header-consult-icon {
  color: #ffffff !important;
  stroke: #ffffff !important;
  transition: transform 0.25s ease;
}

.btn-header-consult:hover {
  background: linear-gradient(135deg, #2fa13e 0%, #004d28 100%) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(57, 181, 74, 0.5) !important;
}

.btn-header-consult:hover .header-consult-icon {
  transform: translateY(-2px) rotate(-10deg) scale(1.1);
}

.spin-animation {
  animation: spinSvg 0.9s linear infinite;
  display: inline-block;
}

@keyframes spinSvg {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 1. HERO SECTION (Home Page) */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111111;
  color: #ffffff;
  padding-top: 80px;
}

.hero-bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.25;
  z-index: 1;
}

.glow-green {
  top: -15%;
  right: -10%;
  background: radial-gradient(circle, var(--hv-primary) 0%, transparent 70%);
}

.glow-gold {
  bottom: -20%;
  left: -10%;
  background: radial-gradient(circle, var(--hv-gold) 0%, transparent 70%);
}

.hero-badge {
  background: rgba(0, 177, 64, 0.15);
  border: 1px solid rgba(0, 177, 64, 0.4);
  color: #4ade80;
  padding: 8px 18px;
  border-radius: var(--hv-radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #00b140;
  box-shadow: 0 0 10px #00b140;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.7;
  }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #d1d5db;
  max-width: 680px;
  margin: 0 auto;
}

/* 2. GLASS CARD & FLEET SWIPER */
.glass-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--hv-radius-lg);
  overflow: hidden;
  position: relative;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

html[data-theme="dark"] .glass-card {
  background: var(--hv-bg-dark-card);
  border: 1px solid var(--hv-border-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hover-shadow-green:hover {
  transform: translateY(-6px);
  border-color: var(--hv-primary);
  box-shadow: 0 16px 36px var(--hv-primary-glow);
}

/* Card Badge on Top-Left */
.badge-gold {
  position: absolute;
  top: 14px;
  left: 14px;
  right: auto;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--hv-radius-pill);
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Big Faint Car Watermark Icon on Top-Right of Card */
.card-car-watermark {
  position: absolute;
  top: 8px;
  right: 12px;
  color: #ffffff;
  opacity: 0.25;
  font-size: 2.8rem;
  z-index: 2;
  pointer-events: none;
  transition:
    transform 0.4s ease,
    opacity 0.3s ease,
    color 0.3s ease;
}

.glass-card:hover .card-car-watermark {
  transform: scale(1.15) rotate(-6deg);
  opacity: 0.45;
  color: var(--hv-primary);
}

.card-img-wrapper {
  position: relative;
  overflow: hidden;
  background: #000;
}

.card-img-wrapper img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover .card-img-wrapper img {
  transform: scale(1.06);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2) 0%,
    transparent 40%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 1;
}

/* Minimalist Clean Specs Badges */
.car-spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--hv-radius-pill);
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #374151;
}

html[data-theme="dark"] .car-spec-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d1d5db;
}

.car-spec-pill.pill-fuel-gas {
  background: rgba(0, 177, 64, 0.1);
  border-color: rgba(0, 177, 64, 0.3);
  color: var(--hv-primary);
}

.car-spec-pill.pill-fuel-ev {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #d97706;
}
html[data-theme="dark"] .car-spec-pill.pill-fuel-ev {
  color: #f59e0b;
}

/* Swiper Navigation Custom Buttons */
.product-swiper .swiper-button-prev,
.product-swiper .swiper-button-next {
  top: 36% !important;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  backdrop-filter: blur(6px);
  color: #1a1a1a !important;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

html[data-theme="dark"] .product-swiper .swiper-button-prev,
html[data-theme="dark"] .product-swiper .swiper-button-next {
  background: rgba(26, 26, 26, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
}

.news-swiper .swiper-button-prev,
.news-swiper .swiper-button-next {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  color: #1a1a1a !important;
}

html[data-theme="dark"] .news-swiper .swiper-button-prev,
html[data-theme="dark"] .news-swiper .swiper-button-next {
  background: rgba(26, 26, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
}

.swiper-button-prev:after,
.swiper-button-next:after {
  font-size: 1.05rem !important;
  font-weight: bold;
}
.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: var(--hv-primary) !important;
  border-color: var(--hv-primary) !important;
  color: #fff !important;
  transform: scale(1.1);
}
.swiper-pagination-bullet-active {
  background: var(--hv-primary) !important;
  width: 24px !important;
  border-radius: 10px !important;
}

/* Line Clamp 2 */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.8em;
  line-height: 1.4em;
}

/* 3. LUXURY BOOKING & FILTER FORMS */
.search-box-luxury {
  background-color: #ffffff;
  border: 1.5px solid #d1d5db;
  border-radius: var(--hv-radius-pill);
  overflow: hidden;
  transition: all 0.3s ease;
}
.search-box-luxury:focus-within {
  border-color: var(--hv-primary);
  box-shadow: 0 0 0 3px var(--hv-primary-glow);
}
.search-box-luxury input {
  color: var(--hv-text-dark) !important;
}
.search-box-luxury input::placeholder {
  color: #6b7280 !important;
  opacity: 1;
}
html[data-theme="dark"] .search-box-luxury {
  background-color: #242424;
  border-color: rgba(255, 255, 255, 0.12);
}
html[data-theme="dark"] .search-box-luxury:focus-within {
  border-color: var(--hv-primary);
}
html[data-theme="dark"] .search-box-luxury input {
  color: #f3f4f6 !important;
}
html[data-theme="dark"] .search-box-luxury input::placeholder {
  color: #9ca3af !important;
  opacity: 1;
}

/* Custom Luxury Sort Dropdown Theme Styles */
.custom-luxury-dropdown #sortDropdownTrigger {
  background-color: #ffffff;
  color: #111827;
  border: 1.5px solid #d1d5db;
  transition: all 0.25s ease;
}
.custom-luxury-dropdown #sortDropdownTrigger:hover,
.custom-luxury-dropdown #sortDropdownTrigger:focus {
  border-color: var(--hv-primary);
  color: #111827;
}
.custom-luxury-dropdown .dropdown-menu {
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.custom-luxury-dropdown .custom-sort-item {
  color: #1f2937;
  font-weight: 500;
  transition: all 0.2s ease;
}
.custom-luxury-dropdown .custom-sort-item:hover,
.custom-luxury-dropdown .custom-sort-item.active {
  background-color: rgba(0, 177, 64, 0.1);
  color: var(--hv-primary);
}

html[data-theme="dark"] .custom-luxury-dropdown #sortDropdownTrigger {
  background-color: #242424 !important;
  color: #f3f4f6 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}
html[data-theme="dark"] .custom-luxury-dropdown #sortDropdownTrigger:hover,
html[data-theme="dark"] .custom-luxury-dropdown #sortDropdownTrigger:focus {
  border-color: var(--hv-primary) !important;
  color: #ffffff !important;
}
html[data-theme="dark"] .custom-luxury-dropdown .dropdown-menu {
  background-color: #242424 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}
html[data-theme="dark"] .custom-luxury-dropdown .custom-sort-item {
  color: #e5e7eb !important;
}
html[data-theme="dark"] .custom-luxury-dropdown .custom-sort-item:hover,
html[data-theme="dark"] .custom-luxury-dropdown .custom-sort-item.active {
  background-color: rgba(0, 177, 64, 0.2) !important;
  color: #00b140 !important;
}

.form-control-dark {
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  color: #1f2937;
  border-radius: var(--hv-radius-sm);
  padding: 10px 14px;
  transition: all 0.25s ease;
}
.form-control-dark:focus {
  background-color: #ffffff;
  border-color: var(--hv-primary);
  color: #111827;
  box-shadow: 0 0 0 3px var(--hv-primary-glow);
}
html[data-theme="dark"] .form-control-dark {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--hv-border-dark);
  color: #e5e7eb;
}
html[data-theme="dark"] .form-control-dark:focus {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--hv-primary);
  color: #ffffff;
}

/* Form Select Styling for Light & Dark */
.form-select.form-control-dark {
  background-color: #ffffff;
  border: 1.5px solid #d1d5db;
  color: #111827;
  border-radius: 10px;
  font-weight: 500;
  cursor: pointer;
}
.form-select.form-control-dark option {
  background-color: #ffffff;
  color: #111827;
  padding: 8px 12px;
}
html[data-theme="dark"] .form-select.form-control-dark {
  background-color: #242424;
  border-color: rgba(255, 255, 255, 0.14);
  color: #f3f4f6;
}
html[data-theme="dark"] .form-select.form-control-dark option {
  background-color: #242424;
  color: #f3f4f6;
}

/* Sidebar Hotline Card */
.sidebar-hotline-card {
  background: linear-gradient(
    135deg,
    rgba(0, 177, 64, 0.08) 0%,
    rgba(0, 177, 64, 0.02) 100%
  );
  border: 1.5px solid rgba(0, 177, 64, 0.25);
  border-radius: var(--hv-radius-lg);
  padding: 20px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}
html[data-theme="dark"] .sidebar-hotline-card {
  background: linear-gradient(
    135deg,
    rgba(0, 177, 64, 0.15) 0%,
    rgba(26, 26, 26, 0.6) 100%
  );
  border-color: rgba(0, 177, 64, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Luxury iOS Style Toggle Switch */
.luxury-switch-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  cursor: pointer;
  user-select: none;
}
.luxury-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
}
.luxury-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.luxury-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #d1d5db;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 34px;
}
html[data-theme="dark"] .luxury-slider {
  background-color: rgba(255, 255, 255, 0.2);
}
.luxury-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.luxury-switch input:checked + .luxury-slider {
  background-color: var(--hv-primary);
  box-shadow: 0 0 10px var(--hv-primary-glow);
}
.luxury-switch input:checked + .luxury-slider:before {
  transform: translateX(16px);
}

/* Service Card Watermark */
.card-service-watermark {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 3.8rem;
  color: #111827;
  opacity: 0.08;
  pointer-events: none;
  transition:
    transform 0.4s ease,
    opacity 0.3s ease,
    color 0.3s ease;
  z-index: 0;
}
html[data-theme="dark"] .card-service-watermark {
  color: #ffffff;
  opacity: 0.12;
}
.bg-card:hover .card-service-watermark {
  transform: scale(1.15) rotate(-6deg);
  opacity: 0.22;
  color: var(--hv-primary);
}

/* Specs Table & Vehicle Detail Aesthetics */
.detail-spec-badge {
  background: rgba(0, 177, 64, 0.06);
  border: 1px solid rgba(0, 177, 64, 0.18);
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
  transition: all 0.25s ease;
}
.detail-spec-badge:hover {
  transform: translateY(-2px);
  border-color: var(--hv-primary);
  background: rgba(0, 177, 64, 0.12);
}
.detail-spec-badge i {
  font-size: 1.35rem;
  color: var(--hv-primary);
  margin-bottom: 5px;
  display: block;
}
.detail-spec-badge .spec-label {
  font-size: 0.74rem;
  color: var(--hv-text-muted-light);
  display: block;
}
html[data-theme="dark"] .detail-spec-badge .spec-label {
  color: var(--hv-text-muted-dark);
}
.detail-spec-badge .spec-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--hv-text-dark);
  display: block;
}
html[data-theme="dark"] .detail-spec-badge .spec-value {
  color: #ffffff;
}

.detail-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
}
html[data-theme="dark"] .detail-feature-item {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
}

/* 4-Step Process: Clean Borderless Timeline with Synchronized Pulse Runner & Sequential Glowing */
.step-timeline-container {
  position: relative;
  padding: 10px 0;
}

.step-connecting-line {
  position: absolute;
  top: 38px;
  left: 12.5%;
  width: 75%;
  height: 3px;
  background: rgba(0, 177, 64, 0.25);
  border-radius: 4px;
  z-index: 0;
}
html[data-theme="dark"] .step-connecting-line {
  background: rgba(255, 255, 255, 0.2);
}

.step-pulse-runner {
  position: absolute;
  top: -5px;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #00b140;
  box-shadow: 0 0 16px 5px #00b140;
  animation: stepPulseRunnerMove 6s infinite linear;
}

@keyframes stepPulseRunnerMove {
  0% {
    left: 0%;
    opacity: 1;
    transform: scale(1);
  }
  25% {
    left: 33.33%;
    opacity: 1;
    transform: scale(1.3);
  }
  50% {
    left: 66.66%;
    opacity: 1;
    transform: scale(1.3);
  }
  75% {
    left: 100%;
    opacity: 1;
    transform: scale(1.3);
  }
  85% {
    left: 100%;
    opacity: 0;
    transform: scale(0.8);
  }
  95% {
    left: 0%;
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    left: 0%;
    opacity: 1;
    transform: scale(1);
  }
}

.step-circle-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--hv-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px var(--hv-primary-glow);
  position: relative;
  z-index: 2;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* Step 1 Circle: ONLY glows when runner is at 0% - 10% */
.step-col-item:nth-child(1) .step-circle-badge {
  animation: stepGlow1 6s infinite linear;
}
@keyframes stepGlow1 {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 16px var(--hv-primary-glow);
    background: var(--hv-primary);
  }
  4% {
    transform: scale(1.22);
    box-shadow: 0 0 28px 10px #00b140;
    background: #00d34d;
  }
  9% {
    transform: scale(1);
    box-shadow: 0 4px 16px var(--hv-primary-glow);
    background: var(--hv-primary);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 16px var(--hv-primary-glow);
    background: var(--hv-primary);
  }
}

/* Step 2 Circle: ONLY glows when runner touches at 25% - 35% */
.step-col-item:nth-child(2) .step-circle-badge {
  animation: stepGlow2 6s infinite linear;
}
@keyframes stepGlow2 {
  0%,
  20% {
    transform: scale(1);
    box-shadow: 0 4px 16px var(--hv-primary-glow);
    background: var(--hv-primary);
  }
  27% {
    transform: scale(1.22);
    box-shadow: 0 0 28px 10px #00b140;
    background: #00d34d;
  }
  34%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 16px var(--hv-primary-glow);
    background: var(--hv-primary);
  }
}

/* Step 3 Circle: ONLY glows when runner touches at 50% - 60% */
.step-col-item:nth-child(3) .step-circle-badge {
  animation: stepGlow3 6s infinite linear;
}
@keyframes stepGlow3 {
  0%,
  45% {
    transform: scale(1);
    box-shadow: 0 4px 16px var(--hv-primary-glow);
    background: var(--hv-primary);
  }
  52% {
    transform: scale(1.22);
    box-shadow: 0 0 28px 10px #00b140;
    background: #00d34d;
  }
  59%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 16px var(--hv-primary-glow);
    background: var(--hv-primary);
  }
}

/* Step 4 Circle: ONLY glows when runner touches at 75% - 85% */
.step-col-item:nth-child(4) .step-circle-badge {
  animation: stepGlow4 6s infinite linear;
}
@keyframes stepGlow4 {
  0%,
  70% {
    transform: scale(1);
    box-shadow: 0 4px 16px var(--hv-primary-glow);
    background: var(--hv-primary);
  }
  77% {
    transform: scale(1.22);
    box-shadow: 0 0 28px 10px #00b140;
    background: #00d34d;
  }
  84%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 16px var(--hv-primary-glow);
    background: var(--hv-primary);
  }
}

/* Luxury Car Detail Horizontal Scrollable Tabs */
.luxury-tabs-scroll,
.drag-scroll-x {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  border-bottom: 2px solid rgba(0, 177, 64, 0.18);
  padding: 4px 2px 0;
  gap: 6px;
  cursor: grab;
  user-select: none;
}
.luxury-tabs-scroll::-webkit-scrollbar,
.drag-scroll-x::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.luxury-tabs-scroll:active,
.drag-scroll-x:active {
  cursor: grabbing;
}
.luxury-tabs-scroll .nav-tab-btn {
  color: var(--hv-text-muted);
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 12px 12px 0 0 !important;
  padding: 10px 16px;
  background: transparent;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  cursor: pointer;
  outline: none;
}
@media (min-width: 992px) {
  .luxury-tabs-scroll .nav-tab-btn {
    font-size: 0.92rem;
    padding: 12px 20px;
  }
}
.luxury-tabs-scroll .nav-tab-btn:hover {
  color: var(--hv-primary);
  background: rgba(0, 177, 64, 0.06);
}
.luxury-tabs-scroll .nav-tab-btn.active {
  color: var(--hv-primary) !important;
  background: var(--hv-bg-card) !important;
  border: 1px solid rgba(0, 177, 64, 0.25) !important;
  border-bottom: 2px solid var(--hv-bg-card) !important;
  margin-bottom: -2px;
  box-shadow: 0 -4px 14px rgba(0, 177, 64, 0.1);
}

.contact-info-card {
  background: #f8faf8;
  border: 1px solid rgba(0, 104, 55, 0.12);
  border-radius: 12px !important;
  transition: all 0.25s ease;
}
.contact-info-card:hover {
  transform: translateY(-2px);
  border-color: var(--atv-primary);
  box-shadow: 0 6px 18px rgba(0, 104, 55, 0.08);
}
html[data-theme="dark"] .contact-info-card {
  background: #181e1a;
  border: 1px solid rgba(57, 181, 74, 0.25);
}
html[data-theme="dark"] .contact-info-card:hover {
  box-shadow: 0 6px 18px rgba(57, 181, 74, 0.2);
}.contact-card-label {
  font-size: 0.78rem;
  font-weight: 500;
  margin: 0;
  color: var(--hv-text-muted);
  display: block;
  line-height: 1.4;
}

html[data-theme="dark"] .luxury-tabs-scroll {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
html[data-theme="dark"] .luxury-tabs-scroll .nav-tab-btn.active {
  background: var(--hv-bg-card) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  border-bottom: 2px solid var(--hv-bg-card) !important;
}

/* ================= CIRCULAR IMAGE ZOOM LOUPE & THUMBNAILS ================= */
.car-img-zoom-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background-color: rgba(0, 0, 0, 0.04);
  cursor: crosshair;
}
.car-img-zoom-container img {
  display: block;
  width: 100%;
  transition: opacity 0.2s ease;
  user-select: none;
}
.car-zoom-loupe {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.5),
    inset 0 0 20px rgba(0, 0, 0, 0.25);
  display: none;
  pointer-events: none;
  background-repeat: no-repeat;
  z-index: 50;
  transform: translate(-50%, -50%);
}
.car-zoom-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  pointer-events: none;
  backdrop-filter: blur(4px);
  z-index: 5;
  transition: opacity 0.2s ease;
}
.car-zoom-fullscreen-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  backdrop-filter: blur(4px);
  z-index: 5;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.car-zoom-fullscreen-btn:hover {
  background: var(--hv-primary);
  color: #ffffff;
  transform: scale(1.08);
}

/* Gallery Thumbnails Active State */
#car-gallery-thumbs {
  padding-top: 6px;
  padding-bottom: 10px;
}
.gallery-thumb-item {
  width: 84px;
  height: 58px;
  flex-shrink: 0;
  border: 1.5px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.65;
  transition: all 0.2s ease;
  position: relative;
}
.gallery-thumb-item:hover {
  opacity: 0.95;
  transform: translateY(-2px);
}
.gallery-thumb-item.is-active {
  opacity: 1 !important;
  border: 1.5px solid var(--hv-primary) !important;
  box-shadow: 0 4px 12px var(--hv-primary-glow) !important;
  transform: translateY(-3px) scale(1.02) !important;
}

/* Rich Article & Content Typography */
.product-rich-content {
  font-size: 0.95rem;
  line-height: 1.8;
}
.product-rich-content h2,
.product-rich-content h3,
.product-rich-content h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--hv-text-dark);
}
html[data-theme="dark"] .product-rich-content h2,
html[data-theme="dark"] .product-rich-content h3,
html[data-theme="dark"] .product-rich-content h4 {
  color: var(--hv-text-light);
}
.product-rich-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--hv-radius-md);
  margin: 1rem 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.custom-radio-btn {
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-check:checked + .custom-radio-btn {
  background-color: var(--hv-primary) !important;
  border-color: var(--hv-primary) !important;
  color: #ffffff !important;
}

/* Universal Form Control & Placeholder Theme Styling */
.form-control,
.form-control-dark,
.form-select,
.form-input-atv {
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: #111827;
  border-radius: 10px;
  transition: all 0.2s ease;
}

input::placeholder,
textarea::placeholder,
select::placeholder,
.form-control::placeholder,
.form-control-dark::placeholder,
.form-input-atv::placeholder,
.chat-input-field::placeholder {
  color: #64746b !important;
  opacity: 1 !important;
}

.form-control:focus,
.form-control-dark:focus,
.form-select:focus,
.form-input-atv:focus {
  background-color: #ffffff;
  border-color: var(--atv-primary);
  box-shadow: 0 0 0 3px rgba(57, 181, 74, 0.2);
  color: #111827;
}

/* ================= DARK MODE SYNC FOR FORMS & PLACEHOLDERS ================= */
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-control-dark,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] .form-input-atv,
html[data-theme="dark"] #homeConsultForm input,
html[data-theme="dark"] #homeConsultForm textarea,
html[data-theme="dark"] #contact-form input,
html[data-theme="dark"] #contact-form textarea,
html[data-theme="dark"] .chat-input-field {
  background-color: #121513 !important;
  border-color: rgba(57, 181, 74, 0.35) !important;
  color: #f3f4f6 !important;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder,
html[data-theme="dark"] select::placeholder,
html[data-theme="dark"] .form-control::placeholder,
html[data-theme="dark"] .form-control-dark::placeholder,
html[data-theme="dark"] .form-input-atv::placeholder,
html[data-theme="dark"] .chat-input-field::placeholder,
html[data-theme="dark"] #homeConsultForm input::placeholder,
html[data-theme="dark"] #homeConsultForm textarea::placeholder,
html[data-theme="dark"] #contact-form input::placeholder,
html[data-theme="dark"] #contact-form textarea::placeholder {
  color: #94a399 !important;
  opacity: 1 !important;
}

html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .form-control-dark:focus,
html[data-theme="dark"] .form-select:focus,
html[data-theme="dark"] .form-input-atv:focus {
  background-color: #121513 !important;
  border-color: var(--atv-primary) !important;
  box-shadow: 0 0 0 3px rgba(57, 181, 74, 0.3) !important;
  color: #ffffff !important;
}

/* ================= CONTACT FORM LIGHT & DARK THEME STYLING ================= */
#contact-form label,
.contact-page label {
  color: var(--hv-text-muted) !important;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
html[data-theme="dark"] #contact-form label,
html[data-theme="dark"] .contact-page label {
  color: #9ca3af !important;
}

/* Contact Page Stat Cards & Polish */
.custom-luxury-dropdown .dropdown-toggle::after {
  display: none !important;
}

.contact-page .form-control,
.contact-page .form-select,
.custom-select-luxury {
  height: 44px;
  font-size: 0.88rem;
  padding: 8px 14px;
  border-radius: 8px !important;
  line-height: 1.5;
  transition: all 0.2s ease;
}
.contact-page textarea.form-control,
#contact-form textarea {
  height: auto !important;
  min-height: 90px;
}
.custom-select-luxury {
  cursor: pointer;
  background-position: right 14px center;
}

.contact-stat-card {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  border-radius: 12px !important;
}
.contact-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 177, 64, 0.12) !important;
  border-color: rgba(0, 177, 64, 0.3) !important;
}
.contact-info-link {
  transition: all 0.2s ease;
}
.contact-info-link:hover {
  color: var(--hv-primary) !important;
  transform: translateX(4px);
}

/* ================= BLOG FILTER BAR (STICKY DÍNH LIỀN HEADER) ================= */
.blog-filter-bar {
  position: sticky;
  top: 75px;
  z-index: 1025;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px !important;
  border: 1.5px solid rgba(57, 181, 74, 0.28) !important;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.08);
  transition: top 0.2s ease, box-shadow 0.2s ease;
}

html[data-theme="dark"] .blog-filter-bar {
  background: rgba(18, 24, 20, 0.95);
  border-color: rgba(57, 181, 74, 0.35) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

@media (max-width: 991.98px) {
  .blog-filter-bar {
    top: 54px;
  }
}

/* Custom Dropdown Styling for Blog Sort & Category */
.custom-blog-sort-item,
.custom-blog-cat-item {
  color: #121513 !important;
  transition: all 0.2s ease;
  background: transparent !important;
  cursor: pointer;
}
html[data-theme="dark"] .custom-blog-sort-item,
html[data-theme="dark"] .custom-blog-cat-item {
  color: #f1f5f3 !important;
}
.custom-blog-sort-item:hover,
.custom-blog-sort-item:focus,
.custom-blog-cat-item:hover,
.custom-blog-cat-item:focus {
  background: rgba(57, 181, 74, 0.12) !important;
  color: var(--atv-primary) !important;
}
.custom-blog-sort-item.active,
.custom-blog-cat-item.active {
  background: rgba(57, 181, 74, 0.16) !important;
  color: var(--atv-primary) !important;
  font-weight: 700;
}

/* ================= 8-STORY LEAD SWIPER CAROUSEL ================= */
.lead-swiper-prev,
.lead-swiper-next {
  border: 1px solid rgba(57, 181, 74, 0.35) !important;
  background: transparent;
  transition: all 0.25s ease;
}
.lead-swiper-prev:hover,
.lead-swiper-next:hover {
  background: var(--atv-primary) !important;
  color: #ffffff !important;
  border-color: var(--atv-primary) !important;
  box-shadow: 0 3px 10px rgba(57, 181, 74, 0.35);
  transform: translateY(-1px);
}
.lead-swiper-pagination .swiper-pagination-bullet {
  background: rgba(57, 181, 74, 0.3);
  opacity: 1;
  width: 9px;
  height: 9px;
  margin: 0 4px;
  transition: all 0.3s ease;
}
.lead-swiper-pagination .swiper-pagination-bullet-active {
  background: var(--atv-primary) !important;
  width: 26px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(57, 181, 74, 0.45);
}

.detail-random-swiper-prev,
.detail-random-swiper-next,
.about-random-swiper-prev,
.about-random-swiper-next {
  border: 1px solid rgba(57, 181, 74, 0.35) !important;
  background: transparent;
  transition: all 0.25s ease;
}
.detail-random-swiper-prev:hover,
.detail-random-swiper-next:hover,
.about-random-swiper-prev:hover,
.about-random-swiper-next:hover {
  background: var(--atv-primary) !important;
  color: #ffffff !important;
  border-color: var(--atv-primary) !important;
  box-shadow: 0 3px 10px rgba(57, 181, 74, 0.35);
  transform: translateY(-1px);
}
.detail-random-swiper-pagination .swiper-pagination-bullet,
.about-random-swiper-pagination .swiper-pagination-bullet {
  background: rgba(57, 181, 74, 0.3);
  opacity: 1;
  width: 9px;
  height: 9px;
  margin: 0 4px;
  transition: all 0.3s ease;
}
.detail-random-swiper-pagination .swiper-pagination-bullet-active,
.about-random-swiper-pagination .swiper-pagination-bullet-active {
  background: var(--atv-primary) !important;
  width: 26px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(57, 181, 74, 0.45);
}

.hover-translate-up {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hover-translate-up:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(57, 181, 74, 0.15) !important;
}

/* ================= GLOBAL BRAND BADGES ================= */
.hero-badge-atv,
.brand-tagline-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 16px !important;
  background: rgba(57, 181, 74, 0.1) !important;
  border: 1px solid rgba(57, 181, 74, 0.32) !important;
  border-radius: 50px !important;
  color: var(--atv-primary) !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(57, 181, 74, 0.1);
}

html[data-theme="dark"] .hero-badge-atv,
html[data-theme="dark"] .brand-tagline-badge {
  background: rgba(57, 181, 74, 0.16) !important;
  border-color: rgba(57, 181, 74, 0.42) !important;
  color: #4ade80 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* ================= THEME-AWARE SECTION BACKGROUNDS & COMPARISON BOXES ================= */
html[data-theme="light"] .bg-body-tertiary {
  background-color: #f1f5f2 !important;
}

html[data-theme="dark"] .bg-body-tertiary {
  background-color: #161c18 !important;
}

html[data-theme="dark"] .border-secondary {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* 4 Core Stat Boxes in Dark Mode */
html[data-theme="dark"] .about-stat-box {
  background-color: #1c221e !important;
  border-color: rgba(57, 181, 74, 0.3) !important;
}
html[data-theme="dark"] .about-stat-box .text-atv-green {
  color: #4ade80 !important;
}
html[data-theme="dark"] .about-stat-box .text-theme-main {
  color: #ffffff !important;
}
html[data-theme="dark"] .about-stat-box .text-theme-muted {
  color: #94a3b8 !important;
}

/* Section 4 Comparison Matrix Dark Mode Support */
html[data-theme="dark"] .compare-box-danger {
  background-color: rgba(239, 68, 68, 0.12) !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
}
html[data-theme="dark"] .compare-box-danger .text-danger {
  color: #f87171 !important;
}
html[data-theme="dark"] .compare-box-danger span {
  color: #fca5a5 !important;
}

html[data-theme="dark"] .compare-box-success {
  background-color: rgba(34, 197, 94, 0.12) !important;
  border-color: rgba(34, 197, 94, 0.4) !important;
}
html[data-theme="dark"] .compare-box-success .text-atv-green {
  color: #4ade80 !important;
}
html[data-theme="dark"] .compare-box-success span,
html[data-theme="dark"] .compare-box-success strong {
  color: #e2e8f0 !important;
}

html[data-theme="dark"] .compare-trust-banner {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
html[data-theme="dark"] .compare-trust-banner .text-theme-muted {
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .compare-trust-banner .text-theme-main {
  color: #ffffff !important;
}

/* ================= FOOTER MESSENGER BUTTON (THEME COMPATIBLE) ================= */
.footer-btn-messenger {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
  /* Light theme: xanh Messenger tươi sáng */
  background: #ffffff !important;
  color: #0084ff !important;
  border: 1.5px solid #0084ff !important;
  box-shadow: 0 2px 8px rgba(0, 132, 255, 0.15) !important;
}

.footer-btn-messenger:hover {
  background: #0084ff !important;
  color: #ffffff !important;
  border-color: #0084ff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 132, 255, 0.35) !important;
}

/* Dark theme: màu xanh neon mềm mại, không bị chói hay mất màu */
html[data-theme="dark"] .footer-btn-messenger {
  background: rgba(0, 132, 255, 0.12) !important;
  color: #38bdf8 !important;
  border: 1.5px solid rgba(56, 189, 248, 0.45) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .footer-btn-messenger:hover {
  background: #0084ff !important;
  color: #ffffff !important;
  border-color: #0084ff !important;
  box-shadow: 0 4px 16px rgba(0, 132, 255, 0.5) !important;
}

/* ================= FAST CONNECT CONTACT BUTTONS & OVERLAY (ABOUT PAGE) ================= */
.consult-overlay-contact {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.25rem 1.5rem;
  background: rgba(13, 18, 29, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.consult-overlay-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.45rem;
  font-family: inherit;
}

.consult-overlay-desc {
  font-size: 0.84rem;
  line-height: 1.5;
  color: #94a3b8;
  margin-bottom: 0.85rem;
}

.consult-fast-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.btn-fast-connect {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-radius: 12px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-fast-connect:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-fast-connect-hotline:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(74, 222, 128, 0.5);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.35);
}

.btn-fast-connect-zalo:hover {
  background: rgba(0, 132, 255, 0.2);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 6px 20px rgba(0, 132, 255, 0.35);
}

.btn-fast-connect .btn-fast-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-fast-info {
  display: flex;
  flex-direction: column;
}

.btn-fast-label {
  font-size: 0.72rem;
  line-height: 1.2;
  color: #94a3b8;
}

.btn-fast-val {
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
}

.consult-overlay-address {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.65rem;
}

/* Light Theme Overrides for Fast Connect */
html[data-theme="light"] .consult-overlay-contact {
  background: rgba(255, 255, 255, 0.92);
  border-top-color: rgba(0, 104, 55, 0.15);
  color: #0f172a;
}

html[data-theme="light"] .consult-overlay-title {
  color: #0f172a;
}

html[data-theme="light"] .consult-overlay-desc {
  color: #64748b;
}

html[data-theme="light"] .btn-fast-connect {
  background: #ffffff;
  border-color: rgba(0, 104, 55, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .btn-fast-connect:hover {
  background: #f0fdf4;
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 6px 18px rgba(0, 104, 55, 0.12);
}

html[data-theme="light"] .btn-fast-connect-hotline:hover {
  background: #f0fdf4;
  border-color: #22c55e;
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.18);
}

html[data-theme="light"] .btn-fast-connect-zalo:hover {
  background: #f0f9ff;
  border-color: #0284c7;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.18);
}

html[data-theme="light"] .btn-fast-label {
  color: #64748b;
}

html[data-theme="light"] .btn-fast-val {
  color: #0f172a;
}

html[data-theme="light"] .consult-overlay-address {
  color: #64748b;
  border-top-color: rgba(0, 0, 0, 0.08);
}

/* ================= BLOG LEAD FEATURED CARD AESTHETICS ================= */
.blog-lead-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-radius: 16px !important;
  border: 1px solid rgba(57, 181, 74, 0.25) !important;
}
.blog-lead-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(57, 181, 74, 0.15) !important;
  border-color: rgba(57, 181, 74, 0.45) !important;
}
.blog-lead-card .card-img-wrapper img {
  transition: transform 0.5s ease;
}
.blog-lead-card:hover .card-img-wrapper img {
  transform: scale(1.03);
}

/* Regular Blog Card Enhancements */
.blog-card-item .bg-card {
  border: 1px solid rgba(57, 181, 74, 0.2) !important;
  border-radius: 16px !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.blog-card-item .bg-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(57, 181, 74, 0.16) !important;
  border-color: rgba(57, 181, 74, 0.45) !important;
}
.blog-card-item .card-img-wrapper img {
  transition: transform 0.45s ease;
}
.blog-card-item .bg-card:hover .card-img-wrapper img {
  transform: scale(1.04);
}

.blog-page {
  padding-top: 80px !important;
}
@media (max-width: 991.98px) {
  .blog-page {
    padding-top: 74px !important;
  }
}

/* Line clamp helpers */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ================= ARTICLE RICH CONTENT & DARK MODE TYPOGRAPHY ================= */
.article-content,
.product-rich-content {
  font-size: 1rem;
  line-height: 1.85;
  color: #374151;
}
.article-content p,
.product-rich-content p {
  margin-bottom: 1.25rem;
}
.article-content img,
.product-rich-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.article-content blockquote,
.product-rich-content blockquote {
  padding: 1rem 1.25rem;
  background: rgba(0, 177, 64, 0.06);
  border-left: 4px solid var(--hv-primary);
  border-radius: 0 10px 10px 0;
  margin: 1.5rem 0;
  font-style: italic;
}

/* Dark Mode Article Content Text */
html[data-theme="dark"] .article-content,
html[data-theme="dark"] .article-content p,
html[data-theme="dark"] .article-content span,
html[data-theme="dark"] .article-content li,
html[data-theme="dark"] .article-content div:not([class*="bg-"]),
html[data-theme="dark"] .product-rich-content,
html[data-theme="dark"] .product-rich-content p,
html[data-theme="dark"] .product-rich-content span,
html[data-theme="dark"] .product-rich-content li {
  color: #d1d5db !important;
}

html[data-theme="dark"] .article-content strong,
html[data-theme="dark"] .article-content b,
html[data-theme="dark"] .article-content h1,
html[data-theme="dark"] .article-content h2,
html[data-theme="dark"] .article-content h3,
html[data-theme="dark"] .article-content h4,
html[data-theme="dark"] .article-content h5,
html[data-theme="dark"] .article-content h6,
html[data-theme="dark"] .product-rich-content strong,
html[data-theme="dark"] .product-rich-content b,
html[data-theme="dark"] .product-rich-content h1,
html[data-theme="dark"] .product-rich-content h2,
html[data-theme="dark"] .product-rich-content h3,
html[data-theme="dark"] .product-rich-content h4 {
  color: #f9fafb !important;
}

html[data-theme="dark"] .article-content blockquote,
html[data-theme="dark"] .product-rich-content blockquote {
  background: rgba(255, 255, 255, 0.05) !important;
  border-left-color: var(--hv-primary) !important;
  color: #e5e7eb !important;
}

html[data-theme="dark"] .article-content a:not([class*="btn"]),
html[data-theme="dark"] .product-rich-content a:not([class*="btn"]) {
  color: #4ade80 !important;
}

/* Luxury Custom Dropdown */
.luxury-custom-select .luxury-select-menu {
  display: none;
}
.luxury-custom-select.is-open .luxury-select-menu {
  display: block;
}
.luxury-select-item {
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}
.luxury-select-item:hover,
.luxury-select-item.is-selected {
  background-color: rgba(0, 177, 64, 0.15);
  color: var(--hv-primary);
}

/* Feature Icon Box */
.icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--hv-radius-md);
  background: rgba(0, 177, 64, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 5. NEWS & MAGAZINE CARDS */
.news-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--hv-radius-lg);
  overflow: hidden;
  padding: 12px;
  transition: all 0.35s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}
html[data-theme="dark"] .news-card {
  background: var(--hv-bg-dark-card);
  border: 1px solid var(--hv-border-dark);
}
.news-card:hover {
  transform: translateY(-5px);
  border-color: var(--hv-primary);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}
.news-img-wrapper img {
  transition: transform 0.5s ease;
}
.news-card:hover .news-img-wrapper img {
  transform: scale(1.05);
}

/* 6. FLOATING WIDGETS */
.floating-contact-group {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1060;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.floating-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: none;
  cursor: pointer;
  padding: 0;
}

.floating-btn svg {
  stroke: #ffffff !important;
  width: 22px;
  height: 22px;
  display: block;
}

.floating-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.floating-ai {
  background: linear-gradient(135deg, #39b54a 0%, #006837 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-toggle-icon-bot,
.chat-toggle-icon-close {
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease;
}

.chat-toggle-icon-close {
  display: none !important;
}

#chat-toggle-btn.active .chat-toggle-icon-bot {
  display: none !important;
}

#chat-toggle-btn.active .chat-toggle-icon-close {
  display: flex !important;
  transform: rotate(90deg);
}

#chat-toggle-btn.active .floating-ai-ping {
  display: none !important;
}

#chat-toggle-btn.active {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45) !important;
}

.floating-ai-ping {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  background-color: #22c55e;
  border: 2px solid #fff;
  border-radius: 50%;
  animation: pulse-ping 2s infinite;
}

@keyframes pulse-ping {
  0% {
    transform: scale(0.9);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.5;
  }
  100% {
    transform: scale(0.9);
    opacity: 1;
  }
}

.floating-zalo {
  background: #0088cc !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
}

.floating-phone {
  background: linear-gradient(135deg, #00b140 0%, #009636 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 4px 15px rgba(0, 177, 64, 0.4) !important;
}

/* Back to Top Floating Button with Dynamic Circular Scroll Progress */
#back-to-top,
.floating-top {
  --scroll-progress: 0deg;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: conic-gradient(
    var(--atv-primary) 0deg var(--scroll-progress),
    rgba(120, 140, 125, 0.3) var(--scroll-progress) 360deg
  ) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  display: none;
  place-items: center;
  position: relative;
  border: none !important;
  z-index: 1060 !important;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

#back-to-top::before,
.floating-top::before {
  content: "";
  position: absolute;
  inset: 3.5px;
  border-radius: 50%;
  background-color: #141a16;
  transition: background-color 0.3s ease;
  z-index: 0;
}

html[data-theme="light"] #back-to-top::before,
html[data-theme="light"] .floating-top::before {
  background-color: #ffffff;
}

#back-to-top > svg,
.floating-top > svg {
  position: relative;
  z-index: 1;
  color: #39b54a !important;
  stroke: #39b54a !important;
  transition: transform 0.2s ease;
}

html[data-theme="light"] #back-to-top > svg,
html[data-theme="light"] .floating-top > svg {
  color: #006837 !important;
  stroke: #006837 !important;
}

#back-to-top:hover,
.floating-top:hover {
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 8px 25px rgba(57, 181, 74, 0.5);
}

#back-to-top:hover > svg,
.floating-top:hover > svg {
  transform: translateY(-2px);
}

/* 7. LUXURY AI CHAT PANEL */
.chat-panel {
  position: fixed;
  bottom: 24px;
  right: 86px;
  width: 380px;
  max-width: calc(100vw - 110px);
  height: 540px;
  max-height: calc(100vh - 80px);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  z-index: 1080 !important;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  transform-origin: bottom right;
  animation: slideUpChat 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 767.98px) {
  .chat-panel {
    right: 12px;
    bottom: 16px;
    left: 12px;
    width: auto;
    max-width: calc(100vw - 24px);
    height: calc(100vh - 100px);
  }
}

html[data-theme="dark"] .chat-panel {
  background: #1f1f1f;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.chat-panel.active {
  display: flex;
}

@keyframes slideUpChat {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chat-header {
  background: linear-gradient(135deg, #39b54a 0%, #006837 100%);
  padding: 14px 18px;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(57, 181, 74, 0.25);
}

.chat-header-avatar {
  width: 36px;
  height: 36px;
  padding: 3px;
  flex-shrink: 0;
}
.chat-header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.chat-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #4ade80;
  box-shadow: 0 0 6px #4ade80;
  display: inline-block;
}

.chat-messages {
  flex-grow: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #f9fafb;
}

html[data-theme="dark"] .chat-messages {
  background: #181818;
}

.msg-container {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.msg-container.user {
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  padding: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  flex-shrink: 0;
}
.msg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.msg-avatar-status {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  border: 1.5px solid #fff;
}

.msg-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 82%;
  word-break: break-word;
}

.msg-bubble-bot {
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  border-top-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
html[data-theme="dark"] .msg-bubble-bot {
  background: #262626;
  color: #f3f4f6;
  border-color: rgba(255, 255, 255, 0.1);
}

.msg-bubble-user {
  background: linear-gradient(135deg, #39b54a 0%, #006837 100%);
  color: #ffffff;
  border-top-right-radius: 4px;
  box-shadow: 0 2px 10px rgba(57, 181, 74, 0.25);
}

.chat-quick-suggestions {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08) !important;
}
html[data-theme="dark"] .chat-quick-suggestions {
  background: #1f1f1f;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.chat-chip-btn {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #374151;
  font-size: 0.78rem;
  font-weight: 500;
  border-radius: 10px;
  padding: 5px 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.chat-chip-btn:hover {
  background: rgba(57, 181, 74, 0.12);
  border-color: var(--atv-primary);
  color: var(--atv-primary);
}
html[data-theme="dark"] .chat-chip-btn {
  background: #2a2a2a;
  border-color: rgba(255, 255, 255, 0.12);
  color: #d1d5db;
}

.chat-followup-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  width: 100%;
}

.chat-followup-title {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6b7280;
}

html[data-theme="dark"] .chat-followup-title {
  color: #9ca3af;
}

.chat-followup-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chat-followup-pill {
  background: #f0fdf4;
  border: 1px solid rgba(57, 181, 74, 0.3);
  color: #166534;
  font-size: 0.76rem;
  font-weight: 500;
  border-radius: 20px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.chat-followup-pill:hover {
  background: #39b54a;
  color: #ffffff;
  border-color: #39b54a;
  transform: translateY(-1px);
}

html[data-theme="dark"] .chat-followup-pill {
  background: rgba(57, 181, 74, 0.15);
  border-color: rgba(57, 181, 74, 0.35);
  color: #86efac;
}

html[data-theme="dark"] .chat-followup-pill:hover {
  background: #39b54a;
  color: #ffffff;
}

.chat-input-wrapper {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08) !important;
}
html[data-theme="dark"] .chat-input-wrapper {
  background: #1f1f1f;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.chat-input-field {
  border-radius: 10px 0 0 10px !important;
  padding-left: 14px !important;
  background: #f9fafb !important;
  border: 1px solid #d1d5db !important;
  border-right: none !important;
  font-size: 0.9rem !important;
}
html[data-theme="dark"] .chat-input-field {
  background: #2a2a2a !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
}

.chat-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--atv-primary, #39b54a);
  color: #ffffff;
  border: 1px solid var(--atv-primary, #39b54a);
  border-left: none;
  border-radius: 0 10px 10px 0 !important;
  padding: 0 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-submit-btn:hover {
  background: #2e963c;
  border-color: #2e963c;
  color: #ffffff;
}

.chat-submit-btn:active {
  transform: scale(0.97);
}

/* Typing indicator */
.typing-indicator span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9ca3af;
  margin: 0 1px;
  animation: bounceDot 1.4s infinite ease-in-out both;
}
.typing-indicator span:nth-child(1) {
  animation-delay: -0.32s;
}
.typing-indicator span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes bounceDot {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

/* 8. FOOTER SECTION */
.footer-section {
  padding: 55px 0 25px;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  background-color: #f1f5f2;
  color: #2b3830;
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.04) !important;
  position: relative;
  z-index: 10;
}

html[data-theme="dark"] .footer-section {
  background-color: #101512 !important;
  color: #d1dad4 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35) !important;
}

.footer-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

/* Mobile Menu Drawer */
.mobile-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.mobile-menu-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: #ffffff;
  z-index: 1060;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 20px;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
}
html[data-theme="dark"] .mobile-menu-drawer {
  background: var(--hv-bg-dark);
}
.mobile-menu-drawer.active {
  right: 0;
}

.mobile-drawer-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: #1f2937;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: var(--hv-radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}
html[data-theme="dark"] .mobile-drawer-link {
  color: #e5e7eb;
}
.mobile-drawer-link:hover,
.mobile-drawer-link.active {
  background: rgba(0, 177, 64, 0.12);
  color: var(--hv-primary);
}

/* ==========================================================================
   MOBILE RESPONSIVE ENHANCEMENTS & BOTTOM SHEETS
   ========================================================================== */

/* Hero Mobile Upward Shift (-3rem) */
@media (max-width: 767.98px) {
  .hero-content {
    margin-top: -3rem !important;
  }
}

/* Watermark Background Icons on Mobile */
.watermark-icon,
.contact-card-watermark {
  position: absolute;
  right: 10px;
  bottom: 6px;
  font-size: 3.5rem;
  opacity: 0.1;
  color: var(--hv-primary);
  pointer-events: none;
  line-height: 1;
}
html[data-theme="dark"] .watermark-icon,
html[data-theme="dark"] .contact-card-watermark {
  opacity: 0.15;
}

/* Specs Badges Equal Height */
.detail-spec-badge {
  height: 100%;
  min-height: 82px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Gallery Thumbnails Prev/Next Navigation Buttons */
.gallery-thumbs-slider-wrapper {
  position: relative;
}
.gallery-thumb-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(11, 15, 25, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
  font-size: 0.8rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
}
.gallery-thumb-nav-btn:hover {
  background: var(--hv-primary);
  border-color: var(--hv-primary);
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
}
.gallery-thumb-nav-btn.prev {
  left: 2px;
}
.gallery-thumb-nav-btn.next {
  right: 2px;
}

/* Mobile Sticky Filter & Sort Bar (Under Header) */
.mobile-sticky-filter-wrapper {
  position: sticky;
  top: 67px;
  z-index: 1010;
  padding: 6px 0;
  background: var(--hv-bg-body);
  transition: all 0.25s ease;
}

.mobile-sticky-filter-inner {
  border-radius: 14px !important;
  background: var(--hv-bg-card) !important;
  border: 1px solid rgba(140, 140, 140, 0.2) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Customer Review Card Formatting */
.client-review-card {
  border-radius: 12px !important;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.client-review-card:hover {
  border-color: rgba(0, 177, 64, 0.35) !important;
  box-shadow: 0 8px 20px rgba(0, 177, 64, 0.08);
}
.client-review-card .text-warning {
  white-space: nowrap !important;
  display: inline-flex !important;
}

/* Mobile Bottom Sheet Backdrop & Sheets */
.mobile-sheet-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1080;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}
.mobile-sheet-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 85vh;
  background: var(--hv-bg-card);
  border-radius: 24px 24px 0 0;
  z-index: 1090;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-bottom-sheet.is-open {
  transform: translateY(0);
}

.mobile-bottom-sheet-handle {
  width: 44px;
  height: 5px;
  border-radius: 4px;
  background: var(--hv-text-muted);
  opacity: 0.35;
  margin: 10px auto 4px;
  flex-shrink: 0;
}

.mobile-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(140, 140, 140, 0.15);
  flex-shrink: 0;
}

.mobile-sheet-close {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--hv-text-muted);
  cursor: pointer;
  padding: 0 4px;
}

.mobile-sheet-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 20px;
  -webkit-overflow-scrolling: touch;
}

.mobile-sheet-footer {
  display: flex;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid rgba(140, 140, 140, 0.15);
  background: var(--hv-bg-card);
  flex-shrink: 0;
}

/* Form Select and Option styling for Bottom Sheets */
.mobile-bottom-sheet select,
.mobile-bottom-sheet .form-select {
  background-color: var(--hv-bg-card) !important;
  color: var(--hv-text-main) !important;
  border: 1px solid rgba(140, 140, 140, 0.28) !important;
  padding: 11px 14px !important;
  border-radius: 12px !important;
  font-size: 0.93rem !important;
  font-weight: 500 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  cursor: pointer;
}

.mobile-bottom-sheet select:focus,
.mobile-bottom-sheet .form-select:focus {
  border-color: var(--hv-primary) !important;
  box-shadow: 0 0 0 3px rgba(0, 177, 64, 0.18) !important;
  outline: none !important;
}

.mobile-bottom-sheet select option,
select option {
  background-color: #ffffff;
  color: #0f172a;
  padding: 10px 14px;
}

html[data-theme="dark"] .mobile-bottom-sheet select option,
html[data-theme="dark"] select option {
  background-color: #1a2230 !important;
  color: #f8fafc !important;
}

html[data-theme="light"] .mobile-bottom-sheet select option,
html[data-theme="light"] select option {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

.mobile-sort-option-btn,
.mobile-blog-sort-btn {
  border: 1px solid rgba(140, 140, 140, 0.18);
  background: var(--hv-bg-card);
  color: var(--hv-text-main);
  font-size: 0.92rem;
  transition: all 0.2s ease;
}
.mobile-sort-option-btn:hover,
.mobile-blog-sort-btn:hover,
.mobile-sort-option-btn.active,
.mobile-blog-sort-btn.active {
  border-color: var(--hv-primary) !important;
  background: rgba(0, 177, 64, 0.1) !important;
  color: var(--hv-primary) !important;
  font-weight: 700;
}

/* Mobile Fixed Bottom Action Bar for Detail Page */
.mobile-detail-fixed-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: var(--hv-bg-card);
  border-top: 1px solid rgba(140, 140, 140, 0.18);
  padding: 10px 16px;
  display: flex;
  gap: 12px;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.btn-detail-call {
  flex: 1 1 50%;
  background: linear-gradient(135deg, #00b140, #009235);
  color: #ffffff !important;
  border-radius: 50px;
  padding: 11px 0;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0, 177, 64, 0.35);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.btn-detail-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 177, 64, 0.45);
}
.btn-detail-zalo {
  flex: 1 1 50%;
  background: linear-gradient(135deg, #0068ff, #0052cc);
  color: #ffffff !important;
  border-radius: 50px;
  padding: 11px 0;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0, 104, 255, 0.35);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.btn-detail-zalo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 104, 255, 0.45);
}

@media (max-width: 991.98px) {
  .car-detail-page {
    padding-bottom: 75px !important;
  }
  body:has(.mobile-detail-fixed-actions) .back-to-top,
  body:has(.mobile-detail-fixed-actions) .zalo-chat-widget {
    bottom: 76px !important;
  }
}
.car-detail-page {
  padding-bottom: 75px !important;
}
body:has(.mobile-detail-fixed-actions) .back-to-top,
body:has(.mobile-detail-fixed-actions) .zalo-chat-widget {
  bottom: 76px !important;
}

/* ==========================================================================
   ATV MEDIA - CORE SHARED COMPONENTS & CONTACT PAGE SYSTEM
   ========================================================================== */

/* 1. Brand Gradients & Badges */
.text-gradient-atv {
  background: linear-gradient(135deg, #39b54a 0%, #006837 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-atv-green {
  color: #39b54a !important;
}

.text-atv-sand {
  color: #e6d0c6 !important;
}

.border-atv {
  border-color: rgba(57, 181, 74, 0.3) !important;
}

.brand-tagline-badge {
  background: rgba(57, 181, 74, 0.12);
  border: 1px solid rgba(57, 181, 74, 0.3);
  border-radius: 10px;
}

html[data-theme="light"] .brand-tagline-badge {
  background: rgba(0, 104, 55, 0.08);
  border-color: rgba(0, 104, 55, 0.2);
}

/* 2. Brand Action Buttons */
.btn-atv-primary {
  background: linear-gradient(135deg, #39b54a 0%, #006837 100%);
  color: #ffffff !important;
  border: none;
  font-weight: 700;
  border-radius: 12px !important;
  padding: 11px 22px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 16px rgba(57, 181, 74, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none !important;
}

.btn-atv-primary:hover {
  background: linear-gradient(135deg, #2fa13e 0%, #004d28 100%);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(57, 181, 74, 0.45);
}

.btn-atv-outline {
  background: transparent;
  color: var(--atv-primary) !important;
  border: 1.5px solid var(--atv-primary);
  font-weight: 600;
  border-radius: 12px !important;
  padding: 9px 18px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none !important;
}

.btn-atv-outline:hover {
  background: var(--atv-primary);
  color: #ffffff !important;
  box-shadow: 0 5px 16px rgba(57, 181, 74, 0.3);
}

/* 3. Form Input Styling (Light & Dark Theme Compliant) */
.form-input-atv {
  background: #121513;
  color: #ffffff !important;
  border: 1.5px solid rgba(57, 181, 74, 0.35);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  transition: all 0.25s ease;
}

.form-input-atv::placeholder {
  color: #64748b;
  opacity: 0.85;
}

.form-input-atv:focus {
  background: #151a17;
  color: #ffffff !important;
  border-color: var(--atv-primary);
  box-shadow: 0 0 0 3px rgba(57, 181, 74, 0.2);
}

html[data-theme="light"] .form-input-atv {
  background: #f9fbf9;
  color: #121513 !important;
  border: 1.5px solid rgba(0, 104, 55, 0.25);
}

html[data-theme="light"] .form-input-atv::placeholder {
  color: #94a3b8;
  opacity: 0.9;
}

html[data-theme="light"] .form-input-atv:focus {
  background: #ffffff;
  color: #121513 !important;
  border-color: var(--atv-primary);
  box-shadow: 0 0 0 3px rgba(57, 181, 74, 0.2);
}

/* 4. Service Chips Checkbox Selection */
.service-check-chip {
  cursor: pointer;
  margin: 0;
  user-select: none;
}

.service-check-chip input[type="checkbox"] {
  display: none !important;
}

.service-check-chip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e1e7e3;
  transition: all 0.2s ease;
}

html[data-theme="light"] .service-check-chip span {
  background: #f0f5f1;
  border-color: rgba(0, 104, 55, 0.18);
  color: #181d1a;
}

.service-check-chip input[type="checkbox"]:checked + span {
  background: var(--atv-primary) !important;
  border-color: var(--atv-primary) !important;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(57, 181, 74, 0.35);
}

/* Button Select All Services */
.btn-select-all-services {
  font-size: 0.76rem;
  font-weight: 600;
  border: 1px dashed rgba(57, 181, 74, 0.45);
  background: rgba(57, 181, 74, 0.1);
  color: var(--atv-primary);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-select-all-services:hover,
.btn-select-all-services.active {
  background: var(--atv-primary) !important;
  border-color: var(--atv-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(57, 181, 74, 0.3);
}

html[data-theme="light"] .btn-select-all-services {
  background: #e8f5ec;
  border-color: rgba(0, 104, 55, 0.3);
  color: #006837;
}

html[data-theme="light"] .btn-select-all-services:hover,
html[data-theme="light"] .btn-select-all-services.active {
  background: #006837 !important;
  border-color: #006837 !important;
  color: #ffffff !important;
}

/* 5. Contact Info Cards & Channel Styling */
.contact-info-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}

.contact-info-card:hover {
  background: rgba(57, 181, 74, 0.1);
  border-color: rgba(57, 181, 74, 0.35);
  transform: translateX(4px);
}

html[data-theme="light"] .contact-info-card {
  background: #f8faf8;
  border: 1px solid rgba(0, 104, 55, 0.1);
}

html[data-theme="light"] .contact-info-card:hover {
  background: #eef7f0;
  border-color: rgba(0, 104, 55, 0.25);
  transform: translateX(4px);
}

.contact-badge-mini {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
}

html[data-theme="light"] .contact-badge-mini {
  background: #f8faf8;
  border: 1px solid rgba(0, 104, 55, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.contact-map-frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(57, 181, 74, 0.25);
}

html[data-theme="light"] .contact-map-frame {
  border-color: rgba(0, 104, 55, 0.18);
  box-shadow: 0 4px 15px rgba(0, 104, 55, 0.06);
}

/* Contact Consultation Showcase Banner */
.contact-consult-showcase {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  background: #0d121d;
}

.contact-consult-img {
  width: 100%;
  height: 165px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.contact-consult-showcase:hover .contact-consult-img {
  transform: scale(1.03);
}

.contact-consult-overlay {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, transparent 0%, rgba(13, 18, 29, 0.88) 60%, rgba(13, 18, 29, 0.98) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.contact-consult-status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.contact-consult-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.contact-consult-status-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: #f8fafc;
}

.contact-consult-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: #94a3b8;
}

/* Light Theme Overrides */
html[data-theme="light"] .contact-consult-showcase {
  border-color: rgba(0, 104, 55, 0.14);
  box-shadow: 0 4px 18px rgba(0, 104, 55, 0.08);
  background: #f8faf8;
}

html[data-theme="light"] .contact-consult-overlay {
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.88) 50%, rgba(255, 255, 255, 0.98) 100%);
}

html[data-theme="light"] .contact-consult-status-text {
  color: #0f172a;
}

html[data-theme="light"] .contact-consult-sub {
  color: #64748b;
}

/* ==========================================================================
   CONTACT PAGE ENTRANCE & STAGGERED CHARACTER SLIDE-UP ANIMATIONS
   ========================================================================== */

/* 1. Staggered Character Slide-Up */
.contact-title-prefix {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px);
  animation: contactPrefixSlide 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

@keyframes contactPrefixSlide {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-split-chars {
  display: inline-flex;
  align-items: baseline;
  overflow: hidden;
  vertical-align: bottom;
  padding: 0 4px 6px 2px;
  margin-bottom: -6px;
  line-height: 1.15;
}

.contact-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(140%);
  background: linear-gradient(135deg, #39b54a 0%, #006837 100%);
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: #39b54a;
  animation: contactCharSlideUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--char-delay, 0.05s);
  will-change: transform, opacity;
}

.contact-char-space {
  display: inline-block;
  width: 0.32em;
}

@keyframes contactCharSlideUp {
  0% {
    opacity: 0;
    transform: translateY(140%);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 2. Page Elements Entrance Animations */
.contact-animate-fade-down {
  opacity: 0;
  transform: translateY(-12px);
  animation: contactFadeDown 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.contact-animate-fade-up {
  opacity: 0;
  transform: translateY(16px);
  animation: contactFadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.contact-delay-1 { animation-delay: 0.02s; }
.contact-delay-2 { animation-delay: 0.04s; }
.contact-delay-3 { animation-delay: 0.06s; }
.contact-delay-4 { animation-delay: 0.08s; }

@keyframes contactFadeDown {
  from {
    opacity: 0;
    transform: translateY(-22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.contact-page {
  padding-top: 80px !important;
}

@media (max-width: 991.98px) {
  .contact-page {
    padding-top: 74px !important;
  }
}
