/* ==========================================================================
   SELF-HOSTED FONTS: Be Vietnam Pro (400, 600, 800)
   ========================================================================== */

/* vietnamese 400 */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/be-vietnam-pro-v12-vietnamese-400.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext 400 */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/be-vietnam-pro-v12-latin-ext-400.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin 400 */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/be-vietnam-pro-v12-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* vietnamese 600 */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/be-vietnam-pro-v12-vietnamese-600.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext 600 */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/be-vietnam-pro-v12-latin-ext-600.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin 600 */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/be-vietnam-pro-v12-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* vietnamese 800 */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/be-vietnam-pro-v12-vietnamese-800.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext 800 */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/be-vietnam-pro-v12-latin-ext-800.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin 800 */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/be-vietnam-pro-v12-latin-800.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ═══════════════════════════════════════════════════════
   DNCLOUD — Overflow Fixes (Minimal & Targeted)
   Only fix grid overflow — do NOT override layout/header
   ═══════════════════════════════════════════════════════ */

/* Chống trượt/tràn ngang toàn cục trên di động và tablet */
html, body {
  overflow-x: hidden !important;
  max-width: 100% !important;
}

/* ── Grid layout: flexbox wrap để căn giữa hàng cuối ── */
.grid--4 {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-5, 1.25rem);
}
.grid--4 > * {
  flex: 0 0 calc(25% - var(--space-5, 1.25rem) * 3 / 4);
  min-width: 0;
  max-width: calc(25% - var(--space-5, 1.25rem) * 3 / 4);
}

.grid--3 {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-5, 1.25rem);
}
.grid--3 > * {
  flex: 0 0 calc(33.333% - var(--space-5, 1.25rem) * 2 / 3);
  min-width: 0;
  max-width: calc(33.333% - var(--space-5, 1.25rem) * 2 / 3);
}

.grid--6 {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

/* ── Pricing card: không để tràn nhưng cho phép badge hiện ── */
.pricing-card {
  min-width: 0;
  overflow: visible;
  position: relative;
}

.pricing-card__amount {
  font-size: clamp(1.25rem, 2.2vw, 1.85rem) !important;
}

/* ── Bento card min-width ── */
.bento-card {
  min-width: 0;
}

/* ── Cross sell card ── */
.cross-sell-card {
  min-width: 0;
}

/* ═══ Safari/iOS: background-clip text fix ═══ */
.hero__title span,
.pricing-card--featured .pricing-card__amount,
.hp-hero__title span,
.hp-tech__cpu-icon i {
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ═══ Safari/iOS: backdrop-filter fix ═══ */
.header {
  -webkit-backdrop-filter: blur(12px);
}
.btn--light,
.hp-why-card {
  -webkit-backdrop-filter: blur(8px);
}
.overlay {
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}
.overlay.active {
  pointer-events: auto;
}
.hp-infra-card__tag,
.hp-final__chip {
  -webkit-backdrop-filter: blur(4px);
}
.hp-float-chip {
  -webkit-backdrop-filter: blur(12px);
}
.hero__label,
.hero__dashboard-body,
.hero__float,
.infra-item,
.cta-split__proof-item,
.cookie-consent__inner {
  -webkit-backdrop-filter: blur(12px);
}

/* ══════════════════════════════
   Responsive overrides
   ══════════════════════════════ */
@media (max-width: 1024px) {
  .grid--4 > * {
    flex: 0 0 calc(50% - var(--space-5, 1.25rem) / 2);
    max-width: calc(50% - var(--space-5, 1.25rem) / 2);
  }
  .grid--6 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  /* Fix: pricing cards ẩn do scroll animation không trigger trên tablet */
  .stagger-children > .pricing-card,
  .stagger-children > .service-card,
  .stagger-cascade > .pricing-card,
  .stagger-cascade > .service-card {
    opacity: 1 !important;
    transform: none !important;
    transition-delay: 0s !important;
  }
}

@media (max-width: 768px) {
  .grid--2 > *,
  .grid--3 > *,
  .grid--4 > * {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  .grid--2,
  .grid--3 {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
  }
  .grid--6 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .pricing-card__amount {
    font-size: 1.5rem !important;
  }
  /* Fix: billing toggle buttons tràn viewport */
  .billing-selector__track {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 4px !important;
  }
  .billing-option {
    font-size: 13px !important;
    padding: 6px 8px !important;
  }
  .billing-option__label {
    font-size: 13px !important;
  }
  .billing-option__badge {
    font-size: 10px !important;
  }

  /* ═══ Fix tràn ngang mobile toàn cục ═══ */
  body {
    overflow-x: clip !important;
  }
  .overlay {
    width: 100vw !important;
    max-width: 100% !important;
  }
  .footer__payment-methods {
    flex-wrap: wrap !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  .hp-tech__visual {
    max-width: 100% !important;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .grid--6 {
    grid-template-columns: 1fr !important;
  }
  .pricing-card__amount {
    font-size: 1.3rem !important;
  }
  /* Billing toggle 2 cột nhỏ gọn */
  .billing-selector__track {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}


/* ═══════════════════════════════════════════════════════
   DNCLOUD — Premium Mega Menu Redesign
   Dropdown gọn, đẹp, chuyên nghiệp
   ═══════════════════════════════════════════════════════ */

/* ── Base: Tất cả mega-menu ── */
.mega-menu.mega-menu--compact,
.mega-menu:not(.mega-menu--partners) {
  min-width: 340px !important;
  max-width: 380px !important;
  padding: 12px !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 40px rgba(11, 17, 32, 0.15),
              0 4px 12px rgba(11, 17, 32, 0.08),
              0 0 0 1px rgba(11, 17, 32, 0.04) !important;
  border: 1px solid rgba(221, 227, 237, 0.7) !important;
  background: #fff !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  will-change: opacity, transform !important;
}

/* ── Links ── */
.mega-menu--compact .mega-menu__link,
.mega-menu:not(.mega-menu--partners) .mega-menu__link {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 12px 16px !important;
  border-radius: 12px !important;
  transition: background 0.2s ease, transform 0.2s ease !important;
  text-decoration: none !important;
  position: relative !important;
  /* Reset base CSS gốc gây nháy */
  border-left: none !important;
  margin: 0 !important;
}

.mega-menu--compact .mega-menu__link:hover,
.mega-menu:not(.mega-menu--partners) .mega-menu__link:hover {
  background: linear-gradient(135deg, #ebf1ff 0%, #e8f4fe 100%) !important;
  transform: translateX(3px) !important;
}

/* ── Divider giữa các link ── */
.mega-menu--compact .mega-menu__link + .mega-menu__link,
.mega-menu:not(.mega-menu--partners) .mega-menu__link + .mega-menu__link {
  margin-top: 2px !important;
}

/* ── Icon ── */
.mega-menu--compact .mega-menu__link-icon,
.mega-menu:not(.mega-menu--partners) .mega-menu__link-icon {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #eef3ff 0%, #e8f0fe 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  color: var(--primary, #0f62fe) !important;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease !important;
  box-shadow: 0 1px 3px rgba(15, 98, 254, 0.08) !important;
}

.mega-menu--compact .mega-menu__link:hover .mega-menu__link-icon,
.mega-menu:not(.mega-menu--partners) .mega-menu__link:hover .mega-menu__link-icon {
  background: linear-gradient(135deg, #0f62fe 0%, #2563eb 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(15, 98, 254, 0.35) !important;
  transform: scale(1.05) !important;
}

/* ── Text ── */
.mega-menu--compact .mega-menu__link-text,
.mega-menu:not(.mega-menu--partners) .mega-menu__link-text {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 0 !important;
}

.mega-menu--compact .mega-menu__link-text strong,
.mega-menu:not(.mega-menu--partners) .mega-menu__link-text strong {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--heading, #0b1120) !important;
  line-height: 1.35 !important;
  letter-spacing: -0.01em !important;
}

.mega-menu--compact .mega-menu__link-text span,
.mega-menu:not(.mega-menu--partners) .mega-menu__link-text span {
  font-size: 12.5px !important;
  color: var(--muted, #5c6b82) !important;
  line-height: 1.35 !important;
}

/* ── Grid reset cho Giải pháp menu ── */
.mega-menu:not(.mega-menu--compact):not(.mega-menu--partners) .mega-menu__grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

/* ── Partners menu ── */
.mega-menu.mega-menu--partners {
  min-width: 300px !important;
  max-width: 340px !important;
  padding: 12px !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 40px rgba(11, 17, 32, 0.15),
              0 4px 12px rgba(11, 17, 32, 0.08),
              0 0 0 1px rgba(11, 17, 32, 0.04) !important;
  border: 1px solid rgba(221, 227, 237, 0.7) !important;
  background: #fff !important;
}

.mega-menu--partners .mega-menu__grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

.mega-menu--partners .mega-menu__link {
  display: flex !important;
  align-items: center !important;
  padding: 12px 16px !important;
  border-radius: 12px !important;
  gap: 14px !important;
  transition: background 0.2s ease, transform 0.2s ease !important;
  border-left: none !important;
  margin: 0 !important;
}

.mega-menu--partners .mega-menu__link:hover {
  background: linear-gradient(135deg, #ebf1ff 0%, #e8f4fe 100%) !important;
  transform: translateX(3px) !important;
}

.mega-menu--partners .mega-menu__link + .mega-menu__link {
  margin-top: 2px !important;
}

.mega-menu--partners .mega-menu__link-icon {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #eef3ff 0%, #e8f0fe 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  color: var(--primary, #0f62fe) !important;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease !important;
  box-shadow: 0 1px 3px rgba(15, 98, 254, 0.08) !important;
}

.mega-menu--partners .mega-menu__link:hover .mega-menu__link-icon {
  background: linear-gradient(135deg, #0f62fe 0%, #2563eb 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(15, 98, 254, 0.35) !important;
  transform: scale(1.05) !important;
}

.mega-menu--partners .mega-menu__link-text {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.mega-menu--partners .mega-menu__link-text strong {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--heading, #0b1120) !important;
  letter-spacing: -0.01em !important;
}

.mega-menu--partners .mega-menu__link-text span {
  font-size: 12.5px !important;
  color: var(--muted, #5c6b82) !important;
}

/* ═══ FOOTER REDESIGN — AZDIGI Style ═══ */
.footer__brand-stats {
  list-style: none;
  padding: 0;
  margin: var(--space-4, 1rem) 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__brand-stats li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.7);
}
.footer__brand-stats li i {
  color: var(--accent-cyan, #06b6d4);
  font-size: 14px;
}

.footer__company {
  grid-column: span 1;
}
.footer__company-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer__info-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
}
.footer__info-item > i {
  flex-shrink: 0;
  margin-top: 3px;
  font-size: 16px;
  color: var(--accent-cyan, #06b6d4);
}
.footer__info-item a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: color .2s;
}
.footer__info-item a:hover {
  color: var(--accent-cyan, #06b6d4);
}
.footer__info-item strong {
  color: rgba(255,255,255,.9);
  font-weight: 600;
}

/* Footer payment bar inline */
.footer__payment {
  display: flex;
  align-items: center;
  gap: var(--space-4, 1rem);
  flex-wrap: wrap;
}
.footer__payment-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  white-space: nowrap;
}

/* ── Hero compact: thêm spacing khi không có subtitle ── */
.hero--compact .hero__content {
  padding-bottom: var(--space-4, 16px);
}

/* ═══ Logo Image ═══ */
.logo__img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: opacity 0.2s ease;
}
.logo:hover .logo__img {
  opacity: 0.85;
}

/* Footer logo */
.footer .logo__img {
  height: 32px;
}

/* Fix: Mobile menu gây tràn ngang khi đóng */
.mobile-menu:not(.open) {
  display: none !important;
}
.mobile-menu.open {
  display: block !important;
}

/* Mobile menu logo */
.mobile-menu .logo__img {
  height: 32px;
}

/* ═══ Mobile Menu Fix ═══ */
.mobile-menu__link {
  justify-content: flex-start !important;
  gap: 0 !important;
  text-decoration: none;
}
.mobile-menu__link i:first-child {
  margin-right: 10px;
  flex-shrink: 0;
}
/* Arrow icon cho submenu nằm bên phải */
.mobile-menu__link i.ri-arrow-down-s-line {
  margin-left: auto;
  margin-right: 0;
}
/* Submenu hiển thị khi open */
.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.mobile-submenu.open {
  max-height: 500px;
}
.mobile-submenu__link {
  display: block;
  padding: 10px 16px 10px 46px;
  font-size: 14px;
  color: var(--body, #5C6B82);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s;
}
.mobile-submenu__link:hover,
.mobile-submenu__link:active {
  background: var(--primary-soft, #EBF1FF);
  color: var(--primary, #0F62FE);
}

@media (max-width: 768px) {
  .logo__img {
    height: 30px;
  }
}

/* Fix: Ẩn floating buttons khi mobile menu đang mở */
.mobile-menu.open ~ .floating-contact,
.mobile-menu.open ~ .promo-gift,
body:has(.mobile-menu.open) .floating-contact,
body:has(.mobile-menu.open) .promo-gift {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.2s ease;
}

/* Fix: Padding bottom cho body tránh floating buttons che nội dung */
@media (max-width: 768px) {
  main {
    padding-bottom: 80px;
  }
  /* Fix: Section header sát rìa trên mobile nhỏ */
  .section-header h2 {
    font-size: 1.5rem !important;
    padding: 0 4px;
  }
  /* Fix: Hero title tràn ngang trên mobile */
  .hero__title {
    font-size: 1.6rem !important;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
}

@media (max-width: 375px) {
  .section-header h2 {
    font-size: 1.3rem !important;
  }
  .hero__title {
    font-size: 1.4rem !important;
  }
  .hero__subtitle {
    font-size: 0.875rem !important;
  }
}

@media (max-width: 320px) {
  /* Ngăn tràn ngang toàn trang — dùng clip thay hidden để giữ sticky */
  body {
    overflow-x: clip !important;
  }
  .hero__title {
    font-size: 1.25rem !important;
  }
  .section-header h2 {
    font-size: 1.15rem !important;
  }
  .hero__subtitle {
    font-size: 0.8rem !important;
  }
  .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  /* Fix: header tràn — logo + actions quá rộng */
  .logo__img {
    height: 24px !important;
  }
  .header__actions .btn span,
  .header__actions .btn__text {
    display: none;
  }
  .header__actions .btn {
    padding: 8px 10px !important;
    min-width: 0 !important;
  }
  /* Fix: footer + bento banner tràn ngang */
  .footer,
  .footer .container,
  .feat-bento__banner {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  .footer__payment {
    flex-wrap: wrap !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  .footer__payment-title {
    display: none !important;
  }
}

/* ═══ Floating Contact — Extended Channels ═══ */
.floating-contact__item-icon--telegram {
  background: linear-gradient(135deg, #0088cc, #229ED9) !important;
  color: #fff !important;
}
.floating-contact__item-icon--chat {
  background: linear-gradient(135deg, #0084ff, #00a3ff) !important;
  color: #fff !important;
}
.floating-contact__divider {
  height: 1px;
  background: var(--border, #e2e8f0);
  margin: 6px 12px;
  opacity: 0.5;
}
.floating-contact__item--group span {
  font-size: 12px !important;
}

/* ═══ Promo Gift Box — Bottom Left ═══ */
.promo-gift {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9998;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none !important;
}
.promo-gift.visible {
  opacity: 1;
  transform: translateY(0);
}
.promo-gift.hidden {
  display: none !important;
}
.promo-gift__link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto !important;
}
.promo-gift__close {
  pointer-events: auto !important;
}
.promo-gift__icon {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B35, #EE2737);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  box-shadow: 0 4px 20px rgba(238, 39, 55, .35);
  animation: giftBounce 2s ease-in-out infinite;
  flex-shrink: 0;
  transition: transform .3s ease;
}
.promo-gift__link:hover .promo-gift__icon {
  transform: scale(1.1) rotate(-5deg);
}
.promo-gift__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: linear-gradient(135deg, #FBBF24, #F59E0B);
  color: #7C2D12;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  line-height: 1.3;
  letter-spacing: .04em;
  box-shadow: 0 2px 6px rgba(245, 158, 11, .4);
}
.promo-gift__popup {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.1), 0 2px 8px rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 200px;
  transition: box-shadow .3s ease;
}
.promo-gift__link:hover .promo-gift__popup {
  box-shadow: 0 12px 40px rgba(0,0,0,.15), 0 4px 12px rgba(0,0,0,.08);
}
.promo-gift__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.promo-gift__text strong {
  font-size: 14px;
  font-weight: 700;
  color: #0B1120;
  line-height: 1.3;
}
.promo-gift__text span {
  font-size: 13px;
  color: #5C6B82;
  line-height: 1.3;
}
.promo-gift__text em {
  font-style: normal;
  font-weight: 800;
  color: #EE2737;
}
.promo-gift__popup > i {
  font-size: 18px;
  color: #CBD5E1;
  flex-shrink: 0;
  transition: color .3s, transform .3s;
}
.promo-gift__link:hover .promo-gift__popup > i {
  color: #0F62FE;
  transform: translateX(3px);
}
.promo-gift__close {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: #E2E8F0;
  color: #64748B;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, color .2s;
  padding: 0;
  line-height: 1;
}
.promo-gift__close:hover {
  background: #EE2737;
  color: #fff;
}

@keyframes giftBounce {
  0%, 100% { transform: translateY(0); }
  15% { transform: translateY(-6px) rotate(-3deg); }
  30% { transform: translateY(0) rotate(0); }
  45% { transform: translateY(-3px) rotate(2deg); }
  60% { transform: translateY(0); }
}

/* Dark mode promo gift */
.epyc-dark .promo-gift__popup,
[data-theme="dark"] .promo-gift__popup {
  background: #161B22;
  border-color: rgba(255,255,255,.08);
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.epyc-dark .promo-gift__text strong,
[data-theme="dark"] .promo-gift__text strong { color: #fff; }
.epyc-dark .promo-gift__text span,
[data-theme="dark"] .promo-gift__text span { color: rgba(255,255,255,.6); }
.epyc-dark .promo-gift__close,
[data-theme="dark"] .promo-gift__close { background: #30363D; color: #8B949E; }


@media (max-width: 640px) {
  .promo-gift { bottom: 16px; left: 12px; right: 12px; }
  .promo-gift__icon { width: 48px; height: 48px; font-size: 22px; }
  .promo-gift__popup { min-width: 0; flex: 1; }
}

/* ═══ Footer Cert Badge — Bộ Công Thương ═══ */
.footer__cert {
  display: flex;
  align-items: center;
}
.footer__cert a {
  display: inline-block;
  line-height: 0;
  transition: opacity 0.2s ease;
}
.footer__cert a:hover {
  opacity: 0.8;
}
.footer__cert img {
  height: 58px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .footer__cert {
    justify-content: center;
    margin-top: 8px;
  }
  .footer__cert img {
    height: 48px;
  }
}

/* Fix: Ngăn floating-contact che khuất và chặn click trên mobile */
.floating-contact {
  pointer-events: none !important;
}
.floating-contact__trigger,
.floating-contact__item {
  pointer-events: auto !important;
}
.floating-contact__items {
  visibility: hidden;
}
.floating-contact.open .floating-contact__items {
  visibility: visible;
}

