:root {
  --gold: #F5A623;
  --gold-dark: #C4800A;
  --gold-light: #e5871f;
  --bg: #0E0D0B;
  --surface: #181614;
  --surface2: #221F1A;
  --surface3: #2C2820;
  --text: #F5F0E8;
  --text-muted: #9A9080;
  --radius: 18px;
  --radius-sm: 10px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

/* ─── Hero ─────────────────────────────────── */
.hero {
  position: relative;
  padding: 48px 24px 28px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.logo-ring {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: #0E0D0B;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.logo-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.logo-ring::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px dashed rgba(245, 166, 35, 0.4);
  animation: spin 18s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Horizontal Social Row */
.social-icons-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 10px 24px 20px;
}

.social-icons-row a img {
  width: 42px; /* Adjusted for mobile tap targets */
  height: 42px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.social-icons-row a:hover img {
  transform: scale(1.1);
}

/* Specific Footer Tweak for Image 2 */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  font-size: 12px;
  letter-spacing: 0.2px;
}

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 38px;
  letter-spacing: 2px;
  line-height: 1;
  color: var(--text);
  margin-bottom: 6px;
}

.hero h1 span {
  color: var(--gold);
}

.hero p {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 0.5px;
}

.badge-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
}

.badge {
  background: var(--surface2);
  border: 1px solid rgba(245, 166, 35, 0.2);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 11px;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ─── Section Label ─────────────────────────── */
.section-label {
  padding: 24px 24px 12px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--surface3);
}

/* ─── Social Links ──────────────────────────── */
.links-grid {
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--surface3);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.link-btn::after {
  content: '→';
  position: absolute;
  right: 16px;
  color: var(--text-muted);
  font-size: 16px;
  transition: transform 0.2s;
}

.link-btn:hover,
.link-btn:active {
  border-color: var(--gold);
  background: var(--surface2);
  transform: translateY(-1px);
}

.link-btn:hover::after {
  transform: translateX(3px);
}

.link-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.link-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.link-meta small {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 300;
}

/* ─── Category Tabs ─────────────────────────── */
.tabs-wrap {
  padding: 0 24px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tabs-wrap::-webkit-scrollbar {
  display: none;
}

.tab {
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--surface3);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}

.tab.active {
  background: var(--gold);
  color: #0E0D0B;
  border-color: var(--gold);
  font-weight: 600;
}

/* ─── Menu Grid ─────────────────────────────── */
.menu-grid {
  padding: 16px 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.menu-card {
  background: var(--surface);
  border: 1px solid var(--surface3);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  display: block;
}

.menu-card:hover,
.menu-card:active {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.card-img-wrap {
  position: relative;
  height: 130px;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-img-wrap img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.menu-card:hover .card-img-wrap img {
  transform: scale(1.08) rotate(-3deg);
}

.plus-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0E0D0B;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.2s;
}

.menu-card:hover .plus-btn {
  transform: scale(1.1) rotate(90deg);
}

.card-body {
  padding: 10px 12px 12px;
}

.card-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 2px;
}

.card-desc {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 6px;
}

.card-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 1px;
}

/* ─── Order CTA ─────────────────────────────── */
.cta-wrap {
  padding: 8px 24px 16px;
}

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  background: var(--gold);
  color: #0E0D0B;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}

.cta-btn:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.cta-btn:active {
  transform: scale(0.98);
}
/* Ensure the modal is hidden by default */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85); /* Darken the background */
  display: none; /* <--- THIS IS THE KEY: it starts hidden */
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.50s ease;
}

/* This class will be added by JavaScript to show the modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex; /* We use opacity and pointer-events to handle the toggle */
  align-items: center;
  justify-content: center;
  z-index: 1000;
  
  /* Initial state: Invisible */
  opacity: 0;
  pointer-events: none; 
  
  /* 3 Second Fade Effect */
  transition: opacity 0.50s ease-in-out;
}

.modal-overlay.active {
  /* Visible state */
  opacity: 1;
  pointer-events: all;
}

.qr-modal {
  background: rgba(24, 22, 20, 0.75); 
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(245, 166, 35, 0.2); 
  width: 90%;
  max-width: 350px;
  border-radius: 24px;
  padding: 40px 24px;
  text-align: center;
  position: relative;
  
  /* Small slide-up effect during the 3 seconds */
  transform: translateY(30px);
  transition: transform 0.50s ease-out;
  color: #F5F0E8; 
}

.modal-overlay.active .qr-modal {
  transform: translateY(0);
}

.close-qr {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  color: #888;
  cursor: pointer;
}

.qr-container {
  width: 200px;
  height: 200px;
  margin: 0 auto 24px;
  background: #f8f8f8;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.qr-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-name {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 4px;
  color: #1a1a1a;
}

.qr-sub {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}

.qr-label {
  display: inline-block;
  padding: 6px 16px;
  background: #f0f0f0;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #2D58FF; /* GCash Blue-ish tint */
}

/* ─── Footer ────────────────────────────────── */
.footer {
  padding: 20px 24px 40px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.8;
  border-top: 1px solid var(--surface2);
  margin-top: 8px;
}

.footer strong {
  color: var(--gold);
  font-weight: 500;
}

/* ─── Animations ────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero       { animation: fadeUp 0.5s ease both; }
.links-grid { animation: fadeUp 0.5s 0.1s ease both; }
.tabs-wrap  { animation: fadeUp 0.5s 0.2s ease both; }
.menu-grid  { animation: fadeUp 0.5s 0.3s ease both; }
.cta-wrap   { animation: fadeUp 0.5s 0.35s ease both; }

/* ─── Menu Filter State ─────────────────────── */
.menu-card { display: block; }
.menu-card.hidden { display: none; }