/* ==========================================================================
   HANBURG QR MENU — Logo-Colored Frames, Splash, Channel Gate & UI Craft
   ========================================================================== */

/* ==========================================================================
   1. SMOOTH LOGO WELCOME SPLASH (~1.1s Balanced Reveal)
   ========================================================================== */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background:
    radial-gradient(circle at 50% 44%, rgba(240, 106, 0, 0.24), transparent 52%),
    radial-gradient(circle at 50% 44%, rgba(255, 184, 0, 0.14), transparent 36%),
    #0A0908;
  transition: opacity 380ms var(--ease-out), transform 380ms var(--ease-out), visibility 0s linear 380ms;
}

.splash-screen.is-leaving {
  opacity: 0;
  transform: scale(1.03);
  visibility: hidden;
  pointer-events: none;
}

.splash-screen[hidden] {
  display: none !important;
}

.splash-logo-wrap {
  position: relative;
  width: clamp(108px, 24vw, 138px);
  height: clamp(108px, 24vw, 138px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: splashLogoIn 580ms var(--ease-spring) both;
}

.splash-logo-wrap::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 184, 0, 0.65);
  animation: splashPulseRing 950ms var(--ease-out) 150ms both;
}

.splash-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--brand-gold);
  box-shadow: 0 0 0 3px #0A0908, 0 0 42px rgba(240, 106, 0, 0.58);
}

.splash-text {
  text-align: center;
  animation: splashTextIn 480ms var(--ease-out) 180ms both;
}

.splash-brand {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #FFFFFF;
  line-height: 1.05;
}

.splash-slogan {
  margin-top: 4px;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-gold);
}

.splash-bar {
  width: 132px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: rgba(255, 184, 0, 0.18);
  overflow: hidden;
}

.splash-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: var(--radius-pill);
  background: var(--accent-gradient);
  animation: splashSweep 950ms var(--ease-out) 80ms forwards;
}

@keyframes splashLogoIn {
  from { opacity: 0; transform: scale(0.76) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes splashPulseRing {
  from { opacity: 0.85; transform: scale(0.92); }
  to { opacity: 0; transform: scale(1.36); }
}

@keyframes splashTextIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes splashSweep {
  from { width: 0%; }
  to { width: 100%; }
}

/* ==========================================================================
   2. CHANNEL SELECTION GATE (Restoran / Gel-Al vs Paket Servis)
   ========================================================================== */
.channel-gate {
  position: fixed;
  inset: 0;
  z-index: 220;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 36px);
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 184, 0, 0.14), transparent 44%),
    radial-gradient(circle at 80% 90%, rgba(240, 106, 0, 0.16), transparent 46%),
    #0B0908;
  transition: opacity 280ms var(--ease-out), visibility 0s linear 280ms;
}

.channel-gate.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.channel-gate[hidden] {
  display: none !important;
}

.channel-gate-lang {
  position: fixed;
  top: calc(14px + var(--safe-top));
  right: 16px;
}

.channel-gate-inner {
  width: min(100%, 660px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.gate-brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.gate-logo {
  width: clamp(82px, 18vw, 104px);
  height: clamp(82px, 18vw, 104px);
  border-radius: 50%;
  border: 3px solid var(--brand-gold);
  box-shadow: 0 0 0 3px #0A0908, 0 0 30px rgba(240, 106, 0, 0.45);
}

.gate-brand-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.5vw, 2.05rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
}

.gate-slogan {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-gold);
}

.gate-heading {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3vw, 1.42rem);
  font-weight: 800;
  color: var(--text-primary);
}

.gate-sub {
  margin: -10px 0 0;
  font-size: 0.86rem;
  color: var(--text-secondary);
  max-width: 44ch;
}

.channel-options-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 520px) {
  .channel-options-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.channel-option-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: clamp(18px, 3.6vw, 28px) 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #1B1510 0%, #110E0B 100%);
  border: 2px solid var(--frame-ring);
  box-shadow: inset 0 0 0 1px rgba(10, 9, 8, 0.6), var(--shadow-card);
  color: var(--text-primary);
  transition: transform var(--dur-fast) var(--ease-spring),
              border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}

.channel-option-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-gold);
  box-shadow: var(--frame-glow);
}

.channel-option-card.is-delivery:hover {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 1px var(--brand-orange), 0 14px 34px -10px rgba(240, 106, 0, 0.5);
}

.channel-option-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: var(--accent-soft);
  border: 1.5px solid var(--brand-gold);
}

.channel-option-card.is-delivery .channel-option-icon {
  background: var(--accent-ember-soft);
  border-color: var(--brand-orange);
}

.channel-option-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 800;
}

.channel-option-desc {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.channel-option-cta {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--accent-gradient);
  color: var(--brand-black);
  font-size: 0.8rem;
  font-weight: 800;
}

/* ==========================================================================
   3. BRAND EMBLEM, CHANNEL SWITCH & TOPBAR ACTIONS
   ========================================================================== */
.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  background: #0A0908;
  border: 2px solid var(--brand-gold);
  box-shadow: 0 0 0 2px #0A0908, 0 0 14px rgba(240, 106, 0, 0.45);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: var(--text-primary);
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--accent-primary);
  font-weight: 700;
  margin-top: 2px;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Channel Switch Segmented Control */
.channel-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-elevated);
  border: 1.5px solid var(--frame-ring);
  gap: 2px;
}

.channel-switch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all var(--dur-fast);
}

.channel-switch-btn.is-active {
  background: var(--accent-gradient);
  color: var(--brand-black);
  box-shadow: 0 2px 10px rgba(240, 106, 0, 0.35);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 800;
  transition: background var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
}

.icon-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--brand-gold);
  color: var(--accent-primary);
}

.icon-btn:active {
  transform: scale(0.95);
}

/* ==========================================================================
   4. SIDEBAR (Desktop & Tablet Landscape — Zero Slogan Overflow)
   ========================================================================== */
.sidebar-brand-block {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  margin-bottom: 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--bg-surface-elevated) 0%, var(--bg-surface) 100%);
  border: 2px solid var(--frame-ring);
  box-shadow: 0 0 0 1px rgba(10, 9, 8, 0.6), var(--shadow-sm);
}

.sidebar-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sidebar-brand-row .brand-link {
  flex: 1;
  min-width: 0;
  flex-shrink: 1;
}

.sidebar-brand-block .brand-mark {
  width: 46px;
  height: 46px;
}

.sidebar-brand-block .brand-name {
  font-size: 1.2rem;
}

.sidebar-brand-block .brand-subtitle {
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  white-space: normal;
  line-height: 1.2;
}

.sidebar-channel-switch {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.sidebar-channel-switch .channel-switch-btn {
  padding: 7px 6px;
  font-size: 0.72rem;
}

.sidebar-section-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-primary);
  padding: 0 10px;
  margin-bottom: 8px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.sidebar-cat-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 10px 11px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 700;
  text-align: left;
  transition: all var(--dur-fast) var(--ease-out);
}

.sidebar-cat-btn:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.sidebar-cat-btn.is-active {
  background: var(--accent-soft);
  color: var(--accent-primary);
  border-color: var(--brand-gold);
  box-shadow: inset 3px 0 0 var(--brand-orange);
}

.sidebar-cat-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sidebar-cat-icon {
  font-size: 1.02rem;
  line-height: 1;
}

.sidebar-cat-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.sidebar-cat-btn.is-active .sidebar-cat-count {
  background: var(--brand-gold);
  border-color: var(--brand-gold);
  color: var(--brand-black);
  font-weight: 800;
}

/* ==========================================================================
   5. HERO SIGNATURE SPOTLIGHT (Toggleable via Admin — OFF by default)
   ========================================================================== */
.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 3vw, 26px);
  padding: clamp(16px, 2.8vw, 24px);
  margin-bottom: 16px;
  background:
    radial-gradient(circle at 82% 50%, rgba(240, 106, 0, 0.24), transparent 55%),
    radial-gradient(circle at 12% 10%, rgba(255, 184, 0, 0.14), transparent 50%),
    linear-gradient(135deg, #1A140E 0%, #0C0A08 100%);
  border: 2px solid var(--brand-gold);
  box-shadow: 0 0 0 3px #0A0908, var(--frame-glow);
  cursor: pointer;
  color: #FFF9F0;
}

.hero-card[hidden] {
  display: none !important;
}

.hero-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: rgba(255, 184, 0, 0.18);
  border: 1.5px solid var(--brand-gold);
  color: var(--brand-gold-bright);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1.08;
  color: #FFFFFF;
}

.hero-desc {
  margin: 0;
  max-width: 44ch;
  font-size: var(--text-sm);
  color: rgba(255, 245, 232, 0.84);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: rgba(255, 245, 232, 0.8);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: var(--accent-gradient);
  color: var(--brand-black);
  font-weight: 800;
  font-size: 0.85rem;
}

.hero-media-frame {
  width: clamp(110px, 24%, 200px);
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2.5px solid var(--brand-gold);
  background: #1B140E;
}

.hero-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   6. STICKY SEARCH, VIEW SWITCHER, CATEGORY PILLS & FILTER CHIPS
   ========================================================================== */
.sticky-controls {
  position: sticky;
  top: var(--sticky-top);
  z-index: 30;
  margin: 0 calc(clamp(12px, 3vw, 24px) * -1) 16px;
  padding: 10px clamp(12px, 3vw, 24px) 12px;
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1.5px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-shell[data-posture="fold-dual"] .sticky-controls {
  top: -12px;
}

.app-shell[data-posture="fold-flex"] .sticky-controls {
  top: -6px;
}

.search-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--accent-primary);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 42px;
  padding: 0 38px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  outline: none;
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
}

.search-clear[hidden] {
  display: none;
}

/* Segmented List / Large Card View Toggle */
.view-toggle-btn {
  height: 42px;
  padding: 0 13px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-strong);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  transition: all var(--dur-fast);
}

.view-toggle-btn:hover {
  border-color: var(--brand-gold);
  color: var(--accent-primary);
  background: var(--accent-soft);
}

@media (max-width: 420px) {
  .view-toggle-label {
    display: none;
  }
  .view-toggle-btn {
    width: 42px;
    padding: 0;
    justify-content: center;
  }
}

.category-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}

.category-pills::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  scroll-snap-align: start;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all var(--dur-fast) var(--ease-out);
}

.cat-pill:hover {
  border-color: var(--brand-gold);
  color: var(--text-primary);
}

.cat-pill.is-active {
  background: var(--accent-gradient);
  border-color: var(--brand-gold);
  color: var(--brand-black);
  font-weight: 800;
  box-shadow: var(--shadow-glow);
}

.filter-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-chips::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1.5px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all var(--dur-fast);
}

.filter-chip:hover {
  border-color: var(--brand-gold);
  color: var(--text-primary);
}

.filter-chip.is-active {
  background: var(--accent-soft);
  border-color: var(--brand-gold);
  color: var(--accent-primary);
}

/* ==========================================================================
   7. MENU SECTIONS & LOGO-FRAMED DISH CARDS
   ========================================================================== */
.menu-section {
  margin-bottom: 28px;
  scroll-margin-top: 168px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-subtle);
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 68px;
  height: 2px;
  background: var(--accent-gradient);
}

.section-title-group {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.section-emoji {
  font-size: 1.25rem;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 600;
}

/* Branded Hanburg Black + Gold + Orange Frame */
.dish-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 2px solid var(--frame-ring);
  box-shadow: inset 0 0 0 1px rgba(10, 9, 8, 0.55), var(--shadow-card);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}

.dish-card:hover {
  border-color: var(--brand-gold);
  transform: translateY(-2px);
  box-shadow: var(--frame-glow);
}

.dish-card.is-selected {
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 2px var(--brand-orange), var(--frame-glow);
}

.dish-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #1B140E;
  overflow: hidden;
  border-bottom: 2px solid var(--frame-ring);
}

.dish-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s var(--ease-out);
}

.dish-card:hover .dish-media img {
  transform: scale(1.04);
}

.dish-badges-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  pointer-events: none;
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.69rem;
  font-weight: 800;
  border: 1.5px solid #0A0908;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}

.tag-badge.is-campaign { background: linear-gradient(135deg, #FF7A14, #FFB800); color: #0A0908; }
.tag-badge.is-chef { background: var(--brand-gold); color: var(--brand-black); }
.tag-badge.is-spicy { background: var(--brand-orange); color: #FFFFFF; }
.tag-badge.is-double { background: #0A0908; border-color: var(--brand-gold); color: var(--brand-gold-bright); }
.tag-badge.is-combo { background: linear-gradient(135deg, #FFD23F, #F06A00); color: #0A0908; }
.tag-badge.is-crispy { background: #FFFFFF; border-color: #0A0908; color: #0A0908; }

.dish-content {
  padding: 13px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 5px;
}

.dish-top-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.dish-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.24;
  color: var(--text-primary);
}

.dish-weight {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-primary);
  background: var(--accent-soft);
  padding: 2px 6px;
  border-radius: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.dish-desc {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.dish-bottom-line {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dish-price-group {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.dish-price {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.04rem;
  color: var(--accent-primary);
}

.dish-channel-tag {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--text-muted);
}

.quick-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 32px;
  min-width: 32px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-elevated);
  border: 1.5px solid var(--frame-ring);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  transition: all var(--dur-fast);
}

.quick-add-btn:hover,
.quick-add-btn.has-qty {
  background: var(--accent-gradient);
  border-color: var(--brand-gold);
  color: var(--brand-black);
}

/* DEFAULT COMPACT LIST VIEW CARD */
.menu-grid.is-compact-list .dish-card {
  flex-direction: row-reverse;
  align-items: center;
  padding: 11px 12px;
  gap: 12px;
}

.menu-grid.is-compact-list .dish-media {
  width: 88px;
  height: 88px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--frame-ring);
  flex-shrink: 0;
}

.menu-grid.is-compact-list .dish-badges-overlay {
  display: none;
}

.menu-grid.is-compact-list .dish-content {
  padding: 0;
}

.dish-inline-tags {
  display: none;
  flex-wrap: wrap;
  gap: 4px;
}

.menu-grid.is-compact-list .dish-inline-tags,
[data-posture="fold-cover"] .dish-inline-tags,
[data-posture="fold-flex"] .dish-inline-tags {
  display: flex;
}

@media (max-width: 365px) {
  .dish-inline-tags { display: flex; }
}

.mini-tag {
  font-size: 0.64rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent-primary);
}

.mini-tag.is-spicy,
.mini-tag.is-campaign {
  background: var(--accent-ember-soft);
  color: #FF8F38;
}

.empty-state {
  text-align: center;
  padding: 48px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 2px dashed var(--frame-ring);
}

.empty-state-icon { font-size: 2.4rem; margin-bottom: 10px; }
.empty-state h3 { margin: 0 0 6px; font-family: var(--font-display); }
.empty-state p { margin: 0 0 16px; color: var(--text-secondary); font-size: 0.88rem; }

/* ==========================================================================
   8. FOLDABLE HINGE & FLEX STAGE
   ========================================================================== */
.hinge-pill {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--brand-gold);
  font-weight: 800;
}

.hinge-divider-h {
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #0A0908, rgba(255, 184, 0, 0.22) 50%, #0A0908);
  border-top: 1.5px solid var(--brand-gold);
  border-bottom: 1.5px solid var(--brand-orange);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  color: var(--brand-gold);
  font-weight: 800;
  user-select: none;
}

.flex-stage {
  position: relative;
  overflow: hidden;
  background: #140F0B;
  color: #FFF9F0;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 14px;
  isolation: isolate;
}

.flex-stage-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  z-index: -2;
}

.flex-stage-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 9, 8, 0.72) 0%, rgba(10, 9, 8, 0.14) 38%, rgba(10, 9, 8, 0.94) 100%);
}

.flex-stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.flex-stage-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.flex-stage-brand img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--brand-gold);
}

.flex-stage-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.flex-stage-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 3.6vw, 1.5rem);
  font-weight: 800;
  line-height: 1.1;
}

.flex-stage-desc {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: rgba(255, 245, 232, 0.86);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.flex-stage-price {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.24rem;
  color: var(--brand-gold);
  white-space: nowrap;
}

/* ==========================================================================
   9. COMPANION PANE (Product Detail + Hidden-by-Default Tray)
   ========================================================================== */
.sheet-drag-handle {
  display: flex;
  justify-content: center;
  padding: 10px 0 4px;
}

.sheet-drag-handle span {
  width: 44px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--brand-gold);
}

.companion-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1.5px solid var(--border-subtle);
  background: var(--bg-surface);
  flex-shrink: 0;
}

.companion-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 800;
  transition: all var(--dur-fast);
}

.companion-tab[hidden] {
  display: none !important;
}

.companion-tab.is-active {
  background: var(--accent-soft);
  color: var(--accent-primary);
  border-color: var(--brand-gold);
}

.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--brand-gold);
  color: var(--brand-black);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
}

.companion-close,
.modal-close-btn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1.5px solid var(--border-strong);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
}

.companion-close:hover,
.modal-close-btn:hover {
  border-color: var(--brand-gold);
  background: var(--accent-soft);
  color: var(--accent-primary);
}

.detail-media-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  margin-bottom: 14px;
  background: #1B140E;
  border: 2px solid var(--brand-gold);
  box-shadow: 0 0 0 2px #0A0908, 0 10px 26px rgba(240, 106, 0, 0.25);
}

.detail-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-photo-toggle {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  background: rgba(10, 9, 8, 0.88);
  border: 1.5px solid var(--brand-gold);
  color: var(--brand-gold-bright);
  font-size: 0.72rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.detail-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.26rem;
  font-weight: 800;
  line-height: 1.2;
}

.detail-price {
  font-family: var(--font-mono);
  font-size: 1.26rem;
  font-weight: 800;
  color: var(--accent-primary);
  white-space: nowrap;
}

.detail-desc {
  margin: 0 0 12px;
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.52;
}

/* Dual Channel Price Transparency Card */
.price-compare-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.price-box {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1.5px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.price-box.is-current {
  border-color: var(--brand-gold);
  background: var(--accent-soft);
}

.price-box-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-box.is-current .price-box-label {
  color: var(--brand-gold-bright);
}

.price-box-val {
  font-family: var(--font-mono);
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--text-primary);
}

.price-box.is-current .price-box-val {
  color: var(--brand-gold);
}

.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  font-size: 0.74rem;
  color: var(--text-secondary);
  font-weight: 700;
}

.detail-info-banner {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border-left: 3px solid var(--brand-orange);
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.45;
}

.detail-block {
  margin-bottom: 15px;
}

.detail-block-title {
  margin: 0 0 8px;
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1.5px solid var(--border-subtle);
  cursor: pointer;
}

.option-row.is-checked {
  border-color: var(--brand-gold);
  background: var(--accent-soft);
}

.option-left {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  font-weight: 700;
}

.option-left input {
  accent-color: var(--brand-gold);
  width: 16px;
  height: 16px;
  margin: 0;
}

.option-price {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.allergen-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.allergen-pill {
  padding: 4px 9px;
  border-radius: var(--radius-xs);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.note-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1.5px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 0.86rem;
  resize: vertical;
  min-height: 62px;
}

.detail-footer {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin: 16px -20px 0;
  padding: 14px 20px 16px;
  background: var(--bg-surface);
  border-top: 2px solid var(--frame-ring);
  box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-elevated);
  border: 1.5px solid var(--frame-ring);
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

.qty-val {
  min-width: 24px;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.9rem;
}

.primary-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  background: var(--accent-gradient);
  color: var(--brand-black);
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: var(--shadow-glow);
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-elevated);
  border: 1.5px solid var(--frame-ring);
  color: var(--text-primary);
  font-weight: 800;
  font-size: 0.85rem;
}

.secondary-btn:hover {
  border-color: var(--brand-gold);
  color: var(--accent-primary);
}

/* Tray Styles (Active when cartEnabled is toggled ON in Admin) */
.tray-empty { text-align: center; padding: 36px 16px; }
.tray-empty-logo { width: 74px; height: 74px; margin: 0 auto 12px; border-radius: 50%; border: 2.5px solid var(--brand-gold); }
.tray-item { display: flex; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--border-subtle); }
.tray-item-img { width: 60px; height: 60px; border-radius: var(--radius-sm); border: 1.5px solid var(--frame-ring); object-fit: cover; flex-shrink: 0; }
.tray-item-info { flex: 1; min-width: 0; }
.tray-item-title { margin: 0; font-weight: 800; font-size: 0.9rem; }
.tray-item-meta { font-size: 0.74rem; color: var(--text-muted); margin-top: 3px; }
.tray-item-note { font-size: 0.74rem; color: var(--accent-primary); margin-top: 2px; font-style: italic; }
.tray-item-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.tray-item-price { font-family: var(--font-mono); font-weight: 800; font-size: 0.92rem; color: var(--accent-primary); }
.tray-summary { margin-top: 16px; padding: 14px; border-radius: var(--radius-md); background: var(--bg-surface-elevated); border: 1.5px solid var(--frame-ring); display: flex; flex-direction: column; gap: 8px; }
.tray-row { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-secondary); }
.tray-row.is-total { padding-top: 8px; border-top: 1px solid var(--border-subtle); font-size: 1.04rem; font-weight: 800; color: var(--text-primary); }
.tray-row.is-total span:last-child { font-family: var(--font-mono); color: var(--accent-primary); }
.tray-actions { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.whatsapp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--radius-pill); background: #22A858; color: #FFFFFF; font-weight: 800; font-size: 0.88rem; }
.clear-tray-btn { align-self: center; margin-top: 4px; font-size: 0.78rem; color: var(--text-muted); text-decoration: underline; }

.floating-tray-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  background: var(--accent-gradient);
  border: 2px solid #0A0908;
  color: var(--brand-black);
  font-weight: 800;
  box-shadow: 0 0 0 2px var(--brand-gold), var(--shadow-float);
}

.floating-tray-left { display: flex; align-items: center; gap: 10px; }
.floating-tray-count { min-width: 26px; height: 26px; padding: 0 7px; border-radius: var(--radius-pill); background: #0A0908; color: var(--brand-gold); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 0.84rem; }
.floating-tray-total { font-family: var(--font-mono); font-size: 0.98rem; }

/* ==========================================================================
   10. FOOTER — GENEL BİLGİLER & ALERJEN UYARISI (No Wi-Fi / No QR)
   ========================================================================== */
.site-footer {
  margin-top: 32px;
  padding: 20px 18px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 2px solid var(--frame-ring);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.general-notes-box {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
}

.general-notes-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--brand-gold);
}

.general-notes-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.48;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.admin-subtle-link {
  opacity: 0.45;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  transition: opacity var(--dur-fast), color var(--dur-fast);
}

.admin-subtle-link:hover {
  opacity: 1;
  color: var(--brand-gold);
}

/* Modals & Toast */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--bg-scrim);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay[hidden] { display: none; }

.modal-card {
  width: min(100%, 480px);
  max-height: 90dvh;
  overflow-y: auto;
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  border: 2px solid var(--brand-gold);
  box-shadow: 0 0 0 3px #0A0908, var(--shadow-float);
  padding: 20px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.modal-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 800;
}

.waiter-slip {
  background: #FFFBF2;
  color: #0F0D0B;
  border-radius: var(--radius-md);
  padding: 18px;
  border: 2.5px solid #0F0D0B;
  box-shadow: inset 0 0 0 3px #FFB800;
}

.waiter-slip-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 2px solid #0F0D0B; }
.waiter-slip-brand { display: flex; align-items: center; gap: 10px; }
.waiter-slip-brand img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #FFB800; }
.waiter-table-big { font-family: var(--font-display); font-size: 1.4rem; font-weight: 900; line-height: 1; }
.waiter-line { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed rgba(15, 13, 11, 0.28); font-size: 0.96rem; }
.waiter-line-sub { font-size: 0.8rem; color: #5E4E42; }
.waiter-total { display: flex; justify-content: space-between; padding-top: 12px; margin-top: 6px; font-family: var(--font-mono); font-size: 1.2rem; font-weight: 900; }

.toast-region {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  right: 16px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: #0A0908;
  border: 1.5px solid var(--brand-gold);
  color: #FFF9F0;
  font-size: 0.84rem;
  font-weight: 800;
  box-shadow: var(--frame-glow);
}
