/*
Theme Name: Hồng Đức FemTech & Luxury Medical
Theme URI: https://noitiettienmankinh.com/
Author: Phòng Khám Phụ Khoa Hồng Đức & Antigravity
Author URI: https://phongkhamphukhoahongduc.com/
Description: Giao diện Flagship Luxury Medical & FemTech Wellness chuyên sâu về Nội Tiết Tố & Tiền Mãn Kinh thuộc Hệ sinh thái Phòng khám Sản Phụ Khoa Hồng Đức - Thân Khỏe Tâm An (Đồng bộ Màu nhận diện #006747 / #1F7D50 / #D84315 / #FFB19E & Font Montserrat + Be Vietnam Pro của phongkhamphukhoahongduc.com).
Version: 8.0.0
Text Domain: hongduc-femtech
*/

:root {
  --primary-color: #006747;
  --fs-color-primary: #006747;
  --fs-color-secondary: #ffb19e;
  --fs-color-success: #627D47;
  --fs-color-alert: #b20000;

  --hd-emerald-950: #114e33;
  --hd-emerald-900: #006747;
  --hd-emerald-800: #006747;
  --hd-emerald-700: #1f7d50;
  --hd-emerald-600: #2f9d68;
  --hd-emerald-100: #d7eede;
  --hd-emerald-50: #eaf6ef;

  --hd-rose-600: #d84315;
  --hd-rose-500: #e2705a;
  --hd-rose-400: #ef8b78;
  --hd-rose-300: #ffb19e;
  --hd-rose-100: #fdeee9;

  --hd-gold-600: #d84315;
  --hd-gold-500: #e2705a;
  --hd-gold-300: #ffb19e;
  --hd-gold-100: #fdeee9;

  --hd-ivory: #f5faf7;
  --hd-bg-main: #ffffff;
  --hd-bg-alt: #f5faf7;
  --hd-surface: #ffffff;
  --hd-text-primary: #1f2a24;
  --hd-text-secondary: #4a574f;
  --hd-text-muted: #5f6f67;
  --hd-border: #dfe9e3;
  --hd-border-strong: #c8dcd0;

  --hd-shadow-sm: 0 6px 18px rgba(0, 103, 71, 0.06);
  --hd-shadow-md: 0 12px 32px rgba(0, 103, 71, 0.09);
  --hd-shadow-lg: 0 22px 54px rgba(0, 103, 71, 0.14);
  --hd-radius-sm: 14px;
  --hd-radius-md: 20px;
  --hd-radius-lg: 28px;
  --hd-radius-xl: 36px;
  --hd-radius-pill: 9999px;

  --font-sans: 'Be Vietnam Pro', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Montserrat', 'Be Vietnam Pro', system-ui, sans-serif;
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--hd-bg-main);
  color: var(--hd-text-primary);
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .heading-font {
  font-family: var(--font-serif);
  font-style: normal;
  letter-spacing: -0.01em;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hd-container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   1. ECOSYSTEM TOP BAR (Gọn gàng 1 dòng)
   ========================================================================== */
.hd-eco-topbar {
  background: #006747;
  color: #dff1e8;
  font-size: 0.78rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  z-index: 1002;
}

.hd-eco-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hd-eco-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.hd-eco-links::-webkit-scrollbar {
  display: none;
}

.hd-eco-label {
  color: var(--hd-gold-300);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.7rem;
  white-space: nowrap;
}

.hd-eco-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 11px;
  border-radius: var(--hd-radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 500;
  font-size: 0.74rem;
  white-space: nowrap;
}

.hd-eco-pill:hover, .hd-eco-pill.is-active {
  background: #ffb19e;
  color: #114e33;
  font-weight: 700;
}

.hd-eco-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.hd-eco-hotline {
  color: #ffb19e;
  font-weight: 700;
}

/* ==========================================================================
   2. STICKY LUXURY HEADER (Logo độc lập + Menu 1 hàng + Dropdown Y Bạ)
   ========================================================================== */
.hd-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--hd-border);
}

.hd-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 24px;
}

.hd-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.hd-brand-logo {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  object-fit: contain;
  background: #ffffff;
  padding: 4px;
  box-shadow: 0 4px 14px rgba(6, 56, 39, 0.08);
  border: 1px solid var(--hd-border);
  transition: transform 0.25s ease;
}

.hd-brand:hover .hd-brand-logo {
  transform: scale(1.04);
}

.hd-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: nowrap;
}

.hd-nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.hd-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 13px;
  border-radius: var(--hd-radius-pill);
  font-family: var(--font-serif);
  font-size: 0.91rem;
  font-weight: 700;
  color: #006747;
  white-space: nowrap;
  cursor: pointer;
}

.hd-nav-link:hover,
.hd-nav-link.is-active,
.hd-nav-item:hover > .hd-nav-link {
  background: #fdeee9;
  color: #d84315;
}

.hd-caret {
  font-size: 0.7rem;
  opacity: 0.65;
  transition: transform 0.25s ease;
}

.hd-nav-item:hover .hd-caret {
  transform: rotate(180deg);
}

/* Dropdown Menu cho Y Bạ */
.hd-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #ffffff;
  border-radius: 20px;
  padding: 10px;
  min-width: 220px;
  box-shadow: 0 20px 50px rgba(4, 36, 25, 0.15);
  border: 1px solid var(--hd-border);
  opacity: 0;
  visibility: hidden;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1010;
}

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

.hd-nav-item:hover .hd-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.hd-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--hd-text-primary);
  white-space: nowrap;
}

.hd-dropdown-item:hover {
  background: var(--hd-emerald-50);
  color: var(--hd-emerald-800);
}

.hd-dropdown-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--hd-bg-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.hd-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ==========================================================================
   3. BUTTONS (Tối giản, Không rớt dòng)
   ========================================================================== */
.hd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--hd-radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.hd-btn-primary {
  background: #2f9d68;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(47, 157, 104, 0.28);
}

.hd-btn-primary:hover {
  background: #006747;
  transform: translateY(-2px);
  color: #ffffff;
}

.hd-btn-rose {
  background: #d84315;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(216, 67, 21, 0.32);
}

.hd-btn-rose:hover {
  background: #e2705a;
  transform: translateY(-2px);
  color: #ffffff;
}

.hd-btn-outline {
  background: #ffffff;
  color: #006747;
  border: 1.5px solid #1f7d50;
}

.hd-btn-outline:hover {
  background: #006747;
  color: #ffffff;
  border-color: #006747;
}

/* ==========================================================================
   4. HERO SECTION (Gọn gàng, Thoáng đạt, Sang trọng)
   ========================================================================== */
.hd-hero {
  padding: 48px 0 72px;
  background: linear-gradient(180deg, #ffffff 0%, #eaf6ef 100%);
}

.hd-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--hd-radius-pill);
  background: #fdeee9;
  border: 1px solid rgba(239, 139, 120, 0.28);
  color: #006747;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hd-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d84315;
}

.hd-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.15rem, 3.6vw, 3.1rem);
  font-weight: 800;
  color: #114e33;
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}

.hd-hero-title .serif-italic {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 800;
  color: #d84315;
  font-size: 1em;
  display: block;
}

.hd-hero-desc {
  font-size: 1.04rem;
  color: var(--hd-text-secondary);
  margin-bottom: 28px;
  max-width: 520px;
  line-height: 1.7;
}

.hd-hero-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hd-trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--hd-border);
}

.hd-trust-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--hd-emerald-800);
  display: block;
}

.hd-trust-label {
  font-size: 0.8rem;
  color: var(--hd-text-muted);
  font-weight: 600;
}

/* Visual Showcase Right - Tam Bảo Công Nghệ Độc Quyền Hồng Đức */
.hd-hero-exclusive-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.hd-hero-ex-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1.5px solid rgba(17, 130, 93, 0.16);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(6, 56, 39, 0.05);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hd-hero-ex-item:hover {
  transform: translateX(6px);
  border-color: var(--hd-gold-500);
  box-shadow: 0 12px 26px rgba(6, 56, 39, 0.12);
  background: #fffdf9;
}

.hd-hero-ex-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hd-hero-ex-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.hd-hero-ex-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--hd-emerald-950);
  line-height: 1.25;
}

.hd-hero-ex-sub {
  font-size: 0.78rem;
  color: var(--hd-text-secondary);
  margin-top: 2px;
}

.hd-hero-ex-cta {
  font-size: 0.76rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--hd-emerald-50);
  color: var(--hd-emerald-800);
  white-space: nowrap;
  transition: all 0.2s;
}

.hd-hero-ex-item:hover .hd-hero-ex-cta {
  background: var(--hd-emerald-800);
  color: #ffffff;
}

/* Right Interactive Bento Tech Grid */
.hd-bento-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 245px 245px;
  gap: 16px;
}

.hd-bento-tech-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(4, 36, 25, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.hd-bento-tech-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 54px rgba(4, 36, 25, 0.28);
  border-color: var(--hd-gold-300);
  color: #ffffff;
}

.hd-bento-tech-main {
  grid-row: 1 / 3;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 177, 158, 0.25) 0%, transparent 55%),
    linear-gradient(155deg, #114e33 0%, #006747 60%, #1f7d50 100%);
}

.hd-bento-tech-top {
  background:
    radial-gradient(circle at 85% 20%, rgba(125, 211, 252, 0.22) 0%, transparent 55%),
    linear-gradient(145deg, #006747 0%, #1f7d50 100%);
}

.hd-bento-tech-bottom {
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 177, 158, 0.28) 0%, transparent 55%),
    linear-gradient(145deg, #d84315 0%, #e2705a 100%);
}

.hd-bento-badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 99px;
  background: rgba(212, 163, 89, 0.24);
  border: 1px solid rgba(253, 230, 138, 0.5);
  color: #fde68a;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hd-bento-tech-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  margin: 10px 0 6px;
}

.hd-bento-tech-top .hd-bento-tech-title,
.hd-bento-tech-bottom .hd-bento-tech-title {
  font-size: 1.28rem;
  margin: 6px 0 4px;
}

.hd-bento-tech-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.hd-bento-mock-box {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 14px;
  margin: 12px 0;
}

.hd-bento-el-row {
  margin-bottom: 9px;
}

.hd-bento-el-row:last-child {
  margin-bottom: 0;
}

.hd-bento-el-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.hd-bento-el-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 99px;
  overflow: hidden;
}

.hd-bento-el-fill {
  height: 100%;
  border-radius: 99px;
}

.hd-bento-action-pill {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  transition: all 0.2s;
}

.hd-bento-tech-card:hover .hd-bento-action-pill {
  background: var(--hd-gold-500);
  color: var(--hd-emerald-950);
}

/* ==========================================================================
   5. SECTIONS & HEADINGS (Ngắn gọn, Súc tích)
   ========================================================================== */
.hd-section {
  padding: 80px 0;
}

.hd-section-alt {
  background-color: var(--hd-bg-alt);
}

.hd-section-dark {
  background: linear-gradient(145deg, #114e33 0%, #006747 65%, #1f7d50 100%);
  color: #ffffff;
}

.hd-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}

.hd-section-title {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--hd-emerald-950);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 10px;
}

.hd-section-dark .hd-section-title {
  color: #ffffff;
}

.hd-section-desc {
  font-size: 0.98rem;
  color: var(--hd-text-secondary);
}

.hd-section-dark .hd-section-desc {
  color: rgba(255, 255, 255, 0.78);
}

/* ==========================================================================
   6. KIẾN THỨC NỘI TIẾT (1 Thanh Segmented Control + Card Tối Giản)
   ========================================================================== */
.hd-segmented-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.hd-segmented-tabs {
  display: inline-flex;
  background: #ffffff;
  padding: 6px;
  border-radius: var(--hd-radius-pill);
  border: 1px solid var(--hd-border);
  box-shadow: var(--hd-shadow-sm);
  gap: 4px;
  max-width: 100%;
  overflow-x: auto;
}

.hd-symptom-tab {
  padding: 11px 22px;
  border-radius: var(--hd-radius-pill);
  background: transparent;
  border: none;
  color: var(--hd-text-secondary);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.hd-symptom-tab:hover {
  color: var(--hd-emerald-900);
}

.hd-symptom-tab.active {
  background: var(--hd-emerald-800);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(9, 82, 58, 0.22);
}

.hd-symptom-panel {
  display: none;
  background: #ffffff;
  border-radius: var(--hd-radius-xl);
  padding: 40px;
  box-shadow: var(--hd-shadow-md);
  border: 1px solid var(--hd-border);
}

.hd-symptom-panel.active {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  animation: hdFadeIn 0.3s ease;
}

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

.hd-panel-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--hd-emerald-950);
  margin-bottom: 12px;
  line-height: 1.25;
}

.hd-panel-lead {
  font-size: 0.96rem;
  color: var(--hd-text-secondary);
  margin-bottom: 22px;
}

/* 3 Key Points Cards instead of long text wall */
.hd-key-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 26px;
}

.hd-key-point {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--hd-bg-main);
  border: 1px solid var(--hd-border);
}

.hd-kp-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--hd-emerald-100);
  color: var(--hd-emerald-800);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hd-kp-text {
  font-size: 0.92rem;
  color: var(--hd-text-primary);
}

.hd-kp-text strong {
  color: var(--hd-emerald-900);
}

.hd-biomarker-card {
  background: var(--hd-bg-main);
  border: 1px solid var(--hd-border);
  border-radius: var(--hd-radius-lg);
  padding: 28px;
}

.hd-bio-row {
  margin-bottom: 16px;
}

.hd-bio-row:last-child {
  margin-bottom: 0;
}

.hd-bio-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.hd-bio-bar {
  height: 8px;
  background: rgba(9, 82, 58, 0.1);
  border-radius: 99px;
  overflow: hidden;
}

.hd-bio-fill {
  height: 100%;
  border-radius: 99px;
}

/* ==========================================================================
   7. SẢN PHẨM CHỦ LỰC (Luxury Cards - Tinh gọn, Sang trọng)
   ========================================================================== */
.hd-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.hd-product-card {
  background: #ffffff;
  border-radius: var(--hd-radius-lg);
  border: 1px solid var(--hd-border);
  overflow: hidden;
  box-shadow: var(--hd-shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.35s ease;
}

.hd-product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--hd-shadow-lg);
  border-color: var(--hd-emerald-600);
}

.hd-product-media {
  position: relative;
  height: 290px;
  overflow: hidden;
}

.hd-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hd-product-card:hover .hd-product-media img {
  transform: scale(1.05);
}

.hd-product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 5px 13px;
  border-radius: var(--hd-radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--hd-emerald-900);
  color: var(--hd-gold-300);
}

.hd-product-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hd-product-cat {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hd-rose-600);
  margin-bottom: 4px;
}

.hd-product-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--hd-emerald-950);
  margin-bottom: 8px;
}

.hd-product-desc {
  font-size: 0.9rem;
  color: var(--hd-text-secondary);
  margin-bottom: 16px;
  flex: 1;
}

.hd-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.hd-tag {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--hd-emerald-50);
  color: var(--hd-emerald-800);
}

/* ==========================================================================
   8. Y BẠ & 3D CƠ THỂ & NHẬT KÝ SỨC KHỎE (Visual-First Cards)
   ========================================================================== */
.hd-tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.hd-tech-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--hd-radius-lg);
  padding: 30px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.hd-tech-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  border-color: var(--hd-gold-300);
}

.hd-tech-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.hd-tech-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--hd-gold-500), var(--hd-rose-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.hd-tech-visual-mock {
  margin: 18px 0 22px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(4, 36, 25, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   9. ĐỘI NGŨ & KHÔNG GIAN BENTO GALLERY
   ========================================================================== */
.hd-gallery-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 230px;
  gap: 16px;
}

.hd-gallery-item {
  position: relative;
  border-radius: var(--hd-radius-md);
  overflow: hidden;
}

.hd-gallery-item.span-2-col { grid-column: span 2; }
.hd-gallery-item.span-2-row { grid-row: span 2; }

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

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

.hd-gallery-caption {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(4, 36, 25, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  color: #ffffff;
}

.hd-gallery-caption h4 {
  font-size: 0.96rem;
  font-weight: 700;
}

/* ==========================================================================
   10. HỆ SINH THÁI & FORM TƯ VẤN GỌN SANG TRỌNG
   ========================================================================== */
.hd-eco-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.hd-eco-card {
  background: #ffffff;
  border-radius: var(--hd-radius-lg);
  padding: 26px;
  border: 1px solid var(--hd-border);
  box-shadow: var(--hd-shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.hd-eco-card:hover {
  border-color: var(--hd-emerald-700);
  transform: translateY(-4px);
  box-shadow: var(--hd-shadow-md);
}

.hd-eco-domain {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--hd-emerald-700);
  background: var(--hd-emerald-50);
  padding: 4px 12px;
  border-radius: var(--hd-radius-pill);
  align-self: flex-start;
  margin-bottom: 12px;
}

.hd-consult-box {
  background: #ffffff;
  border-radius: var(--hd-radius-xl);
  box-shadow: var(--hd-shadow-lg);
  border: 1px solid var(--hd-border);
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
}

.hd-consult-info {
  background: linear-gradient(155deg, var(--hd-emerald-900) 0%, var(--hd-emerald-800) 100%);
  color: #ffffff;
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hd-info-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hd-consult-form-wrap {
  padding: 44px;
}

.hd-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hd-form-group {
  margin-bottom: 14px;
}

.hd-form-group.full {
  grid-column: span 2;
}

.hd-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--hd-emerald-950);
  margin-bottom: 6px;
}

.hd-input, .hd-select, .hd-textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 12px;
  border: 1.5px solid var(--hd-border-strong);
  background: var(--hd-bg-main);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--hd-text-primary);
  transition: all 0.2s ease;
}

.hd-input:focus, .hd-select:focus, .hd-textarea:focus {
  outline: none;
  border-color: var(--hd-emerald-700);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(17, 130, 93, 0.12);
}

/* ==========================================================================
   11. FOOTER & MOBILE APP DOCK
   ========================================================================== */
.hd-footer {
  background: #006747;
  color: #dff1e8;
  padding: 64px 0 32px;
  border-top: 3px solid #ffb19e;
}

.hd-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.hd-footer-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.hd-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
}

.hd-footer-links a:hover {
  color: var(--hd-gold-300);
}

.hd-footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  flex-wrap: wrap;
  gap: 12px;
}

.hd-mobile-dock {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--hd-border);
  z-index: 1005;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
}

.hd-mobile-dock-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.hd-dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--hd-text-secondary);
}

.hd-dock-item.cta-center { color: var(--hd-rose-600); }
.hd-dock-icon { font-size: 1.2rem; margin-bottom: 2px; }

.hd-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 36, 25, 0.65);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.hd-modal-backdrop.open { display: flex; }

.hd-modal-content {
  background: #ffffff;
  border-radius: var(--hd-radius-xl);
  max-width: 500px;
  width: 100%;
  padding: 32px;
  position: relative;
  box-shadow: var(--hd-shadow-lg);
}

.hd-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--hd-border);
  background: var(--hd-bg-main);
  cursor: pointer;
}

@media (max-width: 1024px) {
  .hd-nav { display: none; }
  .hd-hero-grid,
  .hd-symptom-panel.active,
  .hd-consult-box { grid-template-columns: 1fr; }
  .hd-product-grid,
  .hd-tech-grid,
  .hd-eco-cards { grid-template-columns: repeat(2, 1fr); }
  .hd-gallery-bento { grid-template-columns: repeat(2, 1fr); }
  .hd-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  body { padding-bottom: 70px; }
  .hd-eco-contact { display: none; }
  .hd-header-inner { height: 68px; }
  .hd-brand-logo { width: 48px; height: 48px; }
  .hd-product-grid,
  .hd-tech-grid,
  .hd-eco-cards,
  .hd-form-grid,
  .hd-footer-grid { grid-template-columns: 1fr; }
  .hd-form-group.full { grid-column: span 1; }
  .hd-bento-hero { grid-template-rows: 200px 170px; }
  .hd-gallery-bento { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .hd-gallery-item.span-2-col, .hd-gallery-item.span-2-row { grid-column: span 1; grid-row: span 1; }
  .hd-symptom-panel, .hd-consult-info, .hd-consult-form-wrap { padding: 24px 20px; }
  .hd-mobile-dock { display: block; }
}

/* ==========================================================================
   12. 3D BODY EXPLORER COCKPIT & STAGE LOCATOR (PHASE 2)
   ========================================================================== */
.hd-3d-cockpit-sec {
  background: radial-gradient(circle at 50% 25%, #1f7d50 0%, #006747 58%, #114e33 100%);
  color: #ffffff;
  padding: 28px 0 56px;
}

.hd-3d-top-header {
  margin-bottom: 18px;
}

.hd-3d-eyebrow {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--hd-gold-300);
  margin-bottom: 8px;
}

.hd-3d-main-title {
  font-size: clamp(1.55rem, 2.8vw, 2.25rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  line-height: 1.2;
}

.hd-3d-main-sub {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 14px;
  line-height: 1.5;
}

.hd-stage-pills {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 255, 255, 0.06);
  padding: 6px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  gap: 8px;
  margin-bottom: 12px;
}

.hd-stage-btn {
  padding: 10px 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  text-align: left;
  cursor: pointer;
  white-space: normal;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: all 0.22s ease;
  min-width: 0;
}

.hd-stage-age {
  font-size: 0.72rem;
  opacity: 0.82;
  font-weight: 600;
  line-height: 1.25;
}

.hd-stage-name {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
}

.hd-stage-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.hd-stage-btn.active {
  background: linear-gradient(135deg, var(--hd-rose-600), var(--hd-rose-500));
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(200, 90, 72, 0.35);
}

.hd-3d-early-warning {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  background: rgba(254, 243, 199, 0.12);
  border: 1px solid rgba(253, 230, 138, 0.35);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 0.8rem;
  color: #fde68a;
  line-height: 1.45;
}

.hd-3d-early-note {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.78);
  font-style: italic;
}

.hd-3d-cockpit-grid {
  display: grid;
  grid-template-columns: 270px 1fr 370px;
  gap: 20px;
  align-items: start;
}

.hd-3d-sidebar-left,
.hd-3d-sidebar-right {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--hd-radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.hd-3d-sidebar-left {
  max-height: 760px;
  overflow-y: auto;
}

.hd-3d-panel-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--hd-gold-300);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.hd-3d-organ-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: all 0.22s ease;
  min-width: 0;
}

.hd-3d-organ-btn:hover {
  background: rgba(255, 255, 255, 0.11);
}

.hd-3d-organ-btn.active {
  background: linear-gradient(135deg, rgba(17, 130, 93, 0.72), rgba(6, 56, 39, 0.92));
  border-color: var(--hd-gold-300);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.hd-organ-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.hd-organ-text {
  min-width: 0;
  flex: 1;
}

.hd-organ-name {
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
}

.hd-organ-sub {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.3;
}

.hd-3d-reset-btn {
  margin-top: 4px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  color: var(--hd-gold-300);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}

.hd-3d-reset-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Center 3D Viewport */
.hd-3d-viewport-wrap {
  position: relative;
  background: radial-gradient(circle at 50% 45%, rgba(16, 185, 129, 0.16) 0%, rgba(4, 36, 25, 0.7) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--hd-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hd-3d-hint {
  margin: 12px 12px 0;
  background: rgba(4, 36, 25, 0.78);
  backdrop-filter: blur(8px);
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
}

.hd-3d-hint strong {
  color: #fde68a;
  font-size: 0.76rem;
}

.hd-3d-view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hd-3d-vtab {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hd-3d-vtab:hover,
.hd-3d-vtab.active {
  background: linear-gradient(135deg, #c99a4e, #ad7e34);
  color: #114e33;
  border-color: #fde68a;
  font-weight: 800;
}

.hd-3d-stage-box {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.hd-3d-canvas {
  width: 100%;
  height: 100%;
  cursor: grab;
}

.hd-3d-canvas:active {
  cursor: grabbing;
}

.hd-3d-callout-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.hd-3d-callouts-col {
  position: absolute;
  top: 14px;
  bottom: 14px;
  width: 176px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 4;
  pointer-events: none;
}

.hd-3d-callouts-col.is-left {
  left: 10px;
  align-items: flex-start;
}

.hd-3d-callouts-col.is-right {
  right: 10px;
  align-items: flex-end;
}

.hd-3d-stage-box.hide-callouts .hd-3d-callouts-col,
.hd-3d-stage-box.hide-callouts .hd-3d-callout-svg {
  display: none !important;
}

.hd-3d-callout-card {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  background: rgba(4, 36, 25, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  padding: 5px 8px;
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.hd-3d-callout-card:hover {
  background: rgba(9, 82, 58, 0.95);
  border-color: rgba(253, 230, 138, 0.7);
  transform: translateY(-1px);
}

.hd-3d-callout-card.active {
  background: linear-gradient(135deg, rgba(200, 90, 72, 0.95), rgba(159, 18, 57, 0.95));
  border-color: #fde68a;
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.4);
}

.hd-callout-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.45);
}

.hd-callout-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hd-callout-title {
  font-size: 0.71rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hd-callout-sub {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sơ đồ Giải phẫu Cận cảnh Trước & Sau Mãn Kinh */
.hd-anatomy-atlas-box {
  margin: 0 12px 12px;
  background: rgba(4, 36, 25, 0.92);
  border: 1px solid rgba(232, 204, 150, 0.38);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.hd-atlas-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.hd-atlas-badge {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 800;
  color: #fde68a;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.hd-atlas-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
}

.hd-atlas-quick-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.hd-atlas-qbtn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hd-atlas-qbtn:hover {
  background: #fde68a;
  color: #114e33;
}

.hd-med-slide-card {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #fffdf9;
}

.hd-med-atlas-svg {
  width: 100%;
  height: auto;
  display: block;
}

.hd-straw-live-bar {
  margin: 0 12px 12px;
  background: rgba(4, 36, 25, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 12px 14px;
}

.hd-straw-live-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.hd-straw-badge {
  background: var(--hd-rose-600);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--hd-radius-pill);
}

.hd-straw-live-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Right Diagnostic Column */
.hd-3d-code-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--hd-radius-pill);
  background: rgba(232, 204, 150, 0.16);
  color: var(--hd-gold-300);
}

.hd-3d-organ-title {
  font-size: 1.38rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

.hd-3d-organ-desc {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.hd-3d-metrics-box {
  background: rgba(0, 0, 0, 0.22);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hd-3d-metric-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  margin-bottom: 5px;
}

.hd-3d-metric-bar {
  height: 7px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  overflow: hidden;
}

.hd-3d-metric-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.4s ease;
}

.hd-3d-sym-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.88);
}

.hd-3d-sym-list li span {
  color: var(--hd-gold-300);
  margin-right: 6px;
}

.hd-3d-sol-box {
  background: linear-gradient(135deg, rgba(17, 130, 93, 0.35), rgba(6, 56, 39, 0.6));
  border: 1px solid rgba(232, 204, 150, 0.35);
  border-radius: 16px;
  padding: 14px;
  margin-top: auto;
}

/* STRAW+10 30-Second Quiz Card */
.hd-straw-quiz-card {
  background: #ffffff;
  border-radius: var(--hd-radius-xl);
  padding: 36px;
  box-shadow: var(--hd-shadow-md);
  border: 1px solid var(--hd-border);
}

.hd-quiz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}

.hd-quiz-num {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--hd-emerald-800);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hd-quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hd-q-opt {
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--hd-border);
  background: var(--hd-bg-main);
  color: var(--hd-text-primary);
  font-weight: 600;
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hd-q-opt:hover {
  border-color: var(--hd-emerald-600);
}

.hd-q-opt.active {
  background: var(--hd-emerald-800);
  color: #ffffff;
  border-color: var(--hd-emerald-800);
}

.hd-quiz-result {
  background: linear-gradient(135deg, var(--hd-emerald-50), #ffffff);
  border: 1.5px solid var(--hd-border-strong);
  border-radius: var(--hd-radius-lg);
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 28px;
  align-items: center;
}

.hd-qr-product-box {
  background: #ffffff;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--hd-border);
  text-align: center;
  box-shadow: var(--hd-shadow-sm);
}

@media (max-width: 1100px) {
  .hd-stage-pills {
    grid-template-columns: repeat(2, 1fr);
  }
  .hd-stage-btn-last {
    grid-column: span 2;
  }
  .hd-3d-cockpit-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hd-3d-viewport-wrap {
    order: 1;
  }
  .hd-3d-sidebar-left {
    order: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-height: none;
    overflow: visible;
    padding: 16px;
  }
  .hd-3d-sidebar-right {
    order: 3;
    padding: 18px 16px;
  }
  .hd-3d-panel-label,
  .hd-3d-reset-btn {
    grid-column: span 2;
  }
  .hd-quiz-grid,
  .hd-quiz-result {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hd-3d-cockpit-sec {
    padding: 20px 0 40px;
  }
  .hd-stage-pills {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 6px;
    border-radius: 16px;
  }
  .hd-stage-btn {
    padding: 9px 10px;
    border-radius: 12px;
  }
  .hd-stage-age {
    font-size: 0.68rem;
  }
  .hd-stage-name {
    font-size: 0.82rem;
  }
  .hd-3d-stage-box {
    height: 370px;
  }
  .hd-3d-canvas {
    height: 100%;
  }
  .hd-3d-callouts-col {
    width: 112px;
    top: 8px;
    bottom: 8px;
  }
  .hd-3d-callouts-col.is-left {
    left: 6px;
  }
  .hd-3d-callouts-col.is-right {
    right: 6px;
  }
  .hd-3d-callout-card {
    padding: 4px 6px;
    gap: 5px;
    border-radius: 8px;
  }
  .hd-callout-title {
    font-size: 0.62rem;
  }
  .hd-callout-sub {
    display: none;
  }
  .hd-anatomy-atlas-box {
    margin: 0 8px 10px;
    padding: 10px;
  }
  .hd-atlas-title {
    font-size: 0.8rem;
  }
  .hd-straw-live-metrics {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .hd-3d-sidebar-left {
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
    padding: 14px 12px;
  }
  .hd-3d-panel-label,
  .hd-3d-reset-btn {
    grid-column: span 2;
  }
  .hd-3d-organ-btn {
    padding: 8px 9px;
    gap: 8px;
    border-radius: 12px;
  }
  .hd-organ-icon {
    width: 28px;
    height: 28px;
    font-size: 0.95rem;
    border-radius: 8px;
  }
  .hd-organ-name {
    font-size: 0.78rem;
    line-height: 1.2;
  }
  .hd-organ-sub {
    font-size: 0.65rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hd-straw-quiz-card {
    padding: 20px 16px;
    border-radius: 20px;
  }
  .hd-quiz-result {
    padding: 18px 16px;
  }
  .hd-quiz-cta-row .hd-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   13. FOCUS-OS WELLNESS WEB-APP & COMMUNITY (PHASE 3)
   ========================================================================== */
.hd-focus-app {
  background: #f4f7fb;
  min-height: calc(100vh - 80px);
  padding: 28px 0 72px;
}

.hd-focus-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 1. Top Segmented Switcher (Exact FocusOS Pill Bar) */
.hd-focus-top-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #ffffff;
  padding: 6px;
  border-radius: var(--hd-radius-pill);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  margin-bottom: 24px;
}

.hd-focus-tab {
  padding: 12px 16px;
  border-radius: var(--hd-radius-pill);
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.hd-focus-tab.active {
  background: #1d72e8;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(29, 114, 232, 0.28);
}

/* 2. User Greeting Bar */
.hd-focus-userbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hd-focus-user-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hd-focus-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e8f1fd;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(29, 114, 232, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.hd-focus-greeting {
  font-size: 0.84rem;
  color: #64748b;
  font-weight: 500;
}

.hd-focus-username {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.hd-focus-user-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hd-focus-pill {
  padding: 9px 16px;
  border-radius: var(--hd-radius-pill);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  transition: all 0.2s ease;
}

.hd-focus-pill:hover {
  border-color: #1d72e8;
  color: #1d72e8;
}

.hd-focus-auth-btn {
  background: var(--hd-emerald-50);
  border-color: rgba(17, 130, 93, 0.25);
  color: var(--hd-emerald-800);
}

/* Panels */
.hd-focus-panel {
  display: none;
}

.hd-focus-panel.active {
  display: block;
  animation: hdFadeIn 0.28s ease;
}

/* 3. 7-Day Week Strip */
.hd-week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.hd-day-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 22px;
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hd-day-card:hover {
  border-color: #93c5fd;
}

.hd-day-card.active {
  background: #edf5ff;
  border-color: #3b82f6;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.14);
}

.hd-day-name {
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748b;
}

.hd-day-num {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.hd-day-card.active .hd-day-name,
.hd-day-card.active .hd-day-num {
  color: #1d72e8;
}

/* 4. FocusOS Cards */
.hd-focus-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  padding: 24px 28px;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.04);
  margin-bottom: 20px;
}

.hd-jb-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.hd-jb-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

.hd-jb-pct {
  font-size: 0.88rem;
  font-weight: 700;
  color: #64748b;
}

.hd-jb-track {
  height: 10px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 10px;
}

.hd-jb-fill {
  height: 100%;
  background: #1d72e8;
  border-radius: 99px;
}

.hd-jb-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #64748b;
}

.hd-jb-labels strong {
  color: #0f172a;
}

/* Date Switcher */
.hd-date-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0;
  padding: 0 8px;
}

.hd-date-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  color: #475569;
  cursor: pointer;
}

.hd-date-center {
  text-align: center;
  display: flex;
  flex-direction: column;
}

.hd-date-center strong {
  font-size: 1rem;
  color: #0f172a;
}

.hd-date-center span {
  font-size: 0.82rem;
  color: #64748b;
}

/* 5. Calorie Ring & Macro Bars (Exact FocusOS Match) */
.hd-card-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 10px;
  flex-wrap: wrap;
}

.hd-focus-card-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: #0f172a;
}

.hd-focus-badge-soft {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
  background: #eff6ff;
  color: #1d72e8;
}

.hd-calorie-grid {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 28px;
  align-items: center;
}

.hd-ring-wrap {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto;
}

.hd-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.hd-ring-bg {
  stroke: #e2e8f0;
}

.hd-ring-progress {
  stroke: #1d72e8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease;
}

.hd-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hd-ring-center strong {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.hd-ring-center span {
  font-size: 0.78rem;
  color: #64748b;
}

.hd-calo-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.hd-calo-stat-box {
  background: #f8fafc;
  border-radius: 14px;
  padding: 10px 12px;
  text-align: center;
}

.hd-calo-stat-box span {
  display: block;
  font-size: 0.76rem;
  color: #64748b;
  margin-bottom: 2px;
}

.hd-calo-stat-box strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.hd-macro-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hd-macro-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #475569;
  margin-bottom: 5px;
}

.hd-macro-head strong {
  color: #0f172a;
}

.hd-macro-track {
  height: 8px;
  background: #f1f5f9;
  border-radius: 99px;
  overflow: hidden;
}

.hd-macro-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.4s ease;
}

.fill-blue { background: #0ea5e9; }
.fill-amber { background: #f59e0b; }
.fill-pink { background: #f43f5e; }

.hd-quick-log-bar {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hd-ql-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
}

.hd-ql-btn {
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hd-ql-btn:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d72e8;
}

/* 6. Habit Checklist & Symptom Tracker */
.hd-focus-two-col {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
}

.hd-habit-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hd-habit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hd-habit-item input {
  display: none;
}

.hd-habit-check {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: transparent;
  flex-shrink: 0;
}

.hd-habit-item.done {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.hd-habit-item.done .hd-habit-check {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.hd-habit-text strong {
  display: block;
  font-size: 0.88rem;
  color: #0f172a;
}

.hd-habit-text span {
  font-size: 0.76rem;
  color: #64748b;
}

.hd-sym-tracker-group {
  margin-bottom: 14px;
}

.hd-st-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.hd-st-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.hd-st-pill {
  padding: 8px 6px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 0.76rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}

.hd-st-pill.active {
  background: var(--hd-emerald-800);
  color: #ffffff;
  border-color: var(--hd-emerald-800);
}

/* 7. Journey Roadmap & Community */
.hd-roadmap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.hd-roadmap-step {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.hd-roadmap-step.done {
  background: #f0fdf4;
  border-color: #86efac;
}

.hd-rm-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #059669;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hd-roadmap-step h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.hd-roadmap-step p {
  font-size: 0.85rem;
  color: #475569;
}

.hd-comm-form-top {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hd-comm-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hd-comm-post {
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid #e2e8f0;
  padding: 22px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.hd-comm-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.hd-comm-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--hd-rose-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.hd-comm-meta {
  display: block;
  font-size: 0.76rem;
  color: #64748b;
}

.hd-comm-body {
  font-size: 0.92rem;
  color: #1e293b;
  line-height: 1.65;
  margin-bottom: 14px;
}

.hd-doctor-reply {
  background: var(--hd-emerald-50);
  border-left: 3px solid var(--hd-emerald-700);
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 14px;
  font-size: 0.86rem;
}

.hd-doctor-reply strong {
  color: var(--hd-emerald-900);
  display: block;
  margin-bottom: 3px;
}

.hd-comm-actions {
  display: flex;
  gap: 12px;
}

.hd-like-btn {
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
}

@media (max-width: 768px) {
  .hd-calorie-grid,
  .hd-focus-two-col,
  .hd-roadmap-grid {
    grid-template-columns: 1fr;
  }
  .hd-week-strip {
    gap: 6px;
  }
  .hd-day-card {
    padding: 10px 4px;
    border-radius: 16px;
  }
}

/* ==========================================================================
   14. 5-STAGE CUSTOMER-CENTRIC HOMEPAGE & MOBILE-FIRST OPTIMIZATION (v5.2.0)
   ========================================================================== */

/* 14.1 Mobile Quick-Access Pill Bar in Sticky Header */
.hd-mobile-quickbar {
  display: none;
  border-top: 1px solid rgba(17, 130, 93, 0.1);
  background: rgba(252, 250, 246, 0.98);
  padding: 8px 0;
}

.hd-mobile-quickbar-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.hd-mobile-quickbar-inner::-webkit-scrollbar {
  display: none;
}

.hd-mq-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  background: #ffffff;
  color: var(--hd-emerald-950);
  border: 1px solid var(--hd-border-strong);
  box-shadow: 0 2px 6px rgba(6, 51, 36, 0.04);
  flex-shrink: 0;
}

.hd-mq-gold {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.hd-mq-blue {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #075985;
}

.hd-mq-rose {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #b93811;
}

/* 14.2 Chặng 1: Trạm Tự Kiểm Tra 15 Giây (6 Symptom Buttons + Instant Decoder) */
.hd-sym-mirror-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}

.hd-sym-mirror-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1.5px solid var(--hd-border-strong);
  background: #ffffff;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.24s ease;
  box-shadow: 0 4px 14px rgba(6, 51, 36, 0.04);
}

.hd-sym-mirror-btn:hover {
  border-color: var(--hd-emerald-700);
  transform: translateY(-2px);
}

.hd-sym-mirror-btn.active {
  background: linear-gradient(135deg, #114e33 0%, #006747 100%);
  border-color: #ffb19e;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 103, 71, 0.22);
}

.hd-sm-emoji {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--hd-emerald-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.hd-sym-mirror-btn.active .hd-sm-emoji {
  background: rgba(255, 255, 255, 0.14);
}

.hd-sm-text strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--hd-emerald-950);
  line-height: 1.25;
  margin-bottom: 3px;
}

.hd-sym-mirror-btn.active .hd-sm-text strong {
  color: #fde68a;
}

.hd-sm-text span {
  display: block;
  font-size: 0.78rem;
  color: var(--hd-text-secondary);
  line-height: 1.35;
}

.hd-sym-mirror-btn.active .hd-sm-text span {
  color: rgba(255, 255, 255, 0.84);
}

/* Instant Dual-Diagnosis Board */
.hd-decoder-board {
  background: #ffffff;
  border-radius: 26px;
  border: 2px solid rgba(17, 130, 93, 0.22);
  box-shadow: 0 20px 48px rgba(6, 51, 36, 0.09);
  padding: 32px;
}

.hd-decoder-top-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.hd-decoder-top-badge > span:first-child {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hd-emerald-800);
  background: var(--hd-emerald-50);
  padding: 5px 14px;
  border-radius: 99px;
}

.hd-dec-straw {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--hd-rose-600);
  background: var(--hd-rose-100);
  padding: 5px 14px;
  border-radius: 99px;
}

.hd-decoder-title {
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  font-weight: 800;
  color: var(--hd-emerald-950);
  margin-bottom: 6px;
}

.hd-decoder-quote {
  font-style: italic;
  font-size: 0.94rem;
  color: var(--hd-text-secondary);
  margin-bottom: 22px;
}

.hd-decoder-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.hd-decoder-col {
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hd-decoder-west {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
}

.hd-decoder-east {
  background: #fffdf7;
  border: 1px solid #fde68a;
}

.hd-dec-col-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.hd-dec-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.hd-dec-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hd-text-muted);
}

.hd-dec-col-head h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--hd-emerald-950);
  line-height: 1.3;
}

.hd-dec-body {
  font-size: 0.9rem;
  color: var(--hd-text-secondary);
  line-height: 1.65;
  margin-bottom: 14px;
}

.hd-dec-metric-bar {
  padding: 9px 14px;
  border-radius: 12px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.hd-dec-metric-gold {
  background: #fef3c7;
  color: #92400e;
}

.hd-decoder-rx-bar {
  background: linear-gradient(135deg, var(--hd-emerald-50), #fffbeb);
  border: 1px solid rgba(17, 130, 93, 0.25);
  border-radius: 18px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.hd-dec-rx-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--hd-emerald-800);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.hd-dec-rx-text {
  font-size: 0.9rem;
  color: var(--hd-emerald-950);
}

.hd-dec-rx-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* 14.3 Chặng 2: Bàn Dùng Thử Trực Tiếp "Tam Bảo Công Nghệ" */
.hd-playground-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 24px;
  align-items: stretch;
}

.hd-play-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  padding: 28px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hd-play-bazi {
  background:
    radial-gradient(circle at 90% 10%, rgba(212, 163, 89, 0.24), transparent 55%),
    rgba(255, 255, 255, 0.08);
  border-color: rgba(253, 230, 138, 0.35);
}

.hd-play-right-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hd-play-head h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin: 10px 0 6px;
  line-height: 1.25;
}

.hd-play-head p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 18px;
}

.hd-home-bazi-form label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: #fde68a;
  margin-bottom: 5px;
}

.hd-hb-input,
.hd-hb-select {
  width: 100%;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(4, 36, 25, 0.72);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
}

.hd-hb-select option {
  background: #114e33;
  color: #ffffff;
}

.hd-hb-row-full {
  margin-bottom: 12px;
}

.hd-hb-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.hd-hb-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.hd-hb-quick-presets {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.75);
}

.hd-hb-quick-presets a {
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  color: #fde68a;
  font-weight: 700;
  text-decoration: none;
}

/* Age Pills & Preview Box */
.hd-age-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.hd-age-pill {
  padding: 9px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.hd-age-pill.active {
  background: #38bdf8;
  color: #082f49;
  border-color: #bae6fd;
  font-weight: 800;
}

.hd-age-preview-box {
  background: rgba(4, 36, 25, 0.65);
  border: 1px solid rgba(125, 211, 252, 0.25);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.hd-ap-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.hd-ap-header strong {
  color: #7dd3fc;
  font-size: 0.88rem;
}

.hd-ap-header span {
  font-size: 0.75rem;
  color: #fde68a;
  font-weight: 700;
}

.hd-age-preview-box p {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.5;
  margin-bottom: 10px;
}

.hd-ap-bars {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.8);
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

.hd-ap-bars strong {
  color: #fde68a;
}

/* Mini Community List */
.hd-mini-comm-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.hd-mini-comm-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(4, 36, 25, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hd-mc-avatar {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.hd-mini-comm-item strong {
  display: block;
  font-size: 0.8rem;
  color: #fde68a;
  margin-bottom: 2px;
}

.hd-mini-comm-item p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.45;
  margin: 0;
}

/* 14.4 Chặng 3: Upgraded Product Cards & Combo Banner */
.hd-prod-for-who {
  font-size: 0.78rem;
  line-height: 1.45;
  padding: 8px 12px;
  border-radius: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  margin-bottom: 12px;
}

.hd-prod-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 12px 0 14px;
  background: var(--hd-bg-alt);
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--hd-border);
}

.hd-pt-step {
  text-align: center;
  padding: 4px;
}

.hd-pt-step strong {
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--hd-emerald-800);
}

.hd-pt-step span {
  display: block;
  font-size: 0.68rem;
  color: var(--hd-text-secondary);
  line-height: 1.25;
  margin-top: 2px;
}

.hd-combo-protocol-banner {
  margin-top: 28px;
  background: linear-gradient(135deg, #114e33 0%, #006747 65%, #1f7d50 100%);
  border-radius: 26px;
  padding: 28px 32px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 16px 38px rgba(0, 103, 71, 0.18);
}

.hd-cpb-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fde68a;
  background: rgba(212, 163, 89, 0.22);
  border: 1px solid rgba(253, 230, 138, 0.45);
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 8px;
}

.hd-cpb-left h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.hd-cpb-left p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 680px;
}

/* 14.5 Chặng 4: 5 Category Pills & Customer Story Cards (Swipeable on Mobile) */
.hd-kcat-pills-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hd-kcat-pill {
  padding: 10px 18px;
  border-radius: 99px;
  background: #ffffff;
  border: 1.5px solid var(--hd-border-strong);
  color: var(--hd-emerald-950);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.hd-kcat-pill:hover {
  background: var(--hd-emerald-800);
  color: #ffffff;
  border-color: var(--hd-emerald-800);
}

.hd-kcat-pill-gold {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #92400e;
}

.hd-home-knowledge-carousel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.hd-hk-card {
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid var(--hd-border);
  padding: 24px;
  box-shadow: var(--hd-shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.hd-hk-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hd-shadow-md);
  border-color: var(--hd-emerald-700);
}

.hd-hk-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.hd-hk-cat {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 99px;
  background: var(--hd-emerald-50);
  color: var(--hd-emerald-800);
}

.hd-hk-time {
  font-size: 0.75rem;
  color: var(--hd-text-muted);
  font-weight: 600;
}

.hd-hk-quote {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--hd-bg-alt);
  border-left: 3px solid var(--hd-rose-500);
  font-size: 0.82rem;
  font-style: italic;
  color: var(--hd-text-secondary);
  line-height: 1.5;
}

.hd-hk-title {
  font-size: 1.06rem;
  font-weight: 800;
  line-height: 1.38;
  margin-bottom: 8px;
}

.hd-hk-title a {
  color: var(--hd-emerald-950);
  text-decoration: none;
}

.hd-hk-title a:hover {
  color: var(--hd-emerald-700);
}

.hd-hk-excerpt {
  font-size: 0.85rem;
  color: var(--hd-text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
}

.hd-hk-link {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--hd-emerald-800);
  text-decoration: none;
}

.hd-mobile-swipe-hint {
  display: none;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--hd-text-muted);
  margin-top: 10px;
}

/* Quick Note Chips in Form */
.hd-quick-note-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.hd-qn-chip {
  padding: 7px 12px;
  border-radius: 99px;
  border: 1px solid var(--hd-border-strong);
  background: var(--hd-emerald-50);
  color: var(--hd-emerald-900);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.hd-qn-chip:hover {
  background: var(--hd-emerald-800);
  color: #ffffff;
}

/* ==========================================================================
   14.6 COMPREHENSIVE MOBILE-FIRST MEDIA QUERIES & VIEWPORT LOCK (v5.5.0)
   ========================================================================== */

/* Desktop default for mobile-only eyebrow text */
.hd-eyebrow-text-mobile {
  display: none;
}

/* Global Anti-Horizontal-Shift & Grid Min-Width Lock */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
}

#primary,
.hd-header,
.hd-footer,
.hd-section,
.hd-hero,
.hd-container {
  max-width: 100%;
  overflow-x: clip;
}

.hd-hero-grid > *,
.hd-bento-hero > *,
.hd-sym-mirror-grid > *,
.hd-decoder-dual-grid > *,
.hd-playground-grid > *,
.hd-product-grid > *,
.hd-home-knowledge-carousel > *,
.hd-gallery-bento > *,
.hd-eco-cards > *,
.hd-consult-box > * {
  min-width: 0;
}

/* 4-Column Fixed Mobile Quickbar Grid */
.hd-mobile-quickbar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 0 12px;
  max-width: 1260px;
  margin: 0 auto;
}

.hd-mobile-quickbar-grid .hd-mq-pill {
  justify-content: center;
  padding: 7px 4px;
  font-size: 0.74rem;
  font-weight: 800;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1024px) {
  .hd-mobile-quickbar {
    display: block;
  }
  .hd-sym-mirror-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hd-playground-grid {
    grid-template-columns: 1fr;
  }
  .hd-home-knowledge-carousel {
    grid-template-columns: repeat(2, 1fr);
  }
  .hd-combo-protocol-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  /* 1. Hide Top Ecosystem Bar on Mobile to eliminate top cut-off & clutter */
  .hd-eco-topbar {
    display: none !important;
  }

  /* 2. Fixed/Sticky App Header Lock */
  .hd-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1010;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 16px rgba(0, 103, 71, 0.06);
  }

  .hd-container {
    padding: 0 14px;
  }

  .hd-header-inner {
    height: 60px;
    gap: 8px;
  }

  .hd-brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .hd-header-actions {
    gap: 6px;
  }

  .hd-header-actions .hd-btn-sm {
    padding: 8px 12px;
    font-size: 0.78rem;
  }

  /* 3. Prevent iOS Safari zoom on input focus */
  .hd-input,
  .hd-select,
  .hd-textarea,
  .hd-hb-input,
  .hd-hb-select {
    font-size: 16px !important;
  }

  .hd-section {
    padding: 44px 0;
  }

  .hd-section-header {
    margin-bottom: 22px;
  }

  .hd-section-title {
    font-size: 1.55rem;
    line-height: 1.25;
  }

  .hd-section-desc {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  /* 4. Slide 1 Hero Optimization on Mobile */
  .hd-hero {
    padding: 18px 0 36px;
  }

  .hd-hero-grid {
    gap: 24px;
  }

  .hd-eyebrow {
    font-size: 0.68rem;
    padding: 5px 11px;
    margin-bottom: 12px;
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
  }

  .hd-eyebrow-text-desktop {
    display: none;
  }

  .hd-eyebrow-text-mobile {
    display: inline;
  }

  .hd-hero-title {
    font-size: 2rem;
    line-height: 1.15;
    margin-bottom: 12px;
  }

  .hd-hero-desc {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 16px !important;
  }

  /* 3 Exclusive Feature Strips on Mobile: Crisp 1-line title + Circular Arrow */
  .hd-hero-exclusive-list {
    gap: 8px;
    margin-bottom: 18px;
  }

  .hd-hero-ex-item {
    padding: 11px 12px;
    gap: 10px;
    border-radius: 14px;
  }

  .hd-hero-ex-item:hover {
    transform: none;
  }

  .hd-hero-ex-left {
    gap: 10px;
    min-width: 0;
    flex: 1;
  }

  .hd-hero-ex-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 1.15rem;
  }

  .hd-hero-ex-body {
    min-width: 0;
    flex: 1;
  }

  .hd-hero-ex-title {
    font-size: 0.88rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hd-hero-ex-sub {
    font-size: 0.74rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hd-cta-lbl-desk {
    display: none;
  }

  .hd-hero-ex-cta {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
  }

  /* Balanced CTA Button Grid on Mobile (Row 1: 100%, Row 2: 50% + 50%) */
  .hd-hero-cta-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px !important;
  }

  .hd-hero-cta-group .hd-btn {
    width: 100%;
    padding: 12px 10px;
    font-size: 0.82rem;
    justify-content: center;
  }

  .hd-hero-cta-full {
    grid-column: span 2;
    font-size: 0.88rem !important;
    padding: 13px 14px !important;
  }

  .hd-trust-bar {
    gap: 8px;
    padding-top: 16px;
    text-align: center;
  }

  .hd-trust-num {
    font-size: 1.05rem;
  }

  .hd-trust-label {
    font-size: 0.7rem;
    line-height: 1.25;
    display: block;
  }

  /* Right Bento Tech Cards Stacked Cleanly on Mobile */
  .hd-bento-hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 12px;
  }

  .hd-bento-tech-main {
    grid-row: auto;
  }

  .hd-bento-tech-card {
    padding: 18px 16px;
    border-radius: 20px;
  }

  .hd-bento-tech-title {
    font-size: 1.3rem;
  }

  /* 5. Chặng 1: 2-Column Equal-Height Symptom Buttons & Stacked Decoder */
  .hd-sym-mirror-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 18px;
  }

  .hd-sym-mirror-btn {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    padding: 12px;
    border-radius: 14px;
    height: 100%;
  }

  .hd-sm-emoji {
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
    border-radius: 10px;
  }

  .hd-sm-text strong {
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .hd-sm-text span {
    font-size: 0.7rem;
    line-height: 1.3;
  }

  .hd-decoder-board {
    padding: 18px 14px;
    border-radius: 18px;
  }

  .hd-decoder-dual-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hd-decoder-col {
    padding: 16px;
    border-radius: 16px;
  }

  .hd-decoder-rx-bar {
    padding: 14px;
    gap: 12px;
  }

  .hd-dec-rx-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hd-dec-rx-actions .hd-btn {
    width: 100%;
    justify-content: center;
  }

  /* 6. Chặng 2: Mini Playgrounds on Mobile */
  .hd-play-card {
    padding: 18px 14px;
    border-radius: 18px;
  }

  .hd-hb-row-3 {
    gap: 6px;
  }

  .hd-hb-select,
  .hd-hb-input {
    padding: 10px 8px;
  }

  .hd-hb-row-2 {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hd-age-pills {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  /* 7. Chặng 3: Upgraded Product Cards & Combo Banner */
  .hd-combo-protocol-banner {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .hd-cpb-left h3 {
    font-size: 1.18rem;
  }

  .hd-cpb-right,
  .hd-cpb-right .hd-btn {
    width: 100%;
    justify-content: center;
  }

  /* 8. Chặng 4: Clean Fixed-Width Vertical Cards on Mobile (No Horizontal Drift!) */
  .hd-kcat-pills-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 18px;
  }

  .hd-kcat-pill {
    padding: 9px 10px;
    font-size: 0.76rem;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hd-kcat-pill-gold {
    grid-column: span 2;
  }

  .hd-home-knowledge-carousel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    overflow: visible;
  }

  .hd-hk-card {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    padding: 18px 16px;
    border-radius: 18px;
  }

  .hd-mobile-swipe-hint {
    display: none !important;
  }

  /* 9. Chặng 5: Compact 2-Column Clinic Gallery & Fixed Bottom Dock */
  .hd-gallery-bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 145px;
    gap: 8px;
  }

  .hd-gallery-item.span-2-col.span-2-row {
    grid-column: span 2;
    grid-row: span 1;
    height: 185px;
  }

  .hd-mobile-dock {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    box-shadow: 0 -4px 20px rgba(4, 36, 25, 0.08);
  }
}

/* ==========================================================================
   FLOATING QUICK CONTACT WIDGET (5 NÚT HỒNG ĐỨC - DESKTOP FULL / MOBILE 1-TAP)
   ========================================================================== */
.hd-floating-contact {
  position: fixed;
  right: 18px;
  bottom: 32px;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

.hd-fc-list {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

.hd-fc-item {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  text-decoration: none;
  position: relative;
  pointer-events: none;
}

.hd-fc-icon {
  pointer-events: auto;
}

.hd-fc-label {
  background: rgba(4, 36, 25, 0.92);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(4, 36, 25, 0.18);
  border: 1px solid rgba(232, 204, 150, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.hd-fc-item:hover .hd-fc-label {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.hd-fc-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(4, 36, 25, 0.22);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease;
  position: relative;
  flex-shrink: 0;
}

.hd-fc-item:hover .hd-fc-icon {
  transform: scale(1.09) translateY(-1px);
  box-shadow: 0 12px 26px rgba(4, 36, 25, 0.3);
}

.hd-fc-icon svg {
  width: 22px;
  height: 22px;
  fill: #ffffff !important;
  display: block;
}

.hd-fc-icon svg path {
  fill: #ffffff !important;
}

.hd-fc-hotline .hd-fc-icon {
  background: linear-gradient(135deg, #e11d48, #d84315);
}

.hd-fc-hotline .hd-fc-icon::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(225, 29, 72, 0.45);
  animation: hdFcPulse 2s infinite;
  pointer-events: none;
}

.hd-fc-booking .hd-fc-icon {
  background: linear-gradient(135deg, #0f766e, #006747);
}

.hd-fc-zalo .hd-fc-icon {
  background: linear-gradient(135deg, #0068ff, #0052cc);
}

.hd-fc-zalo-text {
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: -0.2px;
  line-height: 1;
}

.hd-fc-facebook .hd-fc-icon {
  background: linear-gradient(135deg, #1877f2, #0d5bd9);
}

.hd-fc-map .hd-fc-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* Nút Toggle 1-Chạm (Chỉ hiển thị trên Mobile) */
.hd-fc-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.95);
  background: linear-gradient(135deg, #006747, #114e33);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(4, 36, 25, 0.32);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease;
}

.hd-fc-toggle::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(201, 154, 78, 0.55);
  animation: hdFcPulse 2.2s infinite;
  pointer-events: none;
}

.hd-fc-toggle svg {
  width: 23px;
  height: 23px;
  fill: #ffffff;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.hd-fc-toggle .hd-fc-close-ico {
  display: none;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}

.hd-fc-badge {
  position: absolute;
  top: -4px;
  left: -4px;
  background: #e11d48;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 999px;
  border: 1.5px solid #ffffff;
  line-height: 1;
}

@keyframes hdFcPulse {
  0% {
    transform: scale(0.96);
    opacity: 0.85;
  }
  70% {
    transform: scale(1.18);
    opacity: 0;
  }
  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}

/* Mobile Responsive: Phương án 1 (Thu gọn 1 nút, chạm bung 5 nút) */
@media (max-width: 768px) {
  .hd-floating-contact {
    right: 12px;
    bottom: calc(74px + env(safe-area-inset-bottom));
    gap: 8px;
  }

  .hd-fc-toggle {
    display: inline-flex;
    pointer-events: auto;
  }

  .hd-fc-list {
    display: none;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(14px) scale(0.92);
    transform-origin: bottom right;
    transition: all 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .hd-floating-contact.is-open .hd-fc-list {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .hd-floating-contact.is-open .hd-fc-item {
    pointer-events: auto;
  }

  .hd-fc-list .hd-fc-icon {
    pointer-events: none;
  }

  .hd-floating-contact.is-open .hd-fc-list .hd-fc-icon {
    pointer-events: auto;
  }

  .hd-fc-icon {
    width: 42px;
    height: 42px;
  }

  .hd-fc-icon svg {
    width: 20px;
    height: 20px;
  }

  .hd-fc-zalo-text {
    font-size: 11px;
  }

  /* Khi mở trên di động: Hiện luôn nhãn bên cạnh để khách dễ bấm */
  .hd-floating-contact.is-open .hd-fc-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    font-size: 0.74rem;
    padding: 5px 10px;
    pointer-events: auto;
  }

  .hd-floating-contact.is-open .hd-fc-toggle {
    background: linear-gradient(135deg, #d84315, #b93811);
  }

  .hd-floating-contact.is-open .hd-fc-toggle::before,
  .hd-floating-contact.is-open .hd-fc-badge,
  .hd-floating-contact.is-open .hd-fc-toggle .hd-fc-open-ico {
    display: none;
  }

  .hd-floating-contact.is-open .hd-fc-toggle .hd-fc-close-ico {
    display: block;
  }
}


