/* =============================================
   MIDNIGHT PULSE LOUNGE — Customer Menu Styles
   Neon Black Luxury aesthetic
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --black:        #0a0a0a;
  --black-mid:    #111111;
  --black-card:   #161616;
  --black-border: #1f1f1f;
  --gold:         #c9a84c;
  --gold-dark:    #a8882e;
  --gold-light:   #e8c97a;
  --gold-glow:    rgba(201, 168, 76, 0.18);
  --gold-subtle:  rgba(201, 168, 76, 0.07);
  --white:        #ffffff;
  --cream:        #f5f0e8;
  --text:         #e8e0d0;
  --muted:        #7a7060;
  --border:       #2a2520;
  --neon-blue:    #00d4ff;
  --neon-purple:  #bf5fff;
  --neon-blue-glow: rgba(0, 212, 255, 0.12);
  --shadow-gold:  0 4px 24px rgba(201,168,76,0.15);
  --shadow-dark:  0 8px 32px rgba(0,0,0,0.6);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--black);
  color: var(--text);
  min-height: 100vh;
  /* Subtle noise texture via gradient */
  background-image:
    radial-gradient(ellipse at 15% 0%, rgba(201,168,76,0.04) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(0,212,255,0.03) 0%, transparent 55%);
}

/* ---- HEADER ---- */
.site-header {
  position: relative;
  text-align: center;
  padding: 0;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    url('https://images.unsplash.com/photo-1566417713940-fe7c737a9ef2?q=80&w=1129&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D')
    center center / cover no-repeat;
}

.header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.72) 50%,
    rgba(10,10,10,0.95) 100%
  );
  z-index: 1;
}

/* Neon scan-line effect on header */
.header-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(255,255,255,0.012) 3px,
    rgba(255,255,255,0.012) 4px
  );
  pointer-events: none;
}

.header-content {
  position: relative;
  z-index: 2;
  padding: 48px 28px 52px;
  width: 100%;
}

.header-eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--neon-blue);
  margin-bottom: 16px;
  text-shadow: 0 0 20px rgba(0,212,255,0.6);
}

.header-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 9vw, 4.8rem);
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow:
    0 0 40px rgba(201,168,76,0.4),
    0 2px 4px rgba(0,0,0,0.8);
}

.header-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 18px auto;
}

.header-divider::before,
.header-divider::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
}

.header-divider::after {
  background: linear-gradient(to left, transparent, var(--gold));
}

.header-divider-gem {
  color: var(--gold);
  font-size: 0.6rem;
  text-shadow: 0 0 12px rgba(201,168,76,0.8);
}

.header-tagline {
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(201,168,76,0.7);
  margin-top: 4px;
}

.table-chip {
  display: inline-block;
  margin-top: 20px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.5);
  color: var(--gold);
  border-radius: 20px;
  padding: 6px 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  box-shadow: 0 0 16px rgba(201,168,76,0.15);
}

/* ---- CATEGORY NAV ---- */
.cat-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,10,0.97);
  border-bottom: 1px solid var(--black-border);
  padding: 0 12px;
  display: flex;
  justify-content: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (max-width: 480px) {
  .cat-nav {
    justify-content: flex-start;
  }
}

.cat-nav::-webkit-scrollbar { display: none; }

.cat-nav-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 14px 18px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.cat-nav-btn:hover { color: var(--text); }

.cat-nav-btn.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
  font-weight: 600;
  text-shadow: 0 0 12px rgba(201,168,76,0.4);
}

/* ---- CONTAINER ---- */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px 120px;
}

/* ---- CATEGORY SECTION ---- */
.menu-section {
  padding-top: 44px;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(201,168,76,0.2);
}

.section-emoji {
  font-size: 1.3rem;
  line-height: 1;
}

.section-rule {
  height: 1px;
  background: linear-gradient(to right, var(--gold-dark), transparent);
  margin-bottom: 6px;
  opacity: 0.4;
}

/* ---- MENU ITEM ---- */
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 16px;
  border-bottom: 1px solid var(--black-border);
  transition: background 0.2s;
  border-radius: 4px;
  margin-bottom: 2px;
}

.menu-item:hover {
  background: var(--gold-subtle);
}

.menu-item:last-child { border-bottom: none; }

.item-body { flex: 1; }

.item-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 4px;
  line-height: 1.2;
  letter-spacing: 0.3px;
}

.item-desc {
  font-size: 0.79rem;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 300;
  margin-bottom: 6px;
}

.badges { display: flex; flex-wrap: wrap; gap: 5px; }

.badge {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: 3px;
  padding: 2px 7px;
}

.badge-veg     { background: rgba(39,174,96,0.12);  color: #52c47a; border: 1px solid rgba(39,174,96,0.3);  }
.badge-spicy   { background: rgba(231,76,60,0.12);  color: #ff6b5e; border: 1px solid rgba(231,76,60,0.3);  }
.badge-new     { background: var(--neon-blue-glow); color: var(--neon-blue); border: 1px solid rgba(0,212,255,0.3); }
.badge-popular { background: var(--gold-subtle);    color: var(--gold);      border: 1px solid rgba(201,168,76,0.35); }

.item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.item-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.add-btn {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.5);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  font-size: 1.4rem;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  padding-bottom: 1px;
}

.add-btn:hover {
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 0 16px rgba(201,168,76,0.4);
  border-color: var(--gold);
}

.add-btn:active { transform: scale(0.92); }

.add-btn-disabled {
  background: rgba(201,168,76,0.08);
  color: var(--muted);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: not-allowed;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: 'Outfit', sans-serif;
}

.item-out-of-stock { opacity: 0.4; }

/* ---- ALLERGEN / DISCLAIMER ---- */
.allergen {
  margin: 32px 0 0;
  padding: 14px 18px;
  background: rgba(201,168,76,0.05);
  border-left: 2px solid rgba(201,168,76,0.35);
  border-radius: 0 6px 6px 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.7;
}

.allergen strong { color: var(--gold-light); }

/* ---- FLOATING ACTION BAR ---- */
.fab-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 200;
  width: calc(100% - 32px);
  max-width: 480px;
}

.waiter-fab {
  flex: 1;
  background: rgba(20,20,20,0.92);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: 14px;
  padding: 14px 18px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-dark);
  transition: all 0.2s;
  letter-spacing: 0.3px;
}

.waiter-fab:hover {
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 4px 24px rgba(201,168,76,0.4);
}

.waiter-fab.called {
  background: rgba(39,174,96,0.15);
  color: #52c47a;
  border-color: rgba(39,174,96,0.4);
}

.cart-fab {
  flex: 1;
  background: var(--gold);
  color: var(--black);
  border: none;
  border-radius: 14px;
  padding: 14px 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(201,168,76,0.35);
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.3px;
}

.cart-fab:hover  {
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(201,168,76,0.5);
}

.cart-fab:active { transform: scale(0.97); }

.cart-fab-count {
  background: var(--black);
  color: var(--gold);
  border-radius: 10px;
  padding: 1px 8px;
  font-size: 0.82rem;
  font-weight: 700;
  min-width: 22px;
  text-align: center;
}

.fab-docked {
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
  margin: 0 auto;
  padding: 16px;
  background: var(--black-mid);
  border-top: 1px solid var(--black-border);
  max-width: 100%;
}

/* ---- MODALS ---- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  z-index: 300;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-overlay.open {
  display: flex;
  animation: fadeOverlay 0.2s ease;
}

@keyframes fadeOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-sheet {
  background: var(--black-card);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -8px 48px rgba(0,0,0,0.7);
  border-top: 1px solid var(--black-border);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.modal-handle {
  width: 36px;
  height: 4px;
  background: var(--black-border);
  border-radius: 2px;
  margin: 12px auto 0;
  flex-shrink: 0;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px 14px;
  border-bottom: 1px solid var(--black-border);
  flex-shrink: 0;
}

.modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.5px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.15s;
}

.modal-close:hover { color: var(--gold); }

.modal-body {
  padding: 18px 22px;
  overflow-y: auto;
  flex: 1;
}

.modal-foot {
  padding: 14px 22px 32px;
  border-top: 1px solid var(--black-border);
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* ---- CUSTOMIZATION MODAL ---- */
.extras-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 10px;
}

.extra-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--black-border);
  gap: 12px;
}

.extra-row:last-child { border-bottom: none; }

.extra-name  { font-size: 0.92rem; font-weight: 500; color: var(--text); }
.extra-price { font-size: 0.8rem; color: var(--gold); font-weight: 600; margin-top: 2px; }

.qty-ctrl {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border: 1.5px solid rgba(201,168,76,0.4);
  background: transparent;
  color: var(--gold);
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.15s;
  font-family: 'Outfit', sans-serif;
}

.qty-btn:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }

.qty-val {
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 18px;
  text-align: center;
  color: var(--text);
}

.note-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 8px;
}

.note-input {
  width: 100%;
  border: 1.5px solid var(--black-border);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--black-mid);
  resize: vertical;
  min-height: 72px;
  outline: none;
  transition: border-color 0.2s;
}

.note-input:focus { border-color: rgba(201,168,76,0.5); }

/* ---- CART MODAL ---- */
.cart-table-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 14px;
}

.cart-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--black-border);
  gap: 10px;
}

.cart-item:last-child { border-bottom: none; }

.cart-item-left  { flex: 1; }
.cart-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }

.cart-item-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--cream);
}

.cart-extras {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.cart-extra-tag {
  background: var(--gold-subtle);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 4px;
  padding: 1px 7px;
  font-size: 0.71rem;
  font-weight: 600;
}

.cart-note-tag {
  font-size: 0.75rem;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border-left: 2px solid rgba(201,168,76,0.4);
  padding: 2px 8px;
  border-radius: 0 4px 4px 0;
  margin-top: 4px;
}

.cart-item-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 0;
  margin-top: 6px;
  border-top: 1px solid rgba(201,168,76,0.3);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cream);
}

.cart-total-row span:last-child { color: var(--gold); }

.cart-empty {
  text-align: center;
  padding: 36px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---- BUTTONS ---- */
.btn-primary {
  flex: 1;
  padding: 13px;
  background: var(--gold);
  color: var(--black);
  border: none;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}

.btn-primary:hover {
  background: var(--gold-light);
  box-shadow: 0 4px 20px rgba(201,168,76,0.35);
}

.btn-secondary {
  flex: 1;
  padding: 13px;
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--black-border);
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover { border-color: rgba(201,168,76,0.4); color: var(--gold); }

/* ---- SUCCESS MODAL ---- */
.success-body {
  text-align: center;
  padding: 32px 16px;
}

.success-icon { font-size: 3rem; margin-bottom: 14px; }

.success-order-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(201,168,76,0.3);
}

.success-msg { font-size: 0.9rem; color: var(--muted); line-height: 1.7; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--black-mid);
  border-top: 1px solid var(--black-border);
  color: var(--muted);
  text-align: center;
  padding: 36px 20px;
  font-size: 0.82rem;
  line-height: 2.2;
}

.footer-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 5px;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(201,168,76,0.3);
  margin-bottom: 6px;
}

.footer-divider {
  color: rgba(201,168,76,0.35);
  font-size: 0.7rem;
  margin-bottom: 10px;
}

.site-footer .powered {
  margin-top: 16px;
  font-size: 0.66rem;
  opacity: 0.25;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.site-footer .powered a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: opacity 0.2s;
}

.site-footer .powered a:hover {
  opacity: 0.7;
}

/* ---- HEADER LOGO ---- */
.header-logo {
  max-width: 200px;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 480px) {
  .site-header { min-height: 260px; }
  .header-content { padding: 36px 20px 44px; }
  .header-name { font-size: 2.2rem; }
  .container   { padding-left: 12px; padding-right: 12px; }
  .modal-body  { padding: 14px 16px; }
  .modal-foot  { padding: 12px 16px 28px; }
  .modal-head  { padding: 14px 16px 12px; }
  .cat-nav-btn { padding: 12px 14px; font-size: 0.75rem; }
}
