
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Be Vietnam Pro", sans-serif;
  background: #fff;
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-hotline-group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 12px;
  margin-left: 4px;
  border-left: 2px solid var(--border);
}
.nav-hotline-label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--red);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.nav-hotline-icon {
  color: var(--red);
  font-size: 1.05rem;
  animation: hotline-ring 1.5s ease-in-out infinite;
}
.nav-hotline-numbers {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav-hotline-link {
  color: var(--red);
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: opacity 0.2s;
  white-space: nowrap;
  line-height: 1.3;
}
.nav-hotline-link:hover {
  opacity: 0.7;
}
@keyframes hotline-ring {
  0%,
  100% {
    transform: rotate(0);
  }
  10% {
    transform: rotate(14deg);
  }
  20% {
    transform: rotate(-10deg);
  }
  30% {
    transform: rotate(8deg);
  }
  40% {
    transform: rotate(-5deg);
  }
  50%,
  100% {
    transform: rotate(0);
  }
}
nav.main-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-logo {
  font-family: "Barlow", sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.nav-logo i {
  color: var(--brand);
  font-size: 1.4rem;
}
.nav-logo span.heart {
  color: #e02424;
  font-size: 1.1rem;
}
.nav-links {
  display: flex;
  gap: 4px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-heading);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
  position: relative;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--brand-light);
  color: var(--brand);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-btn {
  color: var(--text-heading);
  font-size: 1.2rem;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  padding: 6px;
}
.icon-btn:hover {
  color: var(--brand);
}
.badge-cart {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--red);
  color: white;
  font-size: 0.6rem;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 50%;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.badge-cart.hidden {
  display: none;
}
.user-dropdown {
  position: relative;
}
.user-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  color: var(--text-heading);
  font-size: 0.88rem;
  font-weight: 600;
  background: none;
  border: none;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition:
    background 0.2s,
    color 0.2s;
  max-width: 160px;
  font-family: inherit;
  white-space: nowrap;
}
.user-trigger:hover {
  background: var(--brand-light);
  color: var(--brand);
}
.user-trigger i.avatar-icon {
  width: 32px;
  height: 32px;
  background: var(--brand-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: 0.85rem;
  flex-shrink: 0;
}
.user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100px;
}
.user-caret {
  color: var(--text-muted);
  font-size: 0.7rem;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.user-dropdown.open .user-caret {
  transform: rotate(180deg);
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 210px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 6px 0;
  display: none;
  z-index: 1000;
  animation: fadeDown 0.15s ease;
}
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.user-dropdown.open .dropdown-menu {
  display: block;
}
.dropdown-header {
  padding: 10px 16px 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.dropdown-header .dh-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-heading);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dropdown-header .dh-email {
  font-size: 0.75rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s;
  cursor: pointer;
}
.dropdown-item:hover {
  background: var(--brand-light);
  color: var(--brand);
}
.dropdown-item i {
  width: 16px;
  text-align: center;
  color: var(--text-muted);
}
.dropdown-item:hover i {
  color: var(--brand);
}
.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}
.dropdown-item.logout {
  color: #b91c1c;
  width: 100%;
  background: none;
  border: none;
  font-family: inherit;
  text-align: left;
}
.dropdown-item.logout:hover {
  background: #fef2f2;
  color: #b91c1c;
}
.dropdown-item.logout i {
  color: #b91c1c;
}
.nav-login-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-heading);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition:
    background 0.2s,
    color 0.2s;
  white-space: nowrap;
}
.nav-login-link:hover {
  background: var(--brand-light);
  color: var(--brand);
}
.btn-nav-cta {
  min-height: 42px;
  padding: 0 16px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.btn-nav-cta:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  color: #fff;
}
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-heading);
  cursor: pointer;
  padding: 8px;
}
.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 14px 20px 14px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 380px;
  animation: toastIn 0.3s ease;
  cursor: pointer;
}
.toast.success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}
.toast.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.toast i {
  font-size: 1.1rem;
  flex-shrink: 0;
}
@keyframes toastIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes toastOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}
footer {
  background: #060f2b;
  padding: 60px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .logo {
  font-family: "Barlow", sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 14px;
  display: block;
}
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 280px;
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.social-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  transition: all 0.2s;
  text-decoration: none;
}
.social-btn:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-3px);
}
.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}
.sticky-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 888;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sticky-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  box-shadow: var(--shadow-md);
  transition: all 0.2s;
  text-decoration: none;
  color: #fff;
}
.sticky-btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: #fff;
}
.sticky-btn.phone {
  background: var(--green);
}
.sticky-btn.book {
  background: var(--brand);
}
@media (max-width: 1120px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    z-index: 998;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 900px) {
  .nav-hotline-group {
    display: none;
  }
}
@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .sticky-cta {
    bottom: 20px;
    right: 20px;
  }
  .btn-nav-cta span.cta-text {
    display: none;
  }
  .nav-logo span {
    display: none;
  }
  .user-name {
    display: none;
  }
  .nav-right {
    gap: 6px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   PHASE 4: CẢI TIẾN NAVBAR & FOOTER
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. Navbar ── */

.nav-links a {
  position: relative;
  transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  background: transparent !important; /* bỏ background hover */
}

/* Thêm indicator bar thay cho background */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 3px;
  background: var(--brand);
  border-radius: 3px 3px 0 0;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand) !important;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* ── 2. Footer ── */

.footer-grid {
  gap: 60px !important; /* Tăng khoảng cách desktop */
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6) !important;
}

.social-btn {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.social-btn:hover {
  background: var(--brand) !important;
  transform: translateY(-4px) !important;
}

/* ── 3. Sticky CTA ── */

.sticky-btn {
  box-shadow: var(--shadow-md) !important;
}

.sticky-btn:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-lg) !important; /* Dùng tinted shadow */
}

/* Sửa typo trong footer */
/* Sửa chữ 'Hỗ Trỡ' thành 'Hỗ Trợ' (sẽ sửa trong _Layout.cshtml) */

/* Responsive shell polish for tablet and phone navigation. */
@media (max-width: 1120px) {
  .nav-links.mobile-open {
    max-height: calc(100dvh - 70px);
    overflow-y: auto;
  }
}

@media (max-width: 767px) {
  .nav-inner {
    gap: 10px !important;
    height: 64px !important;
  }

  .nav-right {
    min-width: 0;
    margin-left: auto;
  }

  .btn-nav-cta {
    min-width: 44px;
    min-height: 44px;
    padding-inline: 12px !important;
  }

  .nav-links.mobile-open {
    top: 64px !important;
    padding: 14px 16px 18px !important;
    max-height: calc(100dvh - 64px);
  }

  .nav-links.mobile-open a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .sticky-cta {
    left: 16px !important;
    right: 16px !important;
    bottom: calc(16px + env(safe-area-inset-bottom)) !important;
    justify-content: center;
  }

  .sticky-btn {
    flex: 1 1 0;
    justify-content: center;
    padding: 12px 14px !important;
  }
}
/* Production mobile shell and contact polish. */
.nav-hotline-icon,
.bk-hotline i {
  animation: hotline-ring 1.35s ease-in-out infinite, contact-pulse 1.9s ease-out infinite;
  transform-origin: center;
}

@keyframes contact-pulse {
  0% { filter: drop-shadow(0 0 0 rgba(239, 68, 68, 0)); }
  45% { filter: drop-shadow(0 0 9px rgba(239, 68, 68, 0.5)); }
  100% { filter: drop-shadow(0 0 0 rgba(239, 68, 68, 0)); }
}

@media (max-width: 767px) {
  body { overflow-x: hidden; }
  .container { width: 100%; padding-inline: 16px; }
  nav.main-nav { min-height: 64px; }
  .nav-inner { padding-inline: 14px; }
  .nav-logo { flex: 0 0 auto; padding: 0 !important; background: transparent !important; }
  .nav-logo img { margin-right: 0 !important; }
  .nav-right { gap: 8px !important; flex: 0 0 auto; }
  .icon-btn,
  .nav-login-link,
  .btn-nav-cta,
  .mobile-toggle {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 14px !important;
  }
  .nav-login-link span,
  .btn-nav-cta .cta-text,
  .user-trigger .user-name,
  .user-caret { display: none !important; }
  .nav-links.mobile-open {
    position: fixed !important;
    top: 64px !important;
    left: 10px !important;
    right: 10px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.18) !important;
  }
  .nav-links.mobile-open a {
    width: 100%;
    border-radius: 12px;
    padding: 12px 14px !important;
    font-size: 0.95rem !important;
  }
  footer { padding: 38px 0 88px !important; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 24px !important; text-align: left; }
  .footer-brand p { max-width: none; }
  .footer-social { flex-wrap: wrap; }
  .footer-bottom { align-items: flex-start !important; text-align: left !important; }
  .sticky-cta { z-index: 900; }
}

@media (max-width: 390px) {
  .container { padding-inline: 12px; }
  .nav-inner { gap: 6px !important; padding-inline: 10px; }
  .nav-right { gap: 5px !important; }
  .icon-btn,
  .nav-login-link,
  .btn-nav-cta,
  .mobile-toggle {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
  }
}

.site-data-warning {
  margin-top: 18px;
  margin-bottom: 0;
  padding: 12px 16px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 14px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-data-warning i { color: #2563eb; }

@media (max-width: 600px) {
  .site-data-warning { margin-top: 12px; font-size: 0.86rem; align-items: flex-start; }
}
