/* === DU LIEU NHA CAI (Variant: blackgold) - HOT === */
/* ==== CSS CHỔI DESKTOP / MOBILE CHO HEADER & FOOTER ==== */
/* ==== mobile-menu-overlay ngoài global để dự phòng ==== */
.mobile-menu-overlay { display: none; }
:root {
  --bg-color: #0A0A0A;
  --bg-card: #111111;
  --text-main: #FFF6D6;
  --border-color: #3A2A12;
  --primary: #F2C14E;
  --secondary: #FFD36B;
  --glow-color: #FFD36B;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --header-top-bg: #0A0A0A;
  --header-nav-bg: #161616;
  --btn-text-dark: #21160F;
  --footer-bg: #0A0A0A;
  --footer-title-bg: var(--primary);
  --header-offset: 122px;
}
body { margin: 0; padding: 0; background-color: var(--bg-color); padding-top: var(--header-offset); font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
html { scroll-behavior: smooth; }
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.6); background-color: #0A0A0A; }
/* ===== TOP BAR (LOGO + BUTTONS) ===== */
.header-top { background-color: var(--header-top-bg); width: 100%; border-bottom: 1px solid var(--border-color); }
.header-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding-left: 20px; padding-right: 20px; min-height: 68px; gap: 15px; box-sizing: border-box; }
.logo { display: inline-block; font-size: 30px; font-weight: 800; letter-spacing: 0.5px; text-decoration: none; color: #FFFFFF; line-height: 1.1; transition: opacity 0.2s ease; }
.logo .logo-dot { color: var(--secondary); }
.logo:hover { opacity: 0.9; }
.desktop-nav-buttons { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; width: auto; padding: 10px 18px; border-radius: 24px; font-weight: 700; font-size: 14px; line-height: 1.2; cursor: pointer; text-decoration: none; border: none; white-space: nowrap; transition: all 0.25s ease 0s; box-shadow: rgba(0, 0, 0, 0.2) 0 2px 6px; background: var(--button-gradient); color: var(--btn-text-dark); }
.btn:hover { opacity: 0.9; transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-login { margin-right: 8px; }
.btn-register { background: linear-gradient(135deg, #ffb84d, #d18f1f); margin-right: 5px; }
.btn-download { background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); }
/* ===== MAIN NAV (DESKTOP) ===== */
.main-nav { background-color: var(--header-nav-bg); width: 100%; display: flex; position: static; top: auto; left: auto; transform: none; box-shadow: none; transition: none; }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: row; justify-content: center; align-items: center; padding: 0px 20px; width: 100%; box-sizing: border-box; }
.nav-item { display: inline-block; padding: 14px 14px; color: #f5e5c8; text-decoration: none; font-size: 15px; font-weight: 600; white-space: nowrap; transition: color 0.2s ease, background-color 0.2s ease; border-bottom: 3px solid transparent; }
.nav-item:hover { color: var(--secondary); background-color: rgba(255, 255, 255, 0.04); }
.nav-item.active { color: var(--primary); border-bottom-color: var(--primary); }
.nav-item.btn-km { color: #f2b23e; }
.mobile-nav-buttons { display: none; }
.hamburger-menu { display: none; }
/* ===== FOOTER ===== */
.site-footer { background-color: var(--footer-bg); color: var(--text-main); border-top: 3px solid var(--border-color); padding: 0; margin-top: 40px; }
.footer-container-footer { max-width: 1200px; margin: 0 auto;
}
.footer-container { max-width: 1200px; margin: 0 auto; padding: 48px 20px 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 32px; }
.footer-logo { text-decoration: none; font-size: 28px; font-weight: 700; margin-bottom: 14px; display: inline-block; color: #f0e2c6;}
.footer-logo .logo-dot { color: var(--secondary); }
.footer-desc { color: #c5b89a; margin: 14px 0; line-height: 1.7; font-size: 14px; }
.footer-hotline { margin: 14px 0; color: var(--text-main); font-weight: 500; }
.phone-number { color: var(--primary); font-weight: 700; }
.footer-col { min-width: 0; }
.footer-title { color: var(--text-main); font-weight: 700; margin: 0 0 16px; font-size: 18px; padding-bottom: 8px; border-bottom: 2px solid var(--border-color); }
.footer-nav { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-nav li a { color: #aaa893; text-decoration: none; font-size: 14px; transition: color 0.2s ease 0s, padding-left 0.2s ease 0s; }
.footer-nav li a:hover { color: var(--secondary); }
.footer-bottom { border-top: 2px solid var(--border-color); margin-top: 20px; padding-top: 20px; text-align: center; }
.footer-license { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; background-color: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 8px 16px; margin-bottom: 16px; }
.license-tag { background-color: #FFD36B; color: #111; border-radius: 4px; font-weight: 800; display: inline-block; padding: 4px 8px; }
.footer-license p { margin: 0; color: #ada992; font-size: 12px; }
.footer-copyright { margin: 8px 0 0; font-size: 13px; color: #9a8f79; }
/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  .site-header { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6); }
  .header-container { max-width: none; width: 100%; min-height: 60px; gap: 8px; padding-left: 12px; padding-right: 8px; justify-content: space-between; display: flex; }
  .logo { font-size: 22px; margin: 0 auto; text-align: center; order: 2; flex: 0 1 auto; }
  .hamburger-menu { display: flex; flex-direction: column; justify-content: center; background: transparent; border: none; cursor: pointer; padding: 10px 12px; width: 46px; height: 46px; order: 1; position: relative; z-index: 1001; }
  .hamburger-line { display: block; width: 24px; height: 2px; margin: 4px auto; background-color: #FFFFFF; border-radius: 10px; transition: all 0.3s ease; }
  .hamburger-menu.active .hamburger-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .hamburger-menu.active .hamburger-line:nth-child(2) { opacity: 0; }
  .hamburger-menu.active .hamburger-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .desktop-nav-buttons { display: none; }
  .mobile-nav-buttons { display: flex; justify-content: center; align-items: center; padding: 0px; gap: 10px; position: relative; top: 0px; width: 100%; min-height: 48px; box-sizing: border-box; }
  .mobile-nav-buttons .btn { flex: 1; max-width: 170px; padding: 9px 7px; font-size: 13px; }
  .main-nav { display: none; position: fixed; top: 108px; left: 0; width: 260px; background-color: #161616; flex-direction: column; padding: 10px 0px 10px; box-shadow: rgba(0, 0, 0, 0.9) 4px 4px 20px; border-right: 2px solid var(--border-color); transform: translateX(-100%); transition: transform 0.3s ease; height: auto; overflow-y: auto; max-height: calc(100vh - 108px); }
  .main-nav.active { display: flex; transform: translateX(0); }
  .nav-container { width: 100%; max-width: none; padding: 0px 10px; flex-direction: column; align-items: flex-start; margin: 0; }
  .nav-item { height: auto; padding: 12px 12px; width: 100%; box-sizing: border-box; border-bottom: 1px solid #2C2819; margin-left: 0px; font-size: 15px; }
  .nav-item:hover, .nav-item.active { background-color: rgba(242, 193, 78, 0.12); }
  .nav-item.btn-km { color: var(--secondary); }
  .mobile-menu-overlay.active { display: block; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.75); z-index: 998; }
  .mobile-nav-buttons { z-index: 990; background-color: #0D0D0D; border-bottom: 1px solid #2b2b2b; }
  .main-nav.active { z-index: 999; }
  .btn { border-radius: 22px; font-size: 13px; box-shadow: none; }
  .btn-login { background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); }
  .page-content img, .footer-container img { max-width: 100% !important; height: auto !important; display: block; }
  .footer-container { padding: 40px 15px 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-col { margin-top: 0; }
  .footer-bottom { padding: 16px 0 10px; }
  .site-footer { overflow-x: hidden; }
  .page-content, .site-footer, .footer-container { overflow-x: hidden; }
}
/* ===== EXTRA BIG ===== */
@media (min-width: 768px) and (max-width: 1024px) { .nav-container { gap: 2px; } .nav-item { font-size: 14px; padding-left: 10px; padding-right: 10px; } }
/* ===== Điều chỉnh nhỏ cho nút mobile không bị tràn ===== */
.btn { flex-shrink: 0; }
.page-content { overflow-x: hidden; max-width: 100%; }
body { overflow-x: hidden; }
/* 移动端内容区防溢出（系统追加，请勿删除） */
@media (max-width: 768px) {
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: hidden;
  }
}
/* 内容保护（系统追加，请勿删除） */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}
