/**
 * HATI SOLUTIONS - CSS System & High-Tech Aesthetics
 * Brand Palette:
 * - Primary Brand Red: #D32F2F (Crimson Red)
 * - Deep Wine Red: #9A0200
 * - Dark Obsidian: #0B0F19 (Dark Surface)
 * - Pure Frost: #F8FAFC (Light Surface)
 * Typography: Plus Jakarta Sans (Headings) & Inter (Body)
 */

:root {
  --app-primary: #D32F2F;
  --app-primary-hover: #B71C1C;
  --app-primary-dark: #9A0200;
  --app-primary-glow: rgba(211, 47, 47, 0.35);

  --app-accent-cyan: #0EA5E9;
  --app-accent-cyan-hover: #0284C7;
  --app-accent-amber: #F59E0B;
  --app-accent-slate: #64748B;

  --app-bg-dark: #0B0F19;
  --app-bg-dark-card: #111827;
  --app-bg-dark-card-hover: #1E293B;

  --app-bg-light: #F8FAFC;
  --app-bg-light-card: #FFFFFF;
  --app-bg-section-alt: #F1F5F9;


  --app-bg-dark: var(--app-bg-dark);
  --app-bg-dark-card: var(--app-bg-dark-card);
  --app-bg-dark-card-hover: var(--app-bg-dark-card-hover);
  --app-bg-light: var(--app-bg-light);
  --app-bg-light-card: var(--app-bg-light-card);
  --app-bg-section-alt: var(--app-bg-section-alt);

  --app-primary: var(--app-primary);
  --app-primary-hover: var(--app-primary-hover);
  --app-primary-glow: var(--app-primary-glow);

  --app-accent-red: var(--app-primary);
  --app-accent-red-hover: var(--app-primary-hover);

  --app-silver: #94A3B8;
  --app-gold: #F59E0B;

  --app-text-light: #F8FAFC;
  --app-text-muted-dark: #94A3B8;
  --app-text-dark: #0F172A;
  --app-text-muted-light: #475569;

  --app-border-dark: rgba(255, 255, 255, 0.08);
  --app-border-light: rgba(15, 23, 42, 0.08);

  --app-radius-sm: 8px;
  --app-radius-md: 12px;
  --app-radius-lg: 16px;
  --app-radius-xl: 20px;
  --app-radius-pill: 9999px;

  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', 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;
}
.rounded-bottom-4 {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* 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(--app-bg-light);
  color: #1a202c;
}

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

@media (max-width: 768px) {
  body:not(.page-home) {
    padding-top: 88px;
  }
}

@media (max-width: 480px) {
  body:not(.page-home) {
    padding-top: 60px;
  }
}

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: #FFFFFF;
  color: #1e293b;
}

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

html[data-theme="light"] .bg-card,
body.theme-light .bg-card,
.bg-card {
  background-color: #ffffff;
  border: 1px solid rgba(154, 2, 0, 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;
  font-weight: 700;
}

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

/* Dark Theme */
html[data-theme="dark"] {
  --app-bg-section-alt: #111827;
  --app-bg-card: #131B2E;
}

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

html[data-theme="dark"] .bg-card,
body.theme-dark .bg-card {
  background-color: #131B2E;
  border: 1px solid rgba(211, 47, 47, 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;
  font-weight: 700;
}

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

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

.text-gradient-red {
  background: linear-gradient(135deg, #D32F2F 0%, #B71C1C 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-red:hover {
  color: var(--app-primary);
  transition: color 0.2s ease;
}

/* Subpage Hero Header */
.subpage-hero {
  background: radial-gradient(
    circle at 50% 0%,
    rgba(211, 47, 47, 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(211, 47, 47, 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(--app-radius-pill);
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #0F172A;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

html[data-theme="dark"] .subpage-badge {
  background: #1E293B;
  border-color: rgba(255, 255, 255, 0.12);
  color: #F8FAFC;
}

/* 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;
    padding-bottom: 3.5rem;
  }
}

/* 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-app-primary,
.btn-primary-hv {
  background: linear-gradient(135deg, var(--app-primary) 0%, #B71C1C 100%);
  color: #ffffff;
  border: none;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--app-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(--app-primary-glow);
}
.btn-app-primary:hover,
.btn-primary-hv:hover {
  background: linear-gradient(135deg, #00d34d 0%, var(--app-primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--app-primary-glow);
}

.btn-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border-radius: var(--app-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;
  font-family: var(--font-heading);
  text-decoration: none;
}
.btn-outline-glass:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-app-hotline {
  background-color: var(--app-accent-red);
  color: #ffffff;
  border: none;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: var(--app-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-app-hotline:hover {
  background-color: var(--app-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-app-outline {
  background: transparent;
  color: var(--app-primary);
  border: 1.5px solid var(--app-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--app-radius-pill);
  padding: 8px 20px;
  transition: all 0.3s ease;
}
.btn-app-outline:hover {
  background-color: var(--app-primary);
  color: #ffffff;
}

/* ==========================================================================
   Header Navbar (Full Width Standard Layout)
   ========================================================================== */

.navbar-app-container,
.navbar-custom {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1050;
  transition: all 0.3s ease;
  background: transparent;
  pointer-events: auto;
}

/* Top Announcement Bar */
.app-topbar {
  background: #4A0303;
  color: #FFE4E6;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 0;
  width: 100%;
  transition: background 0.3s ease;
}

html[data-theme="light"] .app-topbar {
  background: #4A0303;
  color: #FFE4E6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .app-topbar {
  background: #3B0000;
  color: #FECDD3;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-topbar-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-topbar-company {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-topbar-tag {
  color: #FFFFFF;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.app-topbar-slogan {
  color: #FECDD3;
  font-weight: 600;
  display: none;
}

@media (min-width: 1200px) {
  .app-topbar-slogan {
    display: inline;
  }
}

@media (max-width: 768px) {
  .app-topbar-company {
    display: none;
  }

  .app-topbar-inner {
    justify-content: center;
    padding: 0 12px;
  }

  .app-topbar-contacts {
    gap: 8px;
    font-size: 0.74rem;
  }

  .app-topbar-divider:nth-of-type(2),
  .app-topbar-contacts a[href*="quangtri"] {
    display: none;
  }
}

@media (max-width: 480px) {
  .app-topbar {
    display: none;
  }
}

.app-topbar-contacts {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-topbar-link {
  color: #FFFFFF;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: opacity 0.2s ease;
  font-size: 0.8rem;
}

.app-topbar-link:hover {
  color: #FFE4E6;
  opacity: 0.9;
}

.app-topbar-link strong {
  color: #FFFFFF;
}

.app-topbar-divider {
  color: rgba(255, 255, 255, 0.35);
}

.app-topbar-socials {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.app-topbar-social-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  text-decoration: none;
  transition: all 0.22s ease;
}

.app-topbar-social-btn:hover {
  background: #FFFFFF;
  color: #D32F2F;
  transform: translateY(-1px) scale(1.08);
}

/* Main Navigation Bar (100% Full Width Edge-to-Edge Red Background) */
.header-inner-wrap {
  position: relative;
  z-index: 100;
  width: 100%;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #B71C1C 0%, #D32F2F 50%, #9A0200 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 4px 20px rgba(183, 28, 28, 0.35);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="light"] .header-inner-wrap {
  background: linear-gradient(135deg, #B71C1C 0%, #D32F2F 50%, #9A0200 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 4px 20px rgba(183, 28, 28, 0.35);
}

html[data-theme="dark"] .header-inner-wrap {
  background: linear-gradient(135deg, #7A0000 0%, #A51414 50%, #5E0000 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.5);
}

body:not(.page-home) {
  padding-top: 134px;
}

@media (max-width: 991px) {
  body:not(.page-home) {
    padding-top: 90px;
  }
}

@media (max-width: 768px) {
  body:not(.page-home) {
    padding-top: 88px;
  }
}

@media (max-width: 480px) {
  body:not(.page-home) {
    padding-top: 60px;
  }
}


.navbar-scrolled .header-inner-wrap {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.header-inner-container {
  max-width: 1560px;
  width: 100%;
  margin: 0 auto;
  padding: 0 124px;
  height: 92px;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: padding 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              min-height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              gap 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 1440px) {
  .header-inner-container {
    padding: 0 64px;
    gap: 16px;
  }
}

@media (max-width: 1200px) {
  .header-inner-container {
    padding: 0 24px;
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .header-inner-container {
    padding: 0 16px;
    gap: 12px;
  }
}

/* 1. Logo (To hơn, dài hơn ở trạng thái chưa cuộn) */
.brand-logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), margin 0.35s ease;
}

.header-logo {
  height: 84px;
  max-height: 88px;
  width: auto;
  min-width: 140px;
  object-fit: contain;
  filter: brightness(1) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
  transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s ease;
}

@media (max-width: 1240px) {
  .header-logo {
    height: 72px;
    min-width: 120px;
  }
}

.brand-logo-link:hover .header-logo {
  transform: scale(1.03);
}

/* 2. Center Zone in Row 1 (Search Box unscrolled / Morphed Nav scrolled) */
.header-center-zone {
  flex: 1 1 auto;
  max-width: 600px;
  height: 50px;
  margin: 0 auto;
  position: relative;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 1400px) {
  .header-center-zone {
    max-width: 640px;
  }
}

/* A. Khung tìm kiếm ở Row 1 (Border radius <= 12px) */
.header-search-wrap {
  width: 100%;
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  z-index: 120;
  transform: translateY(-50%) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.35s ease;
}

.header-search-form {
  display: flex;
  align-items: center;
  width: 100%;
  background: #FFFFFF;
  border-radius: 10px;
  padding: 4px 6px 4px 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
  border: 2px solid transparent;
  transition: all 0.25s ease;
}

.header-search-form:focus-within {
  border-color: #FFE4E6;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25), 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.header-search-box {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  min-width: 0;
}

.header-search-icon-left {
  color: #D32F2F;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.header-search-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: #0F172A;
  font-weight: 500;
  padding: 6px 0;
}

.header-search-input::placeholder {
  color: #94A3B8;
  font-weight: 400;
  font-size: 0.84rem;
}

.header-search-clear-btn {
  background: #F1F5F9;
  border: none;
  color: #64748B;
  border-radius: 6px;
  width: 22px;
  height: 22px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  margin-right: 4px;
  transition: all 0.18s ease;
}

.header-search-clear-btn.visible {
  display: inline-flex;
}

.header-search-clear-btn:hover {
  background: #E2E8F0;
  color: #D32F2F;
}

.header-search-btn {
  background: linear-gradient(135deg, #D32F2F 0%, #B71C1C 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.22s ease;
  box-shadow: 0 2px 8px rgba(211, 47, 47, 0.35);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.header-search-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-search-btn-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.header-search-btn:hover {
  background: linear-gradient(135deg, #B71C1C 0%, #9A0200 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.45);
}

@media (max-width: 991px) {
  .header-mobile-call-btn {
    display: none !important;
  }

  .header-center-zone {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    height: auto;
    margin: 0 8px;
    position: relative;
    z-index: 120;
    overflow: visible;
  }

  .header-search-wrap {
    display: block !important;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    background: transparent;
    padding: 0;
    box-shadow: none;
    border: none;
    z-index: 120;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .navbar-scrolled .header-search-wrap {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  .header-morph-nav-wrap {
    display: none !important;
  }

  .header-search-dropdown {
    position: fixed;
    top: 62px;
    left: 8px;
    right: 8px;
    width: auto;
    max-height: calc(85vh - 62px);
    border-radius: 14px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.4);
    z-index: 1060;
  }

  .header-search-form {
    height: 40px;
    min-height: 40px;
    padding: 2px 3px 2px 12px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }

  .header-search-box {
    gap: 6px;
  }

  .header-search-icon-left {
    display: none !important;
  }

  .header-search-btn-text {
    display: none !important;
  }

  .header-search-btn {
    width: 36px;
    height: 36px;
    min-height: 36px;
    min-width: 36px;
    padding: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-search-btn-icon svg {
    width: 17px;
    height: 17px;
  }

  .header-search-input {
    font-size: 0.84rem;
    padding: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  .header-center-zone {
    margin: 0 6px;
  }

  .header-search-form {
    height: 38px;
    min-height: 38px;
    padding: 2px 2px 2px 10px;
    border-radius: 9px;
  }

  .header-search-box {
    gap: 4px;
  }

  .header-search-btn {
    width: 34px;
    height: 34px;
    min-height: 34px;
    min-width: 34px;
    padding: 0;
    border-radius: 7px;
  }

  .header-search-btn-icon svg {
    width: 16px;
    height: 16px;
  }

  .header-search-input {
    font-size: 0.8rem;
  }

  .header-search-dropdown {
    top: 58px;
    left: 6px;
    right: 6px;
    max-height: calc(85vh - 58px);
  }
}

/* Dropdown tìm kiếm thông minh (Border radius <= 12px) */
.header-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.06);
  padding: 16px;
  z-index: 1060;
  max-height: 480px;
  overflow-y: auto;
  display: none;
  animation: searchDropFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.header-search-dropdown.open {
  display: block;
}

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

.search-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #F1F5F9;
}

.search-section-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748B;
}

.search-clear-all-btn {
  background: none;
  border: none;
  font-size: 0.74rem;
  color: #D32F2F;
  cursor: pointer;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 6px;
}

.search-clear-all-btn:hover {
  background: #FEE2E2;
}

.search-history-tags,
.search-suggest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.search-history-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 0.80rem;
  color: #334155;
  cursor: pointer;
  transition: all 0.18s ease;
}

.search-history-item:hover {
  background: #FEE2E2;
  border-color: #FECDD3;
  color: #B71C1C;
}

.search-history-text {
  cursor: pointer;
}

.search-history-del-btn {
  background: none;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 3px 5px;
  margin-left: 2px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  line-height: 1;
  transition: all 0.15s ease;
}

.search-history-del-btn:hover {
  color: #D32F2F;
  background: rgba(211, 47, 47, 0.12);
}

.search-history-del-btn svg,
.search-history-del-btn path {
  pointer-events: none;
}

.search-suggest-pill {
  background: #F1F5F9;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 0.80rem;
  color: #1E293B;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.18s ease;
}

.search-suggest-pill:hover {
  background: #D32F2F;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.search-mt-3 {
  margin-top: 14px;
}

.search-featured-products-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-featured-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  background: #F8FAFC;
  border: 1px solid #F1F5F9;
  transition: all 0.18s ease;
}

.search-featured-item:hover {
  background: #FFF1F2;
  border-color: #FECDD3;
  transform: translateX(3px);
}

.search-featured-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  flex-shrink: 0;
}

.search-featured-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.search-featured-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: #0F172A;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-featured-item:hover .search-featured-name {
  color: #D32F2F;
}

.search-featured-price {
  font-size: 0.80rem;
  font-weight: 700;
  color: #D32F2F;
}

.search-featured-price del {
  font-size: 0.72rem;
  color: #94A3B8;
  font-weight: 400;
  margin-left: 6px;
}

/* Dynamic Live Suggestions when typing */
.search-live-results {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.search-live-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: #0F172A;
  font-size: 0.84rem;
  background: #F8FAFC;
  transition: all 0.18s ease;
}

.search-live-item:hover {
  background: #FFF1F2;
  color: #D32F2F;
  transform: translateX(3px);
}

.search-live-thumb {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  flex-shrink: 0;
}

.search-live-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.search-live-name {
  font-size: 0.83rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: inherit;
}

.search-live-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
}

.search-live-price {
  color: #D32F2F;
  font-weight: 700;
}

.search-live-match {
  color: #D32F2F;
  font-weight: 700;
}

.search-live-cat {
  font-size: 0.72rem;
  color: #64748B;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.search-live-empty {
  padding: 12px;
  text-align: center;
  color: #64748B;
  font-size: 0.82rem;
  background: #F8FAFC;
  border-radius: 8px;
}

html[data-theme="dark"] .header-search-dropdown {
  background: #131B2E;
  border: 1px solid #334155;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

html[data-theme="dark"] .search-live-item {
  background: #1E293B;
  color: #F1F5F9;
}

html[data-theme="dark"] .search-live-item:hover {
  background: rgba(211, 47, 47, 0.22);
  color: #EF4444;
}

html[data-theme="dark"] .search-live-thumb {
  background: #0F172A;
  border-color: #334155;
}

html[data-theme="dark"] .search-live-cat {
  background: #0F172A;
  border-color: #334155;
  color: #94A3B8;
}

html[data-theme="dark"] .search-live-empty {
  background: #1E293B;
  color: #94A3B8;
}

html[data-theme="dark"] .search-history-item {
  background: #1E293B;
  border-color: #334155;
  color: #E2E8F0;
}

html[data-theme="dark"] .search-history-item:hover {
  background: rgba(211, 47, 47, 0.22);
  border-color: #EF4444;
  color: #FCA5A5;
}

html[data-theme="dark"] .search-suggest-pill {
  background: #1E293B;
  color: #E2E8F0;
}

/* B. Morphed Navigation in Row 1 (Chỉ trượt vào khi cuộn chuột) */
.header-morph-nav-wrap {
  width: 100%;
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  z-index: 125;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(calc(-50% + 18px)) scale(0.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.35s ease;
}

/* 3. Row 2: Secondary Desktop Nav Bar (CÓ MÀU NỀN ĐỎ RƯỢU ĐẬM RÕ NÉT) */
.header-nav-row {
  width: 100%;
  position: relative;
  z-index: 90;
  background: #8E0000;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  max-height: 52px;
  opacity: 1;
  overflow: visible;
  transform: translateY(0);
  transition: max-height 0.38s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease,
              transform 0.35s ease,
              padding 0.35s ease;
}

html[data-theme="dark"] .header-nav-row {
  background: #500000;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.header-nav-container {
  max-width: 1560px;
  margin: 0 auto;
  padding: 4px 24px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1023px) {
  .header-nav-row {
    display: none;
  }
}

@media (min-width: 1024px) {
  .navbar-scrolled .header-inner-container {
    height: 72px;
    min-height: 72px;
    padding: 0 24px;
    gap: 28px;
  }

  .navbar-scrolled .brand-logo-link {
    transform: translateX(-14px);
  }

  .navbar-scrolled .header-logo {
    height: 56px;
    max-height: 58px;
    min-width: 0;
  }

  .navbar-scrolled .header-right-actions {
    transform: translateX(14px);
  }

  .navbar-scrolled .header-center-zone {
    max-width: 980px;
  }

  .navbar-scrolled .header-search-wrap {
    opacity: 0;
    transform: translateY(calc(-50% - 18px)) scale(0.96);
    visibility: hidden;
    pointer-events: none;
  }

  .navbar-scrolled .header-morph-nav-wrap {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    visibility: visible;
    pointer-events: auto;
  }

  .navbar-scrolled .header-nav-row {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    border-top-color: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
    padding: 0;
  }
}

/* 4. Main Desktop Menu (7 Navigation Items Balanced) */
.main-desktop-nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 1 auto;
}

@media (min-width: 1024px) {
  .main-desktop-nav {
    display: flex;
  }
}

@media (min-width: 1200px) {
  .main-desktop-nav {
    gap: 10px;
  }
}

@media (min-width: 1360px) {
  .main-desktop-nav {
    gap: 14px;
  }
}

@media (min-width: 1440px) {
  .main-desktop-nav {
    gap: 16px;
  }
}

.nav-link-custom {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 8px;
  transition: all 0.22s ease;
  white-space: nowrap;
  color: #FFFFFF;
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

@media (min-width: 1200px) {
  .nav-link-custom {
    font-size: 0.90rem;
    padding: 8px 14px;
  }
}

@media (min-width: 1360px) {
  .nav-link-custom {
    font-size: 0.92rem;
    padding: 8px 16px;
  }
}

@media (max-width: 1140px) {
  .nav-link-custom {
    font-size: 0.84rem;
    padding: 6px 10px;
  }
}

html[data-theme="light"] .nav-link-custom,
html[data-theme="dark"] .nav-link-custom {
  color: #FFFFFF;
}

.nav-link-custom:hover,
html[data-theme="light"] .nav-link-custom:hover,
html[data-theme="dark"] .nav-link-custom:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.2);
}

.nav-link-custom.active,
html[data-theme="light"] .nav-link-custom.active,
html[data-theme="dark"] .nav-link-custom.active,
body .nav-link-custom.active {
  color: #D32F2F;
  background: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

/* Dropdown Menu for "Danh mục sản phẩm" */
.app-nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.app-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.app-dropdown-arrow {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-nav-dropdown:hover .app-dropdown-arrow,
.app-nav-dropdown:focus-within .app-dropdown-arrow {
  transform: rotate(180deg);
}

/* ==========================================================================
   Mega Menu Ngang Dài 4 Cột Phong Cách NguyenCongPC / Phong Vũ
   ========================================================================== */
.app-nav-dropdown {
  position: static;
  display: inline-flex;
  align-items: center;
}

.header-nav-container,
.header-morph-nav-wrap,
.header-inner-container {
  position: relative;
}

.app-mega-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 1060px;
  max-width: calc(100vw - 32px);
  background: #FFFFFF;
  border-radius: 14px;
  padding: 16px 20px 14px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1060;
  cursor: default;
}

.app-mega-dropdown::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.app-nav-dropdown:hover .app-mega-dropdown,
.app-nav-dropdown:focus-within .app-mega-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(2px);
}

/* Mega Header */
.app-mega-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid #F1F5F9;
}

.app-mega-header-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #B71C1C;
  text-transform: uppercase;
}

.app-mega-header-icon {
  color: #D32F2F;
}

.app-mega-header-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #059669;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* Mega Grid 4 Cột */
.app-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 14px 0 12px;
}

.app-mega-col {
  display: flex;
  flex-direction: column;
}

.app-mega-col-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  margin-bottom: 6px;
  border-bottom: 2px solid #FEE2E2;
}

.app-mega-col-icon {
  color: #D32F2F;
  display: inline-flex;
  align-items: center;
}

.app-mega-col-title {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  color: #0F172A;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.app-mega-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-mega-item {
  margin: 0;
  padding: 0;
}

.app-mega-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: 7px;
  text-decoration: none;
  color: #334155;
  transition: all 0.18s ease;
}

.app-mega-link:hover {
  background: #FFF1F2;
  color: #B71C1C;
  transform: translateX(3px);
}

.app-mega-item-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #FEE2E2;
  color: #D32F2F;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.app-mega-link:hover .app-mega-item-icon {
  background: #D32F2F;
  color: #FFFFFF;
}

.app-mega-item-name {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: #1E293B;
  line-height: 1.25;
}

.app-mega-link:hover .app-mega-item-name {
  color: #B71C1C;
  font-weight: 700;
}

/* Tech Support Card ở Cột 4 - Thiết kế hiện đại sang trọng */
.app-mega-promo-box {
  margin-top: 10px;
  padding: 12px 14px 12px;
  border-radius: 12px;
  background: linear-gradient(145deg, #1E1B24 0%, #2D141A 100%);
  border: 1px solid rgba(211, 47, 47, 0.3);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  position: relative;
  overflow: hidden;
}

.app-mega-promo-box::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

.app-mega-promo-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.app-mega-promo-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #EF4444 0%, #B91C1C 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.4);
}

.app-mega-promo-heading {
  display: flex;
  flex-direction: column;
}

.app-mega-promo-tag {
  font-size: 0.64rem;
  font-weight: 800;
  color: #FBBF24;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

.app-mega-promo-title {
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
}

.app-mega-promo-desc {
  font-size: 0.72rem;
  color: #E2E8F0;
  line-height: 1.4;
  margin: 0 0 10px;
}

.app-mega-promo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: #FFFFFF;
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  padding: 7px 12px;
  border-radius: 7px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
  transition: all 0.22s ease;
}

.app-mega-promo-btn:hover {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.45);
}

/* Mega Footer */
.app-mega-footer {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid #F1F5F9;
}

.app-mega-all-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-radius: 8px;
  background: #FFF5F5;
  color: #D32F2F;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.app-mega-all-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-mega-all-right {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
}

.app-mega-all-btn:hover {
  background: #D32F2F;
  color: #FFFFFF;
}

/* Mobile Drawer Group Captions */
.mobile-group-caption {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px 4px;
  font-size: 0.70rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94A3B8;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
  margin-top: 4px;
}

.mobile-group-icon {
  color: #D32F2F;
}

/* Dark Mode cho Mega Menu */
html[data-theme="dark"] .app-mega-dropdown {
  background: #18191E;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .app-mega-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .app-mega-header-title {
  color: #FF8A80;
}

html[data-theme="dark"] .app-mega-header-badge {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34D399;
}

html[data-theme="dark"] .app-mega-col-header {
  border-bottom-color: rgba(211, 47, 47, 0.35);
}

html[data-theme="dark"] .app-mega-col-title {
  color: #F8FAFC;
}

html[data-theme="dark"] .app-mega-link {
  color: #CBD5E1;
}

html[data-theme="dark"] .app-mega-link:hover {
  background: rgba(211, 47, 47, 0.16);
  color: #FF8A80;
}

html[data-theme="dark"] .app-mega-item-icon {
  background: rgba(211, 47, 47, 0.25);
  color: #FF8A80;
}

html[data-theme="dark"] .app-mega-link:hover .app-mega-item-icon {
  background: #D32F2F;
  color: #FFFFFF;
}

html[data-theme="dark"] .app-mega-item-name {
  color: #E2E8F0;
}

html[data-theme="dark"] .app-mega-link:hover .app-mega-item-name {
  color: #FF8A80;
}

html[data-theme="dark"] .app-mega-promo-box {
  background: linear-gradient(145deg, #131118 0%, #200D13 100%);
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .app-mega-promo-desc {
  color: #94A3B8;
}

html[data-theme="dark"] .app-mega-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .app-mega-all-btn {
  background: rgba(211, 47, 47, 0.2);
  color: #FF8A80;
}

html[data-theme="dark"] .app-mega-all-btn:hover {
  background: #D32F2F;
  color: #FFFFFF;
}

html[data-theme="dark"] .mobile-group-caption {
  color: #64748B;
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

/* 3. Header Right Actions (Smart Adaptive Width) */
.header-right-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.btn-header-hotline {
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.16);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-header-hotline svg,
.btn-header-hotline .header-hotline-icon {
  color: #FFFFFF;
  stroke: #FFFFFF;
  fill: none;
  transition: all 0.25s ease;
}

@media (min-width: 1400px) {
  .btn-header-hotline {
    display: inline-flex;
  }
}

.btn-header-hotline:hover {
  background: #FFFFFF;
  color: #D32F2F;
  border-color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.btn-header-hotline:hover svg,
.btn-header-hotline:hover .header-hotline-icon {
  color: #D32F2F;
  stroke: #D32F2F;
}

.btn-header-consult {
  display: none;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  color: #D32F2F;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-header-consult svg,
.btn-header-consult .header-consult-icon {
  color: #D32F2F;
  stroke: #D32F2F;
  fill: none;
  transition: transform 0.25s ease;
}

@media (min-width: 1024px) {
  .btn-header-consult {
    display: inline-flex;
  }
}

@media (min-width: 1360px) {
  .btn-header-consult {
    padding: 10px 22px;
    font-size: 0.88rem;
    gap: 8px;
  }
}

.btn-header-consult:hover {
  background: #FFF1F2;
  color: #B71C1C;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-header-consult:hover svg,
.btn-header-consult:hover .header-consult-icon {
  color: #B71C1C;
  stroke: #B71C1C;
  transform: rotate(-8deg) scale(1.1);
}

.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  color: #FFFFFF;
}

html[data-theme="light"] .theme-toggle-btn,
html[data-theme="dark"] .theme-toggle-btn {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.05) rotate(12deg);
}

.theme-toggle-btn i {
  color: #FFFFFF;
}

.theme-toggle-btn i.theme-icon-moon,
.theme-toggle-btn i.moon-spin,
.theme-icon-moon,
.moon-spin {
  color: #4338ca;
}

.theme-toggle-btn:hover i.theme-icon-moon,
.theme-toggle-btn:hover i.moon-spin {
  color: #4f46e5;
}

.header-mobile-search-btn,
.header-theme-toggle-btn,
.mobile-menu-toggle-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.header-mobile-search-btn {
  display: none !important;
}

.mobile-menu-toggle-btn {
  display: none;
}

.header-theme-toggle-btn {
  display: inline-flex;
}

@media (max-width: 1023px) {
  .header-mobile-search-btn {
    display: none !important;
  }

  .mobile-menu-toggle-btn {
    display: inline-flex;
  }

  .header-theme-toggle-btn {
    display: none !important;
  }
}

.header-mobile-search-btn:hover,
.header-mobile-search-btn.active,
.header-theme-toggle-btn:hover,
.mobile-menu-toggle-btn:hover {
  background: #FFFFFF;
  color: #D32F2F;
  border-color: #FFFFFF;
}

.header-mobile-search-btn:hover svg,
.header-mobile-search-btn.active svg,
.header-theme-toggle-btn:hover .theme-icon,
.mobile-menu-toggle-btn:hover svg {
  color: #D32F2F;
  stroke: #D32F2F;
}

.mobile-search-svg,
.mobile-toggle-svg,
.header-theme-toggle-btn .theme-icon {
  width: 18px;
  height: 18px;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  stroke: currentColor;
}

.header-mobile-call-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #FFFFFF;
  color: #D32F2F;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
  .header-mobile-call-btn {
    display: none;
  }
}

@media (max-width: 768px) {
  .header-inner-container,
  .navbar-scrolled .header-inner-container {
    height: 60px;
    min-height: 60px;
    padding: 0 12px;
    gap: 8px;
  }

  .brand-logo-link,
  .navbar-scrolled .brand-logo-link {
    transform: none;
    margin: 0;
    padding: 0 0 0 10px;
  }

  .header-logo,
  .navbar-scrolled .header-logo {
    height: 38px;
    max-height: 42px;
    min-width: 0;
    width: auto;
  }

  .header-right-actions,
  .navbar-scrolled .header-right-actions {
    gap: 6px;
    transform: none;
  }

  .header-mobile-search-btn,
  .theme-toggle-btn,
  .header-mobile-call-btn,
  .mobile-menu-toggle-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 8px;
  }

  .mobile-search-svg,
  .mobile-toggle-svg,
  .header-theme-toggle-btn .theme-icon {
    width: 17px;
    height: 17px;
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  .header-inner-container,
  .navbar-scrolled .header-inner-container {
    height: 56px;
    min-height: 56px;
    padding: 0 8px;
    gap: 4px;
  }

  .brand-logo-link,
  .navbar-scrolled .brand-logo-link {
    padding: 0 0 0 8px;
  }

  .header-logo,
  .navbar-scrolled .header-logo {
    height: 34px;
    max-height: 38px;
  }

  .header-right-actions,
  .navbar-scrolled .header-right-actions {
    gap: 4px;
  }

  .header-mobile-search-btn,
  .theme-toggle-btn,
  .header-mobile-call-btn,
  .mobile-menu-toggle-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 7px;
  }

  .mobile-search-svg,
  .mobile-toggle-svg,
  .header-theme-toggle-btn .theme-icon {
    width: 16px;
    height: 16px;
    font-size: 16px;
  }
}

.mobile-nav-dropdown-wrap {
  width: 100%;
}

.mobile-nav-dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
  background: transparent;
  border: none;
  text-align: left;
  font-family: inherit;
}

.mobile-nav-dropdown-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.mobile-dropdown-chevron {
  transition: transform 0.25s ease;
}

.mobile-nav-dropdown-wrap.is-open .mobile-dropdown-chevron {
  transform: rotate(180deg);
  color: #D32F2F;
}

.mobile-submenu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 6px 0 6px 24px;
}

.mobile-nav-dropdown-wrap.is-open .mobile-submenu {
  display: flex;
}

.mobile-sub-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: #334155;
  transition: all 0.18s ease;
}

.mobile-sub-link:hover,
.mobile-sub-link:active {
  background: #FFF1F2;
  color: #D32F2F;
}

.mobile-sub-icon {
  color: #D32F2F;
  flex-shrink: 0;
}

.mobile-sub-link-all {
  font-weight: 700;
  color: #D32F2F;
  border-top: 1px dashed rgba(211, 47, 47, 0.2);
  margin-top: 4px;
  padding-top: 10px;
}

html[data-theme="dark"] .mobile-sub-link {
  color: #CBD5E1;
}

html[data-theme="dark"] .mobile-sub-link:hover {
  background: rgba(211, 47, 47, 0.15);
  color: #FF8A80;
}

/* 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;
}

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

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

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

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

.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;
  display: flex;
  align-items: center;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.header-mobile-call-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(154, 2, 0, 0.08);
  border: 1px solid rgba(154, 2, 0, 0.22);
  color: #9A0200;
  text-decoration: none;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

html[data-theme="dark"] .header-mobile-call-btn {
  background: rgba(211, 47, 47, 0.12);
  border-color: rgba(211, 47, 47, 0.35);
  color: #FF5252;
}

.header-mobile-call-btn:hover,
.header-mobile-call-btn:active {
  background: #9A0200;
  color: #ffffff;
  transform: translateY(-1px);
}

html[data-theme="dark"] .header-mobile-call-btn:hover,
html[data-theme="dark"] .header-mobile-call-btn:active {
  background: #D32F2F;
  border-color: #D32F2F;
  color: #ffffff;
}

.mobile-call-svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
}





.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(--app-primary) 0%, transparent 70%);
}

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

.hero-badge {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #0F172A;
  padding: 8px 18px;
  border-radius: var(--app-radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

html[data-theme="dark"] .hero-badge {
  background: #1E293B;
  border-color: rgba(255, 255, 255, 0.12);
  color: #F8FAFC;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #D32F2F;
  box-shadow: 0 0 10px #D32F2F;
  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(--app-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(--app-bg-dark-card);
  border: 1px solid var(--app-border-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hover-shadow-green:hover {
  transform: translateY(-6px);
  border-color: var(--app-primary);
  box-shadow: 0 16px 36px var(--app-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(--app-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(--app-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(--app-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(211, 47, 47, 0.1);
  border-color: rgba(211, 47, 47, 0.3);
  color: var(--app-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%;
  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;
  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;
}

.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;
}

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;
}

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

/* 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(--app-radius-pill);
  overflow: hidden;
  transition: all 0.3s ease;
}
.search-box-luxury:focus-within {
  border-color: var(--app-primary);
  box-shadow: 0 0 0 3px var(--app-primary-glow);
}
.search-box-luxury input {
  color: var(--app-text-dark);
}
.search-box-luxury input::placeholder {
  color: #6b7280;
  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(--app-primary);
}
html[data-theme="dark"] .search-box-luxury input {
  color: #f3f4f6;
}
html[data-theme="dark"] .search-box-luxury input::placeholder {
  color: #9ca3af;
  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(--app-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(211, 47, 47, 0.1);
  color: var(--app-primary);
}

html[data-theme="dark"] .custom-luxury-dropdown #sortDropdownTrigger {
  background-color: #242424;
  color: #f3f4f6;
  border-color: rgba(255, 255, 255, 0.15);
}
html[data-theme="dark"] .custom-luxury-dropdown #sortDropdownTrigger:hover,
html[data-theme="dark"] .custom-luxury-dropdown #sortDropdownTrigger:focus {
  border-color: var(--app-primary);
  color: #ffffff;
}
html[data-theme="dark"] .custom-luxury-dropdown .dropdown-menu {
  background-color: #242424;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
html[data-theme="dark"] .custom-luxury-dropdown .custom-sort-item {
  color: #e5e7eb;
}
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(211, 47, 47, 0.2);
  color: #D32F2F;
}

.form-control-dark {
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  color: #1f2937;
  border-radius: var(--app-radius-sm);
  padding: 10px 14px;
  transition: all 0.25s ease;
}
.form-control-dark:focus {
  background-color: #ffffff;
  border-color: var(--app-primary);
  color: #111827;
  box-shadow: 0 0 0 3px var(--app-primary-glow);
}
html[data-theme="dark"] .form-control-dark {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--app-border-dark);
  color: #e5e7eb;
}
html[data-theme="dark"] .form-control-dark:focus {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--app-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(211, 47, 47, 0.08) 0%,
    rgba(211, 47, 47, 0.02) 100%
  );
  border: 1.5px solid rgba(211, 47, 47, 0.25);
  border-radius: var(--app-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(211, 47, 47, 0.15) 0%,
    rgba(26, 26, 26, 0.6) 100%
  );
  border-color: rgba(211, 47, 47, 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(--app-primary);
  box-shadow: 0 0 10px var(--app-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(--app-primary);
}

/* Specs Table & Vehicle Detail Aesthetics */
.detail-spec-badge {
  background: rgba(211, 47, 47, 0.06);
  border: 1px solid rgba(211, 47, 47, 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(--app-primary);
  background: rgba(211, 47, 47, 0.12);
}
.detail-spec-badge i {
  font-size: 1.35rem;
  color: var(--app-primary);
  margin-bottom: 5px;
  display: block;
}
.detail-spec-badge .spec-label {
  font-size: 0.74rem;
  color: var(--app-text-muted-light);
  display: block;
}
html[data-theme="dark"] .detail-spec-badge .spec-label {
  color: var(--app-text-muted-dark);
}
.detail-spec-badge .spec-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--app-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(211, 47, 47, 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: #D32F2F;
  box-shadow: 0 0 16px 5px #D32F2F;
  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(--app-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(--app-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(--app-primary-glow);
    background: var(--app-primary);
  }
  4% {
    transform: scale(1.22);
    box-shadow: 0 0 28px 10px #D32F2F;
    background: #00d34d;
  }
  9% {
    transform: scale(1);
    box-shadow: 0 4px 16px var(--app-primary-glow);
    background: var(--app-primary);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 16px var(--app-primary-glow);
    background: var(--app-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(--app-primary-glow);
    background: var(--app-primary);
  }
  27% {
    transform: scale(1.22);
    box-shadow: 0 0 28px 10px #D32F2F;
    background: #00d34d;
  }
  34%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 16px var(--app-primary-glow);
    background: var(--app-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(--app-primary-glow);
    background: var(--app-primary);
  }
  52% {
    transform: scale(1.22);
    box-shadow: 0 0 28px 10px #D32F2F;
    background: #00d34d;
  }
  59%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 16px var(--app-primary-glow);
    background: var(--app-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(--app-primary-glow);
    background: var(--app-primary);
  }
  77% {
    transform: scale(1.22);
    box-shadow: 0 0 28px 10px #D32F2F;
    background: #00d34d;
  }
  84%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 16px var(--app-primary-glow);
    background: var(--app-primary);
  }
}

/* Luxury Car Detail Horizontal Scrollable Tabs */
.luxury-tabs-scroll,
.drag-scroll-x {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-bottom: 2px solid rgba(211, 47, 47, 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;
  width: 0;
  height: 0;
}
.luxury-tabs-scroll:active,
.drag-scroll-x:active {
  cursor: grabbing;
}
.luxury-tabs-scroll .nav-tab-btn {
  color: var(--app-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;
  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(--app-primary);
  background: rgba(211, 47, 47, 0.06);
}
.luxury-tabs-scroll .nav-tab-btn.active {
  color: var(--app-primary);
  background: var(--app-bg-card);
  border: 1px solid rgba(211, 47, 47, 0.25);
  border-bottom: 2px solid var(--app-bg-card);
  margin-bottom: -2px;
  box-shadow: 0 -4px 14px rgba(211, 47, 47, 0.1);
}

.contact-info-card {
  background: #FFFFFF;
  border: 1px solid rgba(154, 2, 0, 0.12);
  border-radius: 12px;
  transition: all 0.25s ease;
}
.contact-info-card:hover {
  transform: translateY(-2px);
  border-color: var(--app-primary);
  box-shadow: 0 6px 18px rgba(154, 2, 0, 0.08);
}
html[data-theme="dark"] .contact-info-card {
  background: #111827;
  border: 1px solid rgba(211, 47, 47, 0.25);
}
html[data-theme="dark"] .contact-info-card:hover {
  box-shadow: 0 6px 18px rgba(211, 47, 47, 0.2);
}.contact-card-label {
  font-size: 0.78rem;
  font-weight: 500;
  margin: 0;
  color: var(--app-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(--app-bg-card);
  border-color: rgba(255, 255, 255, 0.15);
  border-bottom: 2px solid var(--app-bg-card);
}

/* ================= 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(--app-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;
  border: 1.5px solid var(--app-primary);
  box-shadow: 0 4px 12px var(--app-primary-glow);
  transform: translateY(-3px) scale(1.02);
}

/* 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(--app-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(--app-text-light);
}
.product-rich-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--app-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(--app-primary);
  border-color: var(--app-primary);
  color: #ffffff;
}

/* Universal Form Control & Placeholder Theme Styling */
.form-control,
.form-control-dark,
.form-select,
.form-input-app {
  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-app::placeholder,
.chat-input-field::placeholder {
  color: #64746b;
  opacity: 1;
}

.form-control:focus,
.form-control-dark:focus,
.form-select:focus,
.form-input-app:focus {
  background-color: #ffffff;
  border-color: var(--app-primary);
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 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-app,
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: #0B0F19;
  border-color: rgba(211, 47, 47, 0.35);
  color: #f3f4f6;
}

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-app::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;
  opacity: 1;
}

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-app:focus {
  background-color: #0B0F19;
  border-color: var(--app-primary);
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.3);
  color: #ffffff;
}

/* ================= CONTACT FORM LIGHT & DARK THEME STYLING ================= */
#contact-form label,
.contact-page label {
  color: var(--app-text-muted);
  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;
}

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

.contact-page .form-control,
.contact-page .form-select,
.custom-select-luxury {
  height: 44px;
  font-size: 0.88rem;
  padding: 8px 14px;
  border-radius: 8px;
  line-height: 1.5;
  transition: all 0.2s ease;
}
.contact-page textarea.form-control,
#contact-form textarea {
  height: auto;
  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;
}
.contact-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(211, 47, 47, 0.12);
  border-color: rgba(211, 47, 47, 0.3);
}
.contact-info-link {
  transition: all 0.2s ease;
}
.contact-info-link:hover {
  color: var(--app-primary);
  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;
  border: 1.5px solid rgba(211, 47, 47, 0.28);
  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(211, 47, 47, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

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

/* ================= 8-STORY LEAD SWIPER CAROUSEL ================= */
.lead-swiper-prev,
.lead-swiper-next {
  border: 1px solid rgba(211, 47, 47, 0.35);
  background: transparent;
  transition: all 0.25s ease;
}
.lead-swiper-prev:hover,
.lead-swiper-next:hover {
  background: var(--app-primary);
  color: #ffffff;
  border-color: var(--app-primary);
  box-shadow: 0 3px 10px rgba(211, 47, 47, 0.35);
  transform: translateY(-1px);
}
.lead-swiper-pagination .swiper-pagination-bullet {
  background: rgba(211, 47, 47, 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(--app-primary);
  width: 26px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(211, 47, 47, 0.45);
}

.detail-random-swiper-prev,
.detail-random-swiper-next,
.about-random-swiper-prev,
.about-random-swiper-next {
  border: 1px solid rgba(211, 47, 47, 0.35);
  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(--app-primary);
  color: #ffffff;
  border-color: var(--app-primary);
  box-shadow: 0 3px 10px rgba(211, 47, 47, 0.35);
  transform: translateY(-1px);
}
.detail-random-swiper-pagination .swiper-pagination-bullet,
.about-random-swiper-pagination .swiper-pagination-bullet {
  background: rgba(211, 47, 47, 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(--app-primary);
  width: 26px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(211, 47, 47, 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(211, 47, 47, 0.15);
}

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

html[data-theme="dark"] .hero-badge-app,
html[data-theme="dark"] .brand-tagline-badge {
  background: rgba(211, 47, 47, 0.16);
  border-color: rgba(211, 47, 47, 0.42);
  color: #4ade80;
  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;
}

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

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

/* 4 Core Stat Boxes in Dark Mode */
html[data-theme="dark"] .about-stat-box {
  background-color: #131B2E;
  border-color: rgba(211, 47, 47, 0.3);
}
html[data-theme="dark"] .about-stat-box .text-app-primary {
  color: #4ade80;
}
html[data-theme="dark"] .about-stat-box .text-theme-main {
  color: #ffffff;
}
html[data-theme="dark"] .about-stat-box .text-theme-muted {
  color: #94a3b8;
}

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

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

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

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

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

/* 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);
  color: #38bdf8;
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

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

/* ================= 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(154, 2, 0, 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(154, 2, 0, 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(154, 2, 0, 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);
}

/* ================= ABOUT PAGE RESPONSIVE MOBILE ENHANCEMENTS ================= */
.about-stat-box {
  padding: 1.5rem 1.25rem;
}

@media (max-width: 767.98px) {
  .about-stat-box {
    padding: 1.25rem 1rem;
  }
}

.about-value-card {
  padding: 1.15rem 1.25rem;
}

@media (min-width: 768px) {
  .about-value-card {
    padding: 1.25rem 1.4rem;
  }
}

.about-value-icon {
  width: 44px;
  height: 44px;
}

.about-commitment-box {
  padding: 1.15rem 1.15rem;
  border-radius: 14px;
}

@media (min-width: 768px) {
  .about-commitment-box {
    padding: 1.5rem 1.5rem;
  }
}

/* About Strategic Trust Badge */
.about-trust-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background-color: rgba(211, 47, 47, 0.1);
  border: 1px solid rgba(211, 47, 47, 0.2);
  margin-bottom: 1.5rem;
}

.about-trust-badge-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.about-trust-badge-icon {
  color: #ffc107;
  flex-shrink: 0;
}

.about-trust-badge-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #D32F2F;
}

.about-trust-badge-survey {
  font-size: 0.76rem;
  color: #64748b;
}

html[data-theme="dark"] .about-trust-badge {
  background-color: rgba(211, 47, 47, 0.15);
  border-color: rgba(211, 47, 47, 0.3);
}

html[data-theme="dark"] .about-trust-badge-title {
  color: #4ade80;
}

html[data-theme="dark"] .about-trust-badge-survey {
  color: #94a3b8;
}

@media (max-width: 767.98px) {
  .about-trust-badge {
    justify-content: center;
  }
  .about-trust-badge-survey {
    display: none;
  }
}


/* Mobile Fast Connect: Hide image completely and convert overlay into standalone card */
@media (max-width: 991.98px) {
  .consult-showcase-img {
    display: none;
  }
  .consult-image-frame {
    height: auto;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  .consult-overlay-contact {
    position: static;
    border-radius: 16px;
    border: 1px solid rgba(211, 47, 47, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  }
}

/* ================= SHARED NEWS & BLOG SWIPER STYLES ================= */
.news-swiper {
  width: 100%;
  overflow: hidden;
  padding: 6px 2px 26px;
  position: relative;
}

.news-swiper .swiper-wrapper {
  display: flex;
  align-items: stretch;
}

.news-swiper .swiper-slide {
  height: auto;
  display: flex;
}

.news-card-home {
  background: #131B2E;
  border: 1px solid rgba(211, 47, 47, 0.2);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  display: flex;
  flex-direction: column;
}

html[data-theme="light"] .news-card-home {
  background: #ffffff;
  border: 1px solid rgba(154, 2, 0, 0.12);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.news-card-home:hover {
  transform: translateY(-4px);
  border-color: var(--app-primary, #D32F2F);
  box-shadow: 0 12px 28px rgba(211, 47, 47, 0.22);
}

.news-thumb-wrap {
  height: 200px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

@media (max-width: 1199.98px) {
  .news-thumb-wrap {
    height: 175px;
  }
}

@media (max-width: 575.98px) {
  .news-thumb-wrap {
    height: 165px;
  }
}

.news-thumb-img {
  height: 100%;
  transition: transform 0.45s ease;
}

.news-card-home:hover .news-thumb-img {
  transform: scale(1.08);
}

.news-category-badge {
  background: rgba(18, 21, 19, 0.88);
  color: #4ade80;
  border: 1px solid rgba(211, 47, 47, 0.35);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  backdrop-filter: blur(8px);
}

html[data-theme="light"] .news-category-badge {
  background: rgba(255, 255, 255, 0.94);
  color: #9A0200;
  border-color: rgba(154, 2, 0, 0.22);
}

.news-meta-time {
  font-size: 0.76rem;
}

.news-title-home {
  font-size: 0.95rem;
  line-height: 1.42;
  margin-bottom: 8px;
}

.news-title-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.news-title-home a:hover {
  color: var(--app-primary, #D32F2F);
}

.news-excerpt-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 14px;
}

.news-btn-detail {
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 10px;
  padding: 9px 16px;
  transition: all 0.25s ease;
}

.news-btn-detail svg {
  transition: transform 0.25s ease;
}

.news-card-home:hover .news-btn-detail {
  background: var(--app-primary, #D32F2F);
  color: #ffffff;
  border-color: var(--app-primary, #D32F2F);
  box-shadow: 0 4px 14px rgba(211, 47, 47, 0.35);
}

.news-card-home:hover .news-btn-detail svg {
  transform: translateX(4px);
}

.btn-swiper-nav {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(211, 47, 47, 0.3);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}

html[data-theme="light"] .btn-swiper-nav {
  background: #ffffff;
  border-color: rgba(154, 2, 0, 0.2);
  color: #0B0F19;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.btn-swiper-nav:hover {
  background: var(--app-primary, #D32F2F);
  color: #ffffff;
  border-color: var(--app-primary, #D32F2F);
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(211, 47, 47, 0.4);
}

.btn-swiper-nav.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.news-swiper-pagination {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 18px auto 12px auto;
  z-index: 10;
  width: 100%;
}

.news-swiper-pagination .swiper-pagination-bullet {
  background: rgba(120, 140, 125, 0.45);
  opacity: 1;
  width: 8px;
  height: 8px;
  border-radius: 4px;
  margin: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme="light"] .news-swiper-pagination .swiper-pagination-bullet {
  background: rgba(154, 2, 0, 0.25);
}

.news-swiper-pagination .swiper-pagination-bullet-active {
  background: var(--app-primary, #D32F2F);
  width: 24px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(211, 47, 47, 0.4);
}

/* ================= 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;
  border: 1px solid rgba(211, 47, 47, 0.25);
}
.blog-lead-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(211, 47, 47, 0.15);
  border-color: rgba(211, 47, 47, 0.45);
}
.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(211, 47, 47, 0.2);
  border-radius: 16px;
  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(211, 47, 47, 0.16);
  border-color: rgba(211, 47, 47, 0.45);
}
.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;
}
@media (max-width: 991.98px) {
  .blog-page {
    padding-top: 26px;
  }
}

/* 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(211, 47, 47, 0.06);
  border-left: 4px solid var(--app-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;
}

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;
}

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

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

/* 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(211, 47, 47, 0.15);
  color: var(--app-primary);
}

/* Feature Icon Box */
.icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--app-radius-md);
  background: rgba(211, 47, 47, 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(--app-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(--app-bg-dark-card);
  border: 1px solid var(--app-border-dark);
}
.news-card:hover {
  transform: translateY(-5px);
  border-color: var(--app-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;
  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;
  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, #D32F2F 0%, #9A0200 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  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;
}

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

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

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

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

.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: linear-gradient(135deg, #0084ff 0%, #0068ff 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 15px rgba(0, 104, 255, 0.4);
}

.floating-zalo svg,
.floating-zalo .zalo-svg-icon {
  width: 28px;
  height: 28px;
  display: block;
}

.floating-zalo svg,
.floating-zalo svg path,
.floating-zalo .zalo-svg-icon,
.floating-zalo .zalo-svg-icon path {
  stroke: none;
}

.floating-phone {
  background: linear-gradient(135deg, #D32F2F 0%, #B71C1C 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

/* 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(--app-primary) 0deg var(--scroll-progress),
    rgba(120, 140, 125, 0.3) var(--scroll-progress) 360deg
  );
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  display: none;
  place-items: center;
  position: relative;
  border: none;
  z-index: 1060;
  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: #D32F2F;
  stroke: #D32F2F;
  transition: transform 0.2s ease;
}

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

#back-to-top:hover,
.floating-top:hover {
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 8px 25px rgba(211, 47, 47, 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: 385px;
  max-width: calc(100vw - 110px);
  height: 590px;
  max-height: calc(100vh - 60px);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  z-index: 1080;
  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: 12px;
    left: 12px;
    top: 70px;
    width: auto;
    max-width: calc(100vw - 24px);
    height: auto;
    max-height: calc(100dvh - 82px);
    border-radius: 18px;
  }
}

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, #D32F2F 0%, #9A0200 100%);
  padding: 11px 15px;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(211, 47, 47, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.chat-header-avatar svg,
.chat-bot-icon {
  width: 17px;
  height: 17px;
  stroke: var(--app-primary, #D32F2F);
}

.chat-header-meta {
  display: flex;
  flex-direction: column;
}

.chat-header-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-heading, Montserrat, sans-serif);
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.2px;
}

.chat-header-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

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

.chat-header-subtitle {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 400;
  line-height: 1.2;
}

.close-chat-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.close-chat-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.08);
}

@media (max-width: 576px) {
  .chat-header {
    padding: 9px 13px;
  }
  .chat-header-avatar {
    width: 28px;
    height: 28px;
  }
  .chat-header-title {
    font-size: 0.82rem;
  }
  .chat-header-subtitle {
    font-size: 0.68rem;
  }
}

.chat-messages {
  flex: 1 1 auto;
  min-height: 0;
  padding: 14px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f9fafb;
  -webkit-overflow-scrolling: touch;
}

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, #D32F2F 0%, #9A0200 100%);
  color: #ffffff;
  border-top-right-radius: 4px;
  box-shadow: 0 2px 10px rgba(211, 47, 47, 0.25);
}

.chat-quick-suggestions {
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 8px 10px;
  flex-shrink: 0;
  overflow: hidden;
}
html[data-theme="dark"] .chat-quick-suggestions {
  background: #1f1f1f;
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* Universal scrollbar hiding utility */
.no-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
  -webkit-appearance: none;
}

.chat-quick-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.chat-quick-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
  -webkit-appearance: none;
}

.chat-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #374151;
  font-size: 0.76rem;
  font-weight: 500;
  border-radius: 9px;
  padding: 5px 11px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.chat-chip-btn svg {
  width: 14px;
  height: 14px;
  stroke: var(--app-primary, #D32F2F);
  flex-shrink: 0;
}
.chat-chip-btn:hover {
  background: rgba(211, 47, 47, 0.12);
  border-color: var(--app-primary, #D32F2F);
  color: var(--app-primary, #D32F2F);
}
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: #ffffff;
  border: 1px solid #D32F2F;
  color: #D32F2F;
  font-size: 0.76rem;
  font-weight: 500;
  border-radius: 20px;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

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

html[data-theme="dark"] .chat-followup-pill {
  background: #1e1e1e;
  border-color: #ef4444;
  color: #fca5a5;
}

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

.chat-input-wrapper {
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 8px 10px;
  flex-shrink: 0;
}
html[data-theme="dark"] .chat-input-wrapper {
  background: #1f1f1f;
  border-top-color: rgba(255, 255, 255, 0.08);
}

.chat-input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.chat-input-field {
  flex-grow: 1;
  border-radius: 10px 0 0 10px;
  padding: 8px 14px;
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-right: none;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s ease;
}
.chat-input-field:focus {
  border-color: var(--app-primary, #D32F2F);
  background: #ffffff;
}
html[data-theme="dark"] .chat-input-field {
  background: #2a2a2a;
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.chat-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--app-primary, #D32F2F);
  color: #ffffff;
  border: 1px solid var(--app-primary, #D32F2F);
  border-left: none;
  border-radius: 0 10px 10px 0;
  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: 65px 0 24px;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  background-color: #090D16;
  color: #94A3B8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 10;
}

html[data-theme="light"] .footer-section {
  background-color: #F1F5F9;
  color: #475569;
  border-top: 1px solid #CBD5E1;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.04);
}

.footer-logo {
  width: 190px;
  max-width: 100%;
  height: auto;
  max-height: 75px;
  object-fit: contain;
  display: block;
}

.app-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 45px;
}

@media (min-width: 768px) {
  .app-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .app-footer-grid {
    grid-template-columns: 1.35fr 0.8fr 1fr 1.15fr;
  }
}

.app-footer-brand-link {
  display: inline-block;
  margin-bottom: 16px;
}

.app-footer-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #94A3B8;
  margin-bottom: 18px;
}

html[data-theme="light"] .app-footer-desc {
  color: #475569;
}

.app-footer-company-highlight {
  color: #F8FAFC;
}

html[data-theme="light"] .app-footer-company-highlight {
  color: #0F172A;
}

.app-footer-social-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.app-footer-btn-zalo,
.app-footer-btn-fb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.app-footer-btn-zalo {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #0F172A;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.app-footer-btn-zalo:hover {
  background: #0068FF;
  border-color: #0068FF;
  color: #FFFFFF;
}

.app-footer-btn-fb {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #0F172A;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.app-footer-btn-fb:hover {
  background: #1877F2;
  border-color: #1877F2;
  color: #FFFFFF;
}

html[data-theme="dark"] .app-footer-btn-zalo,
html[data-theme="dark"] .app-footer-btn-fb {
  background: #1E293B;
  border-color: rgba(255, 255, 255, 0.12);
  color: #F8FAFC;
}

.app-footer-col-title {
  font-family: var(--font-heading, "Montserrat", sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #F8FAFC;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

html[data-theme="light"] .app-footer-col-title {
  color: #0F172A;
}

.app-footer-col-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: #D32F2F;
  border-radius: 2px;
}

.app-footer-toggle-icon {
  display: none;
}

.app-footer-collapse-body {
  display: block;
}

.app-footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-footer-nav-link {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.88rem;
  transition: all 0.2s ease;
  display: inline-block;
}

html[data-theme="light"] .app-footer-nav-link {
  color: #475569;
}

.app-footer-nav-link:hover {
  color: #FF5252;
  transform: translateX(3px);
}

.app-footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.app-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.app-contact-icon {
  color: #D32F2F;
  flex-shrink: 0;
  margin-top: 2px;
}

.app-contact-text {
  font-size: 0.86rem;
  line-height: 1.45;
  color: #94A3B8;
  flex-grow: 1;
}

html[data-theme="light"] .app-contact-text {
  color: #475569;
}

.app-contact-inline-label {
  color: #CBD5E1;
  font-weight: 700;
  margin-right: 4px;
  display: inline;
}

html[data-theme="light"] .app-contact-inline-label {
  color: #0F172A;
}

.app-hotlines-text-wrap {
  width: 100%;
}

.app-hotlines-inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-top: 6px;
}

.app-hotline-inline-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
}

html[data-theme="light"] .app-hotline-inline-item {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.app-hotline-dept-tag {
  font-size: 0.74rem;
  font-weight: 600;
  color: #94A3B8;
}

html[data-theme="light"] .app-hotline-dept-tag {
  color: #64748B;
}

.app-contact-address-link {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.2s ease;
}

html[data-theme="light"] .app-contact-address-link {
  color: #475569;
}

.app-contact-address-link:hover {
  color: #FF5252;
}

.app-contact-phone-link {
  color: #FF5252;
  font-weight: 700;
  text-decoration: none;
  font-family: var(--font-heading, "Montserrat", sans-serif);
}

.app-contact-phone-link:hover {
  text-decoration: underline;
}

.app-contact-mail-link {
  color: #94A3B8;
  text-decoration: none;
}

html[data-theme="light"] .app-contact-mail-link {
  color: #475569;
}

.app-contact-mail-link:hover {
  color: #FF5252;
  text-decoration: underline;
}

.app-footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  text-align: center;
}

html[data-theme="light"] .app-footer-bottom-bar {
  border-top-color: #E2E8F0;
}

@media (min-width: 768px) {
  .app-footer-bottom-bar {
    flex-direction: row;
    text-align: left;
  }
}

.app-footer-copyright-text {
  color: #94A3B8;
  margin: 0;
}

html[data-theme="light"] .app-footer-copyright-text {
  color: #64748B;
}

.app-footer-copyright-text strong {
  color: #E2E8F0;
  font-weight: 700;
}

html[data-theme="light"] .app-footer-copyright-text strong {
  color: #1E293B;
}

.app-footer-copyright-text .app-footer-link {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.app-footer-copyright-text .app-footer-link:hover {
  color: #FF5252;
  text-decoration: underline;
}

html[data-theme="light"] .app-footer-copyright-text .app-footer-link:hover {
  color: #DC2626;
}

.app-footer-bottom-link {
  color: #FF5252;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.app-footer-bottom-link:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.app-footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-footer-sublink {
  color: #94A3B8;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, font-weight 0.2s ease, text-shadow 0.2s ease;
}

html[data-theme="light"] .app-footer-sublink {
  color: #64748B;
}

.app-footer-sublink:hover {
  color: #FF5252;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 82, 82, 0.4);
}

html[data-theme="light"] .app-footer-sublink:hover {
  color: #DC2626;
  font-weight: 700;
  text-shadow: none;
}

.app-footer-bullet {
  color: rgba(255, 255, 255, 0.2);
}

html[data-theme="light"] .app-footer-bullet {
  color: #CBD5E1;
}

@media (max-width: 767px) {
  .app-footer-grid {
    gap: 0;
    margin-bottom: 28px;
  }

  .app-footer-col-brand {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  html[data-theme="light"] .app-footer-col-brand {
    border-bottom-color: #E2E8F0;
  }

  .app-footer-col-links,
  .app-footer-col-solutions,
  .app-footer-col-contact {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  html[data-theme="light"] .app-footer-col-links,
  html[data-theme="light"] .app-footer-col-solutions,
  html[data-theme="light"] .app-footer-col-contact {
    border-bottom-color: #E2E8F0;
  }

  .app-footer-col-title {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    margin-bottom: 0;
    font-size: 0.96rem;
    transition: color 0.2s ease;
  }

  .app-footer-col-title::after {
    display: none;
  }

  .app-footer-col.is-open .app-footer-col-title {
    color: #FF5252;
  }

  html[data-theme="light"] .app-footer-col.is-open .app-footer-col-title {
    color: #DC2626;
  }

  .app-footer-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #94A3B8;
    position: relative;
    flex-shrink: 0;
    transition: all 0.25s ease;
  }

  html[data-theme="light"] .app-footer-toggle-icon {
    background: #E2E8F0;
    color: #475569;
  }

  .app-footer-toggle-icon::before,
  .app-footer-toggle-icon::after {
    content: "";
    position: absolute;
    background-color: currentColor;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .app-footer-toggle-icon::before {
    width: 10px;
    height: 2px;
  }

  .app-footer-toggle-icon::after {
    width: 2px;
    height: 10px;
  }

  .app-footer-col.is-open .app-footer-toggle-icon {
    background: rgba(211, 47, 47, 0.15);
    color: #FF5252;
  }

  html[data-theme="light"] .app-footer-col.is-open .app-footer-toggle-icon {
    background: #FEE2E2;
    color: #DC2626;
  }

  .app-footer-col.is-open .app-footer-toggle-icon::after {
    transform: rotate(90deg);
    opacity: 0;
  }

  .app-footer-collapse-body {
    display: none;
    padding-top: 4px;
    padding-bottom: 18px;
  }

  .app-footer-bottom-bar {
    padding-top: 20px;
    padding-bottom: 8px;
    gap: 14px;
  }

  .app-footer-copyright-text {
    font-size: 0.8rem;
    line-height: 1.65;
  }

  .app-footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
  }

  .app-footer-bullet {
    display: none;
  }

  .app-footer-sublink {
    font-size: 0.78rem;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
  }

  html[data-theme="light"] .app-footer-sublink {
    background: #FFFFFF;
    border-color: #E2E8F0;
  }
}

@media (min-width: 768px) {
  .app-footer-collapse-body {
    display: block !important;
  }
}

/* ==========================================================================
   MOBILE MENU DRAWER & BACKDROP OVERLAY (RIGHT SLIDE-OUT)
   ========================================================================== */
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  pointer-events: none;
}

.mobile-menu-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer,
.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(84vw, 320px);
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
  z-index: 1060;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 20px;
  box-sizing: border-box;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.25);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

html[data-theme="dark"] .mobile-drawer,
html[data-theme="dark"] .mobile-menu-drawer {
  background: #111827;
  border-left: 1px solid rgba(211, 47, 47, 0.25);
  box-shadow: -12px 0 45px rgba(0, 0, 0, 0.7);
}

.mobile-drawer.active,
.mobile-menu-drawer.active,
#mobile-menu.active {
  transform: translateX(0);
}

/* Header inside drawer */
.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 16px;
  flex-shrink: 0;
}

html[data-theme="dark"] .mobile-drawer-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.mobile-drawer-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding-left: 6px;
}

.mobile-drawer-logo {
  max-height: 36px;
  width: auto;
  object-fit: contain;
}

.mobile-drawer-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-drawer-theme-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #1f2937;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

html[data-theme="dark"] .mobile-drawer-theme-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f3f4f6;
}

.mobile-drawer-theme-btn:hover {
  background: rgba(154, 2, 0, 0.1);
  color: #9A0200;
}

html[data-theme="dark"] .mobile-drawer-theme-btn:hover {
  background: rgba(211, 47, 47, 0.22);
  color: #FF5252;
  border-color: rgba(211, 47, 47, 0.4);
}

.mobile-drawer-close-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  color: #1f2937;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

html[data-theme="dark"] .mobile-drawer-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f3f4f6;
}

.mobile-drawer-close-btn:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.25);
}

.mobile-close-svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

/* Navigation links */
.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
  overflow-y: auto;
}

.mobile-drawer-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  color: #1f2937;
  text-decoration: none;
  padding: 11px 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

html[data-theme="dark"] .mobile-drawer-link {
  color: #e5e7eb;
}

.mobile-drawer-icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  color: #6b7280;
  stroke: currentColor;
  transition: color 0.2s ease;
}

html[data-theme="dark"] .mobile-drawer-icon {
  color: #9ca3af;
}

.mobile-drawer-link:hover,
.mobile-drawer-link.active {
  background: rgba(154, 2, 0, 0.08);
  color: #9A0200;
}

.mobile-drawer-link:hover .mobile-drawer-icon,
.mobile-drawer-link.active .mobile-drawer-icon {
  color: #9A0200;
}

html[data-theme="dark"] .mobile-drawer-link:hover,
html[data-theme="dark"] .mobile-drawer-link.active {
  background: rgba(211, 47, 47, 0.18);
  color: #FF5252;
}

html[data-theme="dark"] .mobile-drawer-link:hover .mobile-drawer-icon,
html[data-theme="dark"] .mobile-drawer-link.active .mobile-drawer-icon {
  color: #FF5252;
}

/* Footer inside drawer */
.mobile-drawer-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

html[data-theme="dark"] .mobile-drawer-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.mobile-drawer-footer-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
}

.mobile-drawer-hotline-btn {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  border: 1.5px solid rgba(154, 2, 0, 0.25);
  background: #ffffff;
  color: #9A0200;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

html[data-theme="dark"] .mobile-drawer-hotline-btn {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(211, 47, 47, 0.35);
  color: #FF5252;
}

.mobile-drawer-hotline-btn:hover {
  background: #9A0200;
  border-color: #9A0200;
  color: #ffffff;
}

html[data-theme="dark"] .mobile-drawer-hotline-btn:hover {
  background: #D32F2F;
  border-color: #D32F2F;
  color: #ffffff;
}

.mobile-drawer-consult-btn {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #D32F2F 0%, #9A0200 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(211, 47, 47, 0.32);
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.mobile-drawer-consult-btn:hover {
  background: linear-gradient(135deg, #B71C1C 0%, #7F0000 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(211, 47, 47, 0.45);
}

.mobile-drawer-slogan {
  text-align: center;
  font-size: 0.76rem;
  color: #6b7280;
  margin: 2px 0 0 0;
  line-height: 1.4;
}

html[data-theme="dark"] .mobile-drawer-slogan {
  color: #9ca3af;
}

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

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

/* 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(--app-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(--app-primary);
  border-color: var(--app-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(--app-bg-body);
  transition: all 0.25s ease;
}

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

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

/* 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(--app-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(--app-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(--app-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(--app-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(--app-bg-card);
  color: var(--app-text-main);
  border: 1px solid rgba(140, 140, 140, 0.28);
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 0.93rem;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.mobile-bottom-sheet select:focus,
.mobile-bottom-sheet .form-select:focus {
  border-color: var(--app-primary);
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.18);
  outline: none;
}

.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;
  color: #f8fafc;
}

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

.mobile-sort-option-btn,
.mobile-blog-sort-btn {
  border: 1px solid rgba(140, 140, 140, 0.18);
  background: var(--app-bg-card);
  color: var(--app-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(--app-primary);
  background: rgba(211, 47, 47, 0.1);
  color: var(--app-primary);
  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(--app-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, #D32F2F, #B71C1C);
  color: #ffffff;
  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;
  box-shadow: 0 4px 14px rgba(211, 47, 47, 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(211, 47, 47, 0.45);
}
.btn-detail-zalo {
  flex: 1 1 50%;
  background: linear-gradient(135deg, #0068ff, #0052cc);
  color: #ffffff;
  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;
  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;
  }
  body:has(.mobile-detail-fixed-actions) .back-to-top,
  body:has(.mobile-detail-fixed-actions) .zalo-chat-widget {
    bottom: 76px;
  }
}
.car-detail-page {
  padding-bottom: 75px;
}
body:has(.mobile-detail-fixed-actions) .back-to-top,
body:has(.mobile-detail-fixed-actions) .zalo-chat-widget {
  bottom: 76px;
}

/* ==========================================================================
   HATI SOLUTIONS - CORE SHARED COMPONENTS & CONTACT PAGE SYSTEM
   ========================================================================== */

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

.text-app-primary {
  color: #D32F2F;
}

.text-app-sand {
  color: #e6d0c6;
}

.border-app {
  border-color: rgba(211, 47, 47, 0.3);
}

.brand-tagline-badge {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #0F172A;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

html[data-theme="dark"] .brand-tagline-badge {
  background: #1E293B;
  border-color: rgba(255, 255, 255, 0.12);
  color: #F8FAFC;
}

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

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

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

.btn-app-outline:hover {
  background: var(--app-primary);
  color: #ffffff;
  box-shadow: 0 5px 16px rgba(211, 47, 47, 0.3);
}

/* 3. Form Input Styling (Light & Dark Theme Compliant) */
.form-input-app {
  background: #0B0F19;
  color: #ffffff;
  border: 1.5px solid rgba(211, 47, 47, 0.35);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  transition: all 0.25s ease;
}

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

.form-input-app:focus {
  background: #151a17;
  color: #ffffff;
  border-color: var(--app-primary);
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.2);
}

html[data-theme="light"] .form-input-app {
  background: #f9fbf9;
  color: #0B0F19;
  border: 1.5px solid rgba(154, 2, 0, 0.25);
}

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

html[data-theme="light"] .form-input-app:focus {
  background: #ffffff;
  color: #0B0F19;
  border-color: var(--app-primary);
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 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;
}

.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(154, 2, 0, 0.18);
  color: #181d1a;
}

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

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

.btn-select-all-services:hover,
.btn-select-all-services.active {
  background: var(--app-primary);
  border-color: var(--app-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(211, 47, 47, 0.3);
}

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

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

/* 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(211, 47, 47, 0.1);
  border-color: rgba(211, 47, 47, 0.35);
  transform: translateX(4px);
}

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

html[data-theme="light"] .contact-info-card:hover {
  background: #eef7f0;
  border-color: rgba(154, 2, 0, 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: #FFFFFF;
  border: 1px solid rgba(154, 2, 0, 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(211, 47, 47, 0.25);
}

html[data-theme="light"] .contact-map-frame {
  border-color: rgba(154, 2, 0, 0.18);
  box-shadow: 0 4px 15px rgba(154, 2, 0, 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(154, 2, 0, 0.14);
  box-shadow: 0 4px 18px rgba(154, 2, 0, 0.08);
  background: #FFFFFF;
}

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, #D32F2F 0%, #9A0200 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #D32F2F;
  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;
}

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

@media (max-width: 767.98px) {
  .contact-page {
    padding-top: 26px;
  }
}

/* ==========================================================================
   HATI SOLUTIONS - PRODUCT CATALOG (san-pham/)
   ========================================================================== */
.app-products-page-container,
.app-products-page-container {
  width: 100%;
  background: var(--app-bg-light);
  min-height: 80vh;
}

.products-hero-section {
  background: linear-gradient(135deg, #0B0F19 0%, #1E1218 50%, #2A0909 100%);
  color: #FFFFFF;
  padding: 56px 20px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.products-hero-wrap {
  max-width: 980px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.products-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(211, 47, 47, 0.25);
  border: 1px solid rgba(211, 47, 47, 0.5);
  padding: 6px 18px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #FF6B6B;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.products-hero-h1 {
  font-size: 2.1rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.3;
  margin-bottom: 16px;
  font-family: var(--font-heading);
}

@media (max-width: 768px) {
  .products-hero-h1 {
    font-size: 1.55rem;
  }
}

.products-hero-desc {
  font-size: 0.95rem;
  color: #CBD5E1;
  line-height: 1.6;
  max-width: 820px;
  margin: 0 auto;
}

.products-catalog-section {
  padding: 48px 20px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.products-catalog-wrap {
  width: 100%;
}

.products-section-h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: #0F172A;
  text-align: center;
  margin-bottom: 10px;
  font-family: var(--font-heading);
}

html[data-theme="dark"] .products-section-h2 {
  color: #F8FAFC;
}

.products-section-desc {
  text-align: center;
  color: #64748B;
  font-size: 0.92rem;
  max-width: 740px;
  margin: 0 auto 32px;
}

html[data-theme="dark"] .products-section-desc {
  color: #94A3B8;
}

.products-filter-pills-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
}

.products-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 9999px;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  color: #334155;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  transition: all 0.22s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

html[data-theme="dark"] .products-filter-pill {
  background: #1E293B;
  border-color: #334155;
  color: #E2E8F0;
}

.products-filter-pill:hover {
  border-color: #D32F2F;
  color: #D32F2F;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(211, 47, 47, 0.15);
}

.products-filter-pill.active {
  background: linear-gradient(135deg, #D32F2F 0%, #B71C1C 100%);
  border-color: #B71C1C;
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(211, 47, 47, 0.35);
}

.products-filter-pill.active .products-filter-icon {
  stroke: #FFFFFF;
}

.products-search-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FEE2E2;
  border: 1px solid #FECDD3;
  border-radius: 10px;
  padding: 10px 18px;
  margin-bottom: 24px;
}

.products-search-status-text {
  font-size: 0.88rem;
  color: #9A0200;
}

.products-search-clear-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #D32F2F;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
}

.products-search-clear-link:hover {
  text-decoration: underline;
}

.products-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}

.product-item-card {
  background: #FFFFFF;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

html[data-theme="dark"] .product-item-card {
  background: #131B2E;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.product-item-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  border-color: rgba(211, 47, 47, 0.35);
}

.product-item-thumb-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #F8FAFC;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

html[data-theme="dark"] .product-item-thumb-box {
  background: #0B0F19;
}

.product-item-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.product-item-card:hover .product-item-img {
  transform: scale(1.06);
}

.product-item-sale-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #D32F2F;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 2;
}



.product-item-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.product-item-cat-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.product-item-cat-label {
  font-size: 0.74rem;
  color: #64748B;
  font-weight: 600;
}

.product-item-brand-tag {
  font-size: 0.72rem;
  background: #F1F5F9;
  color: #0F172A;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}

html[data-theme="dark"] .product-item-brand-tag {
  background: #1E293B;
  color: #F8FAFC;
}

.product-item-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

html[data-theme="dark"] .product-item-title {
  color: #F8FAFC;
}

.product-item-summary {
  font-size: 0.82rem;
  color: #64748B;
  line-height: 1.45;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
}

html[data-theme="dark"] .product-item-summary {
  color: #94A3B8;
}

.product-item-specs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}

.product-spec-pill {
  font-size: 0.70rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #475569;
  padding: 2px 7px;
  border-radius: 4px;
}

html[data-theme="dark"] .product-spec-pill {
  background: #1E293B;
  border-color: #334155;
  color: #CBD5E1;
}

.product-item-price-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #F1F5F9;
}

html[data-theme="dark"] .product-item-price-bar {
  border-color: rgba(255, 255, 255, 0.08);
}

.product-item-pricing {
  display: flex;
  flex-direction: column;
}

.product-current-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: #D32F2F;
  font-family: var(--font-heading);
}

.product-old-price {
  font-size: 0.78rem;
  color: #94A3B8;
  text-decoration: line-through;
}

.product-btn-quote {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #D32F2F 0%, #B71C1C 100%);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.22s ease;
  box-shadow: 0 2px 8px rgba(211, 47, 47, 0.25);
}

.product-btn-quote:hover {
  background: linear-gradient(135deg, #B71C1C 0%, #9A0200 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(211, 47, 47, 0.4);
}

.products-empty-card {
  text-align: center;
  padding: 48px 20px;
  background: #FFFFFF;
  border-radius: 14px;
  border: 1px dashed #CBD5E1;
  max-width: 580px;
  margin: 0 auto;
}

html[data-theme="dark"] .products-empty-card {
  background: #131B2E;
  border-color: #334155;
}

.products-empty-icon {
  color: #D32F2F;
  margin-bottom: 12px;
}

.products-empty-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 8px;
}

html[data-theme="dark"] .products-empty-title {
  color: #F8FAFC;
}

.products-empty-desc {
  font-size: 0.88rem;
  color: #64748B;
  margin-bottom: 20px;
}

.products-empty-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #D32F2F;
  color: #FFFFFF;
  text-decoration: none;
  padding: 9px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.86rem;
}

/* Policies */
.products-policy-section {
  background: #F8FAFC;
  padding: 56px 20px;
  border-top: 1px solid #E2E8F0;
}

html[data-theme="dark"] .products-policy-section {
  background: #0B0F19;
  border-color: rgba(255, 255, 255, 0.08);
}

.products-policy-wrap {
  max-width: 1360px;
  margin: 0 auto;
}

.products-policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.products-policy-card {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 28px 24px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}

html[data-theme="dark"] .products-policy-card {
  background: #131B2E;
  border-color: rgba(255, 255, 255, 0.08);
}

.products-policy-card:hover {
  transform: translateY(-4px);
  border-color: #D32F2F;
  box-shadow: 0 8px 24px rgba(211, 47, 47, 0.12);
}

.products-policy-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #FEE2E2;
  color: #D32F2F;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.products-policy-h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 10px;
  font-family: var(--font-heading);
}

html[data-theme="dark"] .products-policy-h3 {
  color: #F8FAFC;
}

.products-policy-text {
  font-size: 0.86rem;
  color: #64748B;
  line-height: 1.55;
  margin: 0;
}

html[data-theme="dark"] .products-policy-text {
  color: #94A3B8;
}

/* ==========================================================================
   GLOBAL PRINT CLEANUP (ẨN HOÀN TOÀN CÁC WIDGET NỔI KHI IN)
   ========================================================================== */
@media print {
  .floating-contact-group,
  .floating-btn,
  .chat-panel,
  #back-to-top,
  .zalo-chat-widget,
  .fixed-action-buttons {
    display: none;
    visibility: hidden;
    opacity: 0;
    height: 0;
    width: 0;
    position: absolute;
    left: -9999px;
  }
}


