/* ===== Uniform menu page header (all menu pages) ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 4%;
  min-height: 58px;
  background: #0a0a0a;
  background-color: #0a0a0a;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  box-sizing: border-box;
}

header .header-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
}

header .header-logo {
  display: block;
  width: 68px;
  height: auto;
  max-height: 44px;
  object-fit: contain;
  border-radius: 6px;
}

header .header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  flex-shrink: 1;
  min-width: 0;
}

header .header-actions .contact-button,
header .header-actions .menu-qr-button,
header .header-actions .cta-button,
header .header-actions a.contact-button {
  box-sizing: border-box;
  margin: 0;
  padding: 4px 8px;
  min-height: 26px;
  font-size: 0.62rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  line-height: 1.2;
  color: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 0 0 auto;
  flex-shrink: 0;
  letter-spacing: 0.15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  overflow: visible;
}

header .header-actions a.contact-button:link,
header .header-actions a.contact-button:visited,
header .header-actions a.contact-button:hover,
header .header-actions a.contact-button:active {
  color: #fff;
  text-decoration: none;
}

header .header-actions .contact-button i,
header .header-actions .menu-qr-button i,
header .header-actions .cta-button i {
  font-size: 0.62rem;
  line-height: 1;
  flex-shrink: 0;
}

header .header-actions .contact-button,
header .header-actions a.contact-button {
  background: linear-gradient(45deg, #ff5733, #e74c3c);
  box-shadow: 0 3px 12px rgba(255, 87, 51, 0.35);
}

header .header-actions .menu-qr-button {
  background: linear-gradient(45deg, #f39c12, #e67e22);
  box-shadow: 0 3px 12px rgba(243, 156, 18, 0.35);
}

header .header-actions .contact-button:hover,
header .header-actions .menu-qr-button:hover,
header .header-actions .cta-button:hover,
header .header-actions a.contact-button:hover {
  transform: translateY(-1px);
}

/* ===== Footer / sticky-footer admin login ===== */
footer a.admin-login-button,
footer .admin-login-button,
.sticky-footer a.admin-login-button,
.sticky-footer .admin-login-button {
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 10px;
  padding: 7px 16px !important;
  min-height: 32px;
  font-size: 0.72rem !important;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  line-height: 1.2;
  color: #fff !important;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  background: linear-gradient(45deg, #9b59b6, #8e44ad) !important;
  box-shadow: 0 3px 12px rgba(155, 89, 182, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

footer a.admin-login-button:link,
footer a.admin-login-button:visited,
footer a.admin-login-button:hover,
footer a.admin-login-button:active,
footer a.admin-login-button:focus,
.sticky-footer a.admin-login-button:link,
.sticky-footer a.admin-login-button:visited,
.sticky-footer a.admin-login-button:hover,
.sticky-footer a.admin-login-button:active,
.sticky-footer a.admin-login-button:focus {
  color: #fff !important;
  text-decoration: none !important;
  background: linear-gradient(45deg, #9b59b6, #8e44ad) !important;
}

footer .admin-login-button:hover,
footer a.admin-login-button:hover,
.sticky-footer .admin-login-button:hover,
.sticky-footer a.admin-login-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(155, 89, 182, 0.45);
}

footer .admin-login-button i,
.sticky-footer .admin-login-button i {
  font-size: 0.85rem;
  line-height: 1;
  color: #fff !important;
  flex-shrink: 0;
}

/* ===== QR modal ===== */
.menu-qr-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none !important;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.menu-qr-modal-overlay.show {
  display: flex !important;
}

.menu-qr-modal-panel {
  position: relative;
  z-index: 3000;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 40px 16px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, #1a1a2e 0%, #12121f 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  text-align: center;
  animation: menuQrModalIn 0.24s ease;
}

.menu-qr-modal-panel > .menu-qr-modal-close {
  position: absolute !important;
  top: -18px !important;
  right: 8px !important;
  left: auto !important;
  bottom: auto !important;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 12px;
  background: #e74c3c;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(231, 76, 60, 0.5);
  transition: transform 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.menu-qr-modal-panel > .menu-qr-modal-close:hover {
  background: #c0392b;
  transform: scale(1.04);
}

.menu-qr-modal-panel > .menu-qr-modal-close:active {
  transform: scale(0.96);
}

@keyframes menuQrModalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.menu-qr-modal-heading {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #ff8c42;
}

.menu-qr-modal-panel img {
  width: min(220px, 72vw);
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.menu-qr-modal-notice {
  display: block;
  width: max-content;
  max-width: none;
  margin: 14px auto 0;
  padding: 8px 12px;
  font-size: clamp(0.5rem, 2.6vw, 0.76rem);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  color: #5c4a00;
  background: linear-gradient(135deg, #fff8dc 0%, #ffe566 100%);
  border: 1px solid #e6c200;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(255, 214, 0, 0.2);
}

@media (max-width: 768px) {
  header {
    padding: 8px 3%;
    gap: 6px;
    min-height: 54px;
  }

  header .header-logo {
    width: 60px;
    max-height: 38px;
  }

  .menu-qr-modal-panel > .menu-qr-modal-close {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    top: -14px !important;
    right: 6px !important;
  }

}

@media (max-width: 380px) {
  header {
    padding: 6px 2%;
    gap: 4px;
  }

  header .header-logo {
    width: 52px;
    max-height: 34px;
  }

  header .header-actions {
    gap: 2px;
  }

  header .header-actions .contact-button,
  header .header-actions .menu-qr-button,
  header .header-actions .cta-button,
  header .header-actions a.contact-button {
    padding: 3px 6px;
    min-height: 24px;
    font-size: 0.56rem;
    gap: 3px;
  }

  header .header-actions .contact-button i,
  header .header-actions .menu-qr-button i,
  header .header-actions .cta-button i {
    font-size: 0.55rem;
  }

  footer .admin-login-button,
  footer a.admin-login-button,
  .sticky-footer .admin-login-button,
  .sticky-footer a.admin-login-button {
    padding: 6px 14px;
    min-height: 30px;
    font-size: 0.68rem;
  }
}
