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

body {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: #1a1714;
}

/* Kh?i Menu Card chinh */
.menu-card {
  width: 100%;
  max-width: 460px;
  border-radius: 24px;
  padding: 30px 20px calc(22px + env(safe-area-inset-bottom));
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* -------------------------------------------------------------
   ?NH N?N (KH?C PH?C L?I M?T HINH VA L?I RUNG GI?T)
   ------------------------------------------------------------- */
.menu-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 55%;
  background-image: url('https://samtuyenlamhotel.com.vn/menu/image/bg.jpg');
  background-position: right top;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -3;

  /* Gi? nguyen mau s?c chu?n g?c nhung tach layer x? ly */
  filter: contrast(1.08) brightness(1.02) saturate(1.15);
  
  /* Ep trinh duy?t dung chip d? h?a GPU d? ch?y mu?t 100%, khong b? gi?t/rung */
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;

  /* Dung linear easing d? troi m?n hoan toan */
  animation: kenBurnsBg 22s infinite alternate linear;
}

@keyframes kenBurnsBg {
  0% { 
    transform: scale(1) translateY(0); 
    -webkit-transform: scale(1) translateY(0);
  }
  100% { 
    transform: scale(1.08) translateY(-6px); 
    -webkit-transform: scale(1.08) translateY(-6px);
  }
}

.bg-blend-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 55%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(245,239,230,0.2) 50%, rgba(245,239,230,0.95) 88%, #f5efe6 100%);
  z-index: -2;
  pointer-events: none;
}

.menu-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to bottom, #f5efe6 0%, #e8decb 100%);
  z-index: -3;
}

.header-glow-bg {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 220px;
  background: radial-gradient(ellipse at center, rgba(255,253,248,0.92) 0%, rgba(255,251,245,0.7) 45%, rgba(255,255,255,0) 80%);
  z-index: -1;
  pointer-events: none;
}

/* Header & Logo */
.logo-container {
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-img {
  max-width: 250px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(255,255,255,0.5));
}

.main-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 36px;
  color: #2a211b;
  margin: 8px 0 6px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.header-divider-line {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80%;
  margin: 0 auto 24px;
}

.header-divider-line::before,
.header-divider-line::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #544332;
  opacity: 0.65;
}

.lotus-icon {
  width: 26px;
  height: 18px;
  fill: none;
  stroke: #544332;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
  margin: 0 10px;
}

/* Option Cards (Cac nut l?a ch?n) */
.option-card {
  display: flex;
  align-items: stretch;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(163, 140, 118, 0.3);
  position: relative;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  animation: pulseAttention 2.5s infinite ease-in-out;
  cursor: pointer;
}

/* S?a hi?u ?ng pulse d? KHONG dung box-shadow d?ng (nguyen nhan chinh gay gi?t frame tren mobile) */
@keyframes pulseAttention {
  0%, 100% { border-color: rgba(163, 140, 118, 0.3); }
  50% { border-color: rgba(191,32,38,0.7); }
}

.option-card:hover {
  animation: none;
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
  border-color: #a38c76;
}

.option-img-wrapper {
  width: 56%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-self: stretch;
}

.option-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.option-img-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,253,250,0) 0%, rgba(255,253,250,0.85) 75%, rgba(255,253,250,1) 100%);
  pointer-events: none;
}

.option-content {
  width: 44%;
  padding: 16px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fffdfa;
  transition: background-color 0.3s ease;
}

.option-card:hover .option-content {
  background: #ffffff;
}

.menu-icon-svg {
  width: 46px;
  height: 46px;
  margin-bottom: 6px;
}

.option-title {
  font-family: 'Playfair Display', serif;
  font-size: 21px;
  color: #2c2825;
  margin-bottom: 8px;
  font-weight: 400;
  white-space: nowrap;
  letter-spacing: -0.2px;
  width: 100%;
  text-align: center;
}

.option-title-line {
  width: 80%;
  height: 1px;
  background: #a38c76;
  margin-bottom: 10px;
  transition: width 0.3s ease, background 0.3s ease;
}

.option-card:hover .option-title-line {
  width: 95%;
  background: #bf2026;
}

.arrow-btn {
  width: 32px;
  height: 32px;
  background-color: #3b2b27;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.option-card:hover .arrow-btn {
  background-color: #bf2026;
  transform: translateX(3px);
}

/* Footer & Ch? Welcome */
.footer-container {
  margin-top: 15px;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-divider-line {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 8px;
}

.footer-divider-line::before,
.footer-divider-line::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #544332;
  opacity: 0.65;
}

.footer-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  letter-spacing: 1.8px;
  color: #3b2f26;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0 8px;
  white-space: normal;
  text-align: center;
  line-height: 1.4;
}

/* Modal xem th?c don & C?u hinh Zoom cho Zalo */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  touch-action: none;
  overflow: hidden;
}

.modal.active {
  display: flex;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1000;
}

.modal-content {
  max-width: 95%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.1s ease-out;
  transform-origin: center center;
  will-change: transform;
}

.modal-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 80%;
  max-width: 400px;
  margin-top: 15px;
}

.nav-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  padding: 10px 18px;
  font-size: 18px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.5);
}

.page-indicator {
  color: #fff;
  font-family: sans-serif;
  font-size: 14px;
}

/* Responsive rieng cho thi?t b? di d?ng / Zalo Browser */
@media (max-width: 480px) {
  body {
    padding: 0;
    align-items: flex-start;
  }
  
  .menu-card {
    max-width: 100%;
    min-height: 100vh;
    border-radius: 0;
    border: none;
    padding-top: max(25px, env(safe-area-inset-top));
    padding-bottom: max(30px, env(safe-area-inset-bottom));
    padding-left: 16px;
    padding-right: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .logo-img { max-width: 210px; }
  .main-title { font-size: 30px; }
  .option-title { font-size: 19px; }

  .footer-text {
    font-size: 13px;
    max-width: 260px;
    margin: 0 auto;
  }
}