:root {
  --bg-dark: #0b0f19;
  --bg-card: rgba(18, 24, 38, 0.75);
  --border-color: rgba(255, 255, 255, 0.08);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  
  --brand-red: #d90429;
  --gold: #d4af37;
  --gold-glow: rgba(212, 175, 55, 0.25);
  --emerald: #52b788;
  --emerald-glow: rgba(82, 183, 136, 0.25);
  --terracotta: #e07a5f;
  --terracotta-glow: rgba(224, 122, 95, 0.25);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
}

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

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(at 50% 0%, rgba(217, 4, 41, 0.12) 0px, transparent 60%),
    radial-gradient(at 0% 100%, rgba(212, 175, 55, 0.06) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(82, 183, 136, 0.06) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* Header with Transparent PNG Logo */
.site-header {
  padding: 2.5rem 0 1.25rem;
  text-align: center;
}

.brand-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.main-logo-link {
  display: inline-block;
  text-decoration: none;
}

.main-logo-img {
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.main-logo-img:hover {
  transform: translateY(-2px) scale(1.02);
  filter: drop-shadow(0 12px 30px rgba(217, 4, 41, 0.3));
}

.brand-text h1 {
  display: none; /* Logo already prominently features BIKASH BABU PREMIUM */
}

.brand-text p {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 600;
}

/* Cards Grid - Optimized for 2 Menu Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 480px));
  justify-content: center;
  gap: 2rem;
  margin: 2rem auto 3.5rem;
  max-width: 1040px;
}

@media (max-width: 820px) {
  .cards-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 1.5rem auto 3rem;
  }
}

.menu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.5);
}

.menu-card:hover {
  transform: translateY(-5px);
  border-color: var(--card-theme-accent);
  box-shadow: 0 20px 40px -10px var(--card-theme-glow);
}

.card-dine-in, .card-aurelia {
  --card-theme-accent: #e63946;
  --card-theme-glow: rgba(230, 57, 70, 0.3);
}

.card-sweets, .card-urban-table {
  --card-theme-accent: #d4af37;
  --card-theme-glow: rgba(212, 175, 55, 0.3);
}

.card-malabar {
  --card-theme-accent: var(--terracotta);
  --card-theme-glow: var(--terracotta-glow);
}

.card-top-accent {
  height: 4px;
  background: var(--card-theme-accent);
  width: 100%;
}

.card-header {
  padding: 1.5rem 1.5rem 0.75rem;
  text-align: center;
}

.badge-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--card-theme-accent);
  margin-bottom: 0.35rem;
}

.card-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.card-subtitle-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  line-height: 1.4;
}

/* QR Presentation Box */
.qr-preview-box {
  margin: 0.5rem 1.5rem 1.25rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-canvas-holder {
  background: #ffffff;
  padding: 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.qr-canvas-holder canvas {
  display: block;
  width: 180px;
  height: 180px;
}

.scan-indicator {
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Actions */
.card-actions {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: auto;
}

.btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--card-theme-accent, #d4af37);
  color: #0b0f19;
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.btn-tertiary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  width: 100%;
}

.btn-tertiary:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border-color: var(--card-theme-accent);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #111827;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  max-width: 460px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.75rem;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #1e293b;
  color: #fff;
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2000;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Footer */
footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 0;
  text-align: center;
  color: var(--text-subtle);
  font-size: 0.8rem;
}

footer a,
footer a:hover,
footer a:focus,
footer a:active,
footer a:visited {
  text-decoration: none !important;
  color: inherit;
  transition: opacity 0.2s ease;
}

footer a:hover {
  opacity: 0.85;
}
