/* ============================================================
   QR Menu Web App — Refined Dark Theme
   ============================================================ */

/* ----------------------------------------------------------
   1. DESIGN TOKENS
   ---------------------------------------------------------- */
:root {
  --bg-base: #1c1c26;
  --bg-elevated: #262632;
  --bg-surface: rgba(255, 255, 255, 0.06);
  --bg-surface-hover: rgba(255, 255, 255, 0.09);
  --bg-item: rgba(255, 255, 255, 0.045);
  --bg-item-hover: rgba(255, 255, 255, 0.075);
  --bg-header-card: #2e2e3c;
  --bg-header-card-end: #262634;
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-medium: rgba(255, 255, 255, 0.14);
  --text-primary: rgba(255, 255, 255, 0.94);
  --text-secondary: rgba(255, 255, 255, 0.62);
  --text-muted: rgba(255, 255, 255, 0.42);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --shadow-card:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 6px 24px rgba(0, 0, 0, 0.22);
  --shadow-item:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 2px 10px rgba(0, 0, 0, 0.15);
  --shadow-header: 0 4px 20px rgba(0, 0, 0, 0.28);
  --content-max: 720px;
  --transition-fast: 0.18s ease;
  --transition-smooth: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----------------------------------------------------------
   2. GLOBAL RESET & BASE
   ---------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-base);
  background-image: none;
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.5;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#app {
  position: relative;
  max-width: var(--content-max);
  margin: 0 auto;
}

::-webkit-scrollbar {
  display: none;
}

html {
  background-color: var(--bg-base);
  scrollbar-width: none;
  scroll-behavior: smooth;
}

/* ----------------------------------------------------------
   3. SPINNER
   ---------------------------------------------------------- */
@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ----------------------------------------------------------
   4. VENUE HEADER
   ---------------------------------------------------------- */
#venue-header {
  --venue-accent: #ffffff;
  position: relative;
  z-index: 100;
  width: 100%;
  padding: max(12px, env(safe-area-inset-top, 0px)) 16px 12px;
  background: transparent;
}

.venue-header-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-medium);
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--bg-header-card) 92%, var(--venue-accent) 8%) 0%,
    var(--bg-header-card-end) 100%
  );
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.venue-header-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--venue-accent) 75%, white),
    transparent
  );
  opacity: 0.65;
  pointer-events: none;
}

#venue-profile-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 16px 14px;
}

#venue-avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--venue-accent) 28%, rgba(255, 255, 255, 0.1));
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 24px color-mix(in srgb, var(--venue-accent) 12%, transparent);
  background: var(--bg-surface);
}

#venue-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#venue-header-content {
  flex: 1;
  min-width: 0;
  text-align: left;
  pointer-events: none;
}

#venue-name {
  font-size: var(--fs-title, 22px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#venue-subtitle {
  font-size: var(--fs-subtitle, 12px);
  font-weight: 500;
  line-height: 1.35;
  margin-top: 5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#venue-header.no-subtitle #venue-subtitle {
  margin-top: 0;
}

#venue-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
  padding: 5px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ----------------------------------------------------------
   5. HEADER ACTION BUTTONS
   ---------------------------------------------------------- */
.header-action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  overflow: hidden;
  isolation: isolate;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    color var(--transition-fast);
}

.header-action-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.22), transparent 62%);
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}

.header-action-btn__icon {
  position: relative;
  z-index: 1;
  font-size: 20px;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.28));
}

#venue-info-btn {
  color: color-mix(in srgb, var(--venue-accent) 55%, #8ec8ff);
}

#venue-info-btn:hover {
  background: linear-gradient(
    160deg,
    color-mix(in srgb, #8ec8ff 24%, rgba(255, 255, 255, 0.1)) 0%,
    color-mix(in srgb, #8ec8ff 8%, rgba(255, 255, 255, 0.04)) 100%
  );
  border-color: color-mix(in srgb, #8ec8ff 35%, rgba(255, 255, 255, 0.14));
  box-shadow:
    0 4px 14px color-mix(in srgb, #8ec8ff 18%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

#language-btn {
  color: color-mix(in srgb, var(--venue-accent) 55%, #c9abff);
}

#language-btn:hover {
  background: linear-gradient(
    160deg,
    color-mix(in srgb, #c9abff 24%, rgba(255, 255, 255, 0.1)) 0%,
    color-mix(in srgb, #c9abff 8%, rgba(255, 255, 255, 0.04)) 100%
  );
  border-color: color-mix(in srgb, #c9abff 35%, rgba(255, 255, 255, 0.14));
  box-shadow:
    0 4px 14px color-mix(in srgb, #c9abff 18%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.header-action-btn:hover {
  transform: translateY(-1px);
}

.header-action-btn:active {
  transform: scale(0.94);
}

.header-action-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--venue-accent) 60%, transparent);
  outline-offset: 2px;
}

#language-btn.is-translating {
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--venue-accent) 22%, rgba(255, 255, 255, 0.1)) 0%,
    color-mix(in srgb, var(--venue-accent) 8%, rgba(255, 255, 255, 0.04)) 100%
  );
  border-color: color-mix(in srgb, var(--venue-accent) 35%, rgba(255, 255, 255, 0.14));
  animation: translatePulse 1.6s ease-in-out infinite;
}

#language-btn.is-translating .header-action-btn__icon {
  animation: spin 1.1s linear infinite;
}

@keyframes translatePulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--venue-accent) 20%, transparent); }
  50%      { box-shadow: 0 0 0 6px transparent; }
}

.header-action-btn .material-icons-outlined,
.header-action-btn__icon {
  font-size: 20px;
}

/* ----------------------------------------------------------
   6. MAIN CONTENT
   ---------------------------------------------------------- */
#main-content {
  position: relative;
  z-index: 1;
  padding-top: 4px;
}

#whatsapp-order-btn {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 140;
  box-sizing: border-box;
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  max-width: 56px;
  max-height: 56px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 10px 22px rgba(37, 211, 102, 0.35);
  overflow: hidden;
}

#whatsapp-order-btn a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #fff;
  text-decoration: none;
  line-height: 0;
}

#whatsapp-order-btn svg {
  display: block;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
}

#whatsapp-order-btn:hover {
  box-shadow: 0 14px 26px rgba(37, 211, 102, 0.42);
}

@media (max-width: 600px) {
  #whatsapp-order-btn {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    max-width: 52px;
    max-height: 52px;
  }

  #whatsapp-order-btn svg {
    width: 26px;
    height: 26px;
  }
}

/* ----------------------------------------------------------
   7. MENU SEARCH
   ---------------------------------------------------------- */
#menu-search-wrap {
  margin: 0 16px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

#menu-search-wrap:focus-within {
  border-color: color-mix(in srgb, var(--venue-accent) 35%, rgba(255, 255, 255, 0.2));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--venue-accent) 15%, transparent);
  background: rgba(0, 0, 0, 0.24);
}

#menu-search-wrap .material-icons-outlined {
  font-size: 20px;
  color: var(--text-secondary);
}

#menu-search-input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
}

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

#menu-search-input::-webkit-search-cancel-button {
  filter: invert(1) opacity(0.65);
  cursor: pointer;
}

/* ----------------------------------------------------------
   8. CATEGORY FILTER
   ---------------------------------------------------------- */
#category-filter {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

#category-filter::before,
#category-filter::after {
  content: '';
  position: absolute;
  top: 12px;
  bottom: 16px;
  width: 20px;
  z-index: 2;
  pointer-events: none;
}

#category-filter::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-header-card), transparent);
}

#category-filter::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-header-card), transparent);
}

@media (min-width: 601px) {
  #venue-header {
    padding-left: 24px;
    padding-right: 24px;
  }

  #venue-profile-row {
    padding-left: 20px;
    padding-right: 20px;
  }

  #category-filter {
    padding-left: 20px;
    padding-right: 20px;
  }

  #menu-search-wrap {
    margin-left: 20px;
    margin-right: 20px;
  }
}

#category-filter-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  height: 100%;
  align-items: stretch;
  scrollbar-width: none;
  padding: 2px 4px;
  scroll-padding-inline: 4px;
}

#category-filter-list::-webkit-scrollbar {
  display: none;
}

.category-item {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  font-size: var(--fs-categories, 13px);
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition-smooth);
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.category-item:hover:not(.selected) {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.18);
}

.category-item.selected {
  border-width: 1px;
  font-weight: 600;
  border-color: color-mix(in srgb, var(--cat-color) 55%, transparent);
  background: color-mix(in srgb, var(--cat-color) 16%, rgba(255, 255, 255, 0.04));
  color: var(--cat-color);
  box-shadow:
    0 2px 12px color-mix(in srgb, var(--cat-color) 18%, transparent),
    0 0 0 1px color-mix(in srgb, var(--cat-color) 8%, transparent) inset;
}

.category-item:active {
  transform: scale(0.97);
}

/* ----------------------------------------------------------
  9. CAMPAIGN SLIDER
   ---------------------------------------------------------- */
#campaign-slider {
  margin: 4px 0 20px;
  padding: 0 16px;
  --track-inner-space: 24px;
  --card-width: calc(100% - (var(--track-inner-space) * 2));
  --card-max: 400px;
}

#campaign-slider.single-campaign #campaign-track {
  padding: 0;
}

#campaign-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

#campaign-track::-webkit-scrollbar {
  display: none;
}

.campaign-card {
  width: var(--card-width);
  max-width: var(--card-max);
  height: 180px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  scroll-snap-align: center;
  cursor: default;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.single-campaign .campaign-card {
  width: 100%;
  max-width: unset;
}

.campaign-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.6);
  transition: transform 0.4s ease;
}

.campaign-card:hover .campaign-card-bg {
  transform: scale(1.03);
}

.campaign-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(0, 0, 0, 0.85) 100%
  );
}

.campaign-card-content {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
}

.campaign-card-title {
  color: white;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.campaign-card-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  line-height: 1.35;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ----------------------------------------------------------
   9. CATEGORY GRID (Theme 0)
   ---------------------------------------------------------- */
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 0 16px;
}

.menu-empty-state {
  margin: 10px 16px 0;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-medium);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 13px;
  text-align: center;
}

.category-card {
  padding: 18px 14px 14px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
  box-shadow: var(--shadow-card);
  position: relative;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--cat-color),
    transparent
  );
  opacity: 0.7;
}

.category-card-title {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: var(--fs-category-name, 22px);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--cat-color);
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid color-mix(in srgb, var(--cat-color) 18%, var(--border-subtle));
}

.menu-item-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.menu-item {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-item);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-item);
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.category-card .menu-item:hover {
  background: var(--bg-item-hover);
  border-color: color-mix(in srgb, var(--cat-color) 24%, var(--border-medium));
  box-shadow:
    var(--shadow-item),
    0 0 0 1px color-mix(in srgb, var(--cat-color) 8%, transparent) inset;
}

.menu-item:active {
  transform: scale(0.99);
}

.menu-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.menu-item-name {
  color: var(--text-primary);
  font-size: var(--fs-item-title, 15px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  flex: 1;
  min-width: 0;
}

.menu-item-size {
  color: var(--text-secondary);
  font-size: var(--fs-item-description, 12px);
  font-weight: 400;
  margin-top: 6px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.menu-item-price {
  color: color-mix(in srgb, var(--cat-color, #ffffff) 88%, white);
  font-size: var(--fs-item-price, 14px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: -0.02em;
  padding: 5px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cat-color, #ffffff) 14%, rgba(255, 255, 255, 0.06));
  border: 1px solid color-mix(in srgb, var(--cat-color, #ffffff) 22%, transparent);
}

/* Legacy support for menu-item-info */
.menu-item-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

/* ----------------------------------------------------------
   10. ALLERGEN ICONS
   ---------------------------------------------------------- */
.allergen-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.allergen-icon {
  width: 18px;
  height: 18px;
  cursor: pointer;
  padding: 2px;
  filter: brightness(0) invert(0.65);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  border-radius: 4px;
}

.allergen-icon:hover {
  opacity: 0.9;
  transform: scale(1.1);
}

/* ----------------------------------------------------------
   11. IMAGE CATEGORY LIST (Theme 1)
   ---------------------------------------------------------- */
.image-category-list {
  padding: 0 16px;
}

.image-category-section {
  margin-bottom: 28px;
}

.image-category-title {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: var(--fs-category-name, 22px);
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 8px 0 14px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 4px;
}

.image-menu-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.image-menu-item {
  display: flex;
  align-items: flex-start;
  padding: 12px;
  gap: 14px;
  border-radius: var(--radius-md);
  background: var(--bg-item);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-item);
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

.image-category-section .image-menu-item:hover {
  background: var(--bg-item-hover);
  border-color: color-mix(in srgb, var(--cat-color) 24%, var(--border-medium));
}

.image-menu-item:active {
  transform: scale(0.99);
}

.image-menu-item-thumb {
  width: 96px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.image-menu-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.image-menu-item-thumb img:hover {
  transform: scale(1.05);
}

.menu-item-body {
  flex: 1;
  min-width: 0;
}

.placeholder-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--text-muted);
}

.placeholder-icon .material-icons-outlined {
  font-size: 26px;
}

.image-item-divider {
  display: none;
}

/* ----------------------------------------------------------
   12. MODAL OVERLAY
   ---------------------------------------------------------- */
#modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 16, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

#modal-overlay.visible {
  opacity: 1;
}

#modal-content {
  width: 100%;
  max-width: 440px;
  display: flex;
  justify-content: center;
  pointer-events: none;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

#modal-overlay.visible #modal-content {
  transform: translateY(0) scale(1);
}

#modal-content > * {
  pointer-events: auto;
  width: 100%;
}

#modal-content:has(.image-lightbox) {
  max-width: none;
}

#modal-content .image-lightbox {
  width: auto;
}

body.modal-open {
  overflow: hidden;
}

body.is-translating #main-content {
  opacity: 0.97;
  transition: opacity 0.3s ease;
}

/* ----------------------------------------------------------
   13. TRANSLATION TOAST
   ---------------------------------------------------------- */
#translation-toast {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(20, 20, 24, 0.92);
  border: 1px solid var(--border-medium);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#translation-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.translation-toast-icon {
  font-size: 18px;
  color: var(--text-secondary);
  animation: spin 1.2s linear infinite;
}

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

/* ----------------------------------------------------------
   14. SHARED DIALOG STYLES
   ---------------------------------------------------------- */
.venue-info-dialog,
.language-dialog {
  width: 100%;
  max-width: 100%;
  max-height: 82vh;
  border-radius: var(--radius-xl);
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--bg-header-card) 94%, white 6%) 0%,
    var(--bg-header-card-end) 100%
  );
  border: 1px solid var(--border-medium);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.venue-info-dialog::before,
.language-dialog::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  opacity: 0.55;
  pointer-events: none;
}

.dialog-header {
  padding: 20px 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-shrink: 0;
}

.dialog-header-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.dialog-header-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.dialog-header-icon .material-icons-outlined {
  font-size: 22px;
}

.dialog-header-icon--info {
  color: #8ec8ff;
  background: linear-gradient(160deg, rgba(142, 200, 255, 0.22), rgba(142, 200, 255, 0.08));
  border-color: rgba(142, 200, 255, 0.22);
}

.dialog-header-icon--language {
  color: #c9abff;
  background: linear-gradient(160deg, rgba(201, 171, 255, 0.22), rgba(201, 171, 255, 0.08));
  border-color: rgba(201, 171, 255, 0.22);
}

.dialog-header-text {
  min-width: 0;
  flex: 1;
}

.dialog-title {
  color: var(--text-primary);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.dialog-subtitle {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dialog-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

.dialog-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text-primary);
}

.dialog-close-btn:active {
  transform: scale(0.94);
}

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

/* ----------------------------------------------------------
   14b. VENUE INFO DIALOG
   ---------------------------------------------------------- */
.venue-info-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.info-item-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-item {
  padding: 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-item);
  box-shadow: var(--shadow-item);
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.info-item.clickable {
  cursor: pointer;
}

.info-item.clickable:hover {
  background: var(--bg-item-hover);
  border-color: rgba(142, 200, 255, 0.22);
  box-shadow:
    var(--shadow-item),
    0 0 0 1px rgba(142, 200, 255, 0.08) inset;
  transform: translateY(-1px);
}

.info-item.clickable:active {
  transform: scale(0.99);
}

.info-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.info-item-icon .material-icons-outlined {
  font-size: 19px;
}

.info-item-icon--location {
  color: #8ec8ff;
  background: linear-gradient(160deg, rgba(142, 200, 255, 0.18), rgba(142, 200, 255, 0.06));
}

.info-item-icon--description {
  color: #b8c0cc;
  background: linear-gradient(160deg, rgba(184, 192, 204, 0.16), rgba(184, 192, 204, 0.05));
}

.info-item-icon--phone {
  color: #7ddea8;
  background: linear-gradient(160deg, rgba(125, 222, 168, 0.18), rgba(125, 222, 168, 0.06));
}

.info-item-icon--website {
  color: #c9abff;
  background: linear-gradient(160deg, rgba(201, 171, 255, 0.18), rgba(201, 171, 255, 0.06));
}

.info-item-icon--calendar {
  color: #ffb86b;
  background: linear-gradient(160deg, rgba(255, 184, 107, 0.18), rgba(255, 184, 107, 0.06));
}

.info-item-icon--hours {
  color: #8ed4ff;
  background: linear-gradient(160deg, rgba(142, 212, 255, 0.18), rgba(142, 212, 255, 0.06));
}

.info-item-body {
  flex: 1;
  min-width: 0;
}

.info-text {
  color: var(--text-secondary);
  font-size: 14px;
  letter-spacing: 0.01em;
  line-height: 1.5;
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.info-item.clickable .info-text {
  color: var(--text-primary);
  font-weight: 500;
}

.info-chevron {
  color: rgba(142, 200, 255, 0.85);
  font-size: 20px;
  flex-shrink: 0;
  opacity: 0.9;
}

.social-media-section {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.social-media-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.social-media-header-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f0b27a;
  background: linear-gradient(160deg, rgba(240, 178, 122, 0.2), rgba(240, 178, 122, 0.07));
  border: 1px solid rgba(240, 178, 122, 0.18);
}

.social-media-header-icon .material-icons-outlined {
  font-size: 18px;
}

.social-media-label {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.social-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 10px;
}

.social-media-btn {
  width: 100%;
  aspect-ratio: 1;
  min-height: 52px;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
  border: 1px solid color-mix(in srgb, var(--sm-color) 45%, transparent);
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--sm-color) 24%, rgba(255, 255, 255, 0.05)) 0%,
    color-mix(in srgb, var(--sm-color) 8%, rgba(255, 255, 255, 0.02)) 100%
  );
  box-shadow:
    0 2px 10px color-mix(in srgb, var(--sm-color) 14%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.social-media-btn:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--sm-color) 60%, transparent);
  box-shadow:
    0 8px 20px color-mix(in srgb, var(--sm-color) 22%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.social-media-btn:active {
  transform: scale(0.96);
}

.social-media-btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.social-media-fallback-icon {
  color: white;
  font-size: 24px;
}

.branding-footer {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: 12px;
}

.branding-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.branding-footer a:hover {
  color: var(--text-primary);
}

/* ----------------------------------------------------------
   15. LANGUAGE DIALOG
   ---------------------------------------------------------- */
.language-dialog-body {
  padding-top: 14px;
  padding-bottom: 18px;
}

.language-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.language-item {
  width: 100%;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-item);
  box-shadow: var(--shadow-item);
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  text-align: left;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.language-item:hover {
  background: var(--bg-item-hover);
  border-color: var(--border-medium);
  transform: translateY(-1px);
}

.language-item:active {
  transform: scale(0.99);
}

.language-item.selected {
  border-color: color-mix(in srgb, #c9abff 40%, var(--border-medium));
  background: linear-gradient(
    160deg,
    color-mix(in srgb, #c9abff 16%, var(--bg-item)) 0%,
    color-mix(in srgb, #c9abff 6%, var(--bg-item)) 100%
  );
  box-shadow:
    var(--shadow-item),
    0 0 0 1px color-mix(in srgb, #c9abff 10%, transparent) inset;
}

.language-code {
  width: 42px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #c9abff;
  background: rgba(201, 171, 255, 0.12);
  border: 1px solid rgba(201, 171, 255, 0.18);
}

.language-item.selected .language-code {
  color: white;
  background: linear-gradient(160deg, rgba(201, 171, 255, 0.45), rgba(201, 171, 255, 0.22));
  border-color: rgba(201, 171, 255, 0.35);
}

.language-name {
  flex: 1;
  min-width: 0;
  font-weight: 500;
  line-height: 1.35;
}

.language-item.selected .language-name {
  font-weight: 600;
}

.language-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.8);
  transition:
    opacity var(--transition-fast),
    transform var(--transition-smooth);
  background: linear-gradient(160deg, #7ddea8, #4caf73);
  color: white;
  box-shadow: 0 2px 8px rgba(76, 175, 115, 0.35);
}

.language-check.is-visible {
  opacity: 1;
  transform: scale(1);
}

.language-check .material-icons-outlined {
  font-size: 16px;
}

/* ----------------------------------------------------------
   16. ALLERGEN DIALOG
   ---------------------------------------------------------- */
.allergen-dialog {
  width: 360px;
  max-width: 100%;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.allergen-dialog .dialog-header {
  padding: 20px 24px;
}

.allergen-dialog .dialog-body {
  padding: 0 24px 12px;
}

.allergen-section-title {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  margin-top: 8px;
}

.allergen-dialog-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.allergen-dialog-icon {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(0.65);
}

.allergen-dialog-item span {
  color: var(--text-primary);
  font-size: 14px;
}

.dialog-footer {
  padding: 12px 24px 16px;
  display: flex;
  justify-content: flex-end;
}

.dialog-action-btn {
  background: transparent;
  border: none;
  color: #64B5F6;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 16px;
  font-family: inherit;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), opacity var(--transition-fast);
}

.dialog-action-btn:hover {
  background: rgba(100, 181, 246, 0.1);
}

/* ----------------------------------------------------------
   17. IMAGE LIGHTBOX
   ---------------------------------------------------------- */
.image-lightbox {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 90vh;
}

.image-lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-medium);
  color: white;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
  backdrop-filter: blur(8px);
}

.image-lightbox-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

.image-lightbox-close .material-icons-outlined {
  font-size: 24px;
}

.image-lightbox-img {
  display: block;
  max-width: 92vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

/* ----------------------------------------------------------
   18. TEMPLATE VIEW
   ---------------------------------------------------------- */
#template-view {
  background: var(--bg-base);
  min-height: 100vh;
}

#template-image {
  width: 100%;
  display: block;
}

/* ----------------------------------------------------------
   19. BOTTOM SPACER
   ---------------------------------------------------------- */
.bottom-spacer {
  height: max(80px, env(safe-area-inset-bottom, 0px));
}

/* ----------------------------------------------------------
   20. TEXT CLAMP UTILITIES
   ---------------------------------------------------------- */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.line-clamp-4 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ----------------------------------------------------------
   21. PROFILE APP (VCard / CV)
   ---------------------------------------------------------- */
.profile-shell {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 24px 16px 40px;
  transition: background 0.3s ease, color 0.3s ease;
}

.profile-shell.profile-theme--dark {
  background: linear-gradient(180deg, #12141a 0%, #1b1e28 100%);
  color: #f5f7fb;
}

.profile-shell.profile-theme--light {
  background: linear-gradient(180deg, #f4f7fb 0%, #eaf1f8 100%);
  color: #1a2433;
}

.profile-page {
  width: min(100%, 980px);
}

.profile-type {
  width: 100%;
}

.profile-hero-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px 22px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03));
  box-shadow: 0 18px 40px rgba(12, 18, 32, 0.28);
}

.profile-theme--dark .profile-hero-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
}

.profile-theme--light .profile-hero-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(230,235,241,0.8));
  border-color: rgba(18, 28, 44, 0.08);
}

.profile-avatar-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 28px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.08);
}

.profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-avatar--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  font-weight: 700;
  background: linear-gradient(135deg, #5aa3ff, #8b6dff);
  color: white;
}

.profile-identity {
  min-width: 0;
  flex: 1;
}

.profile-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.75;
}

.profile-identity h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.profile-identity h2 {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 500;
  opacity: 0.88;
}

.profile-company {
  margin-top: 12px;
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  font-size: 13px;
  font-weight: 600;
}

.profile-theme--light .profile-company {
  background: rgba(91, 115, 150, 0.08);
}

.profile-section {
  margin-top: 22px;
  padding: 22px 20px;
  border-radius: 22px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}

.profile-theme--light .profile-section {
  background: rgba(255,255,255,0.82);
  border-color: rgba(17, 24, 39, 0.06);
}

.section-title {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 12px;
  font-weight: 700;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-list a,
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.5;
  word-break: break-word;
}

.contact-list .material-icons-outlined {
  font-size: 18px;
  opacity: 0.8;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: inherit;
  font-weight: 600;
}

.profile-theme--light .profile-link {
  background: rgba(91, 115, 150, 0.06);
  border-color: rgba(17, 24, 39, 0.08);
}

.profile-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 22px;
  margin-top: 22px;
}

.profile-main-column,
.profile-side-column {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.summary-text {
  margin: 0;
  line-height: 1.7;
  white-space: pre-line;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 14px;
  align-items: flex-start;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  margin-top: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, #7fc8ff, #8b6dff);
  box-shadow: 0 0 0 4px rgba(127, 200, 255, 0.14);
}

.timeline-content {
  min-width: 0;
}

.timeline-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.timeline-header h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.timeline-header span,
.timeline-subtitle {
  font-size: 12px;
  opacity: 0.7;
}

.timeline-content p {
  margin: 8px 0 0;
  line-height: 1.7;
  white-space: pre-line;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(127, 200, 255, 0.13);
  border: 1px solid rgba(127, 200, 255, 0.2);
}

.profile-theme--light .chip {
  background: rgba(91, 115, 150, 0.09);
  border-color: rgba(91, 115, 150, 0.12);
}

.empty-state {
  opacity: 0.7;
}

@media (max-width: 760px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-hero-card {
    flex-direction: column;
    text-align: center;
  }

  .profile-company {
    justify-content: center;
  }
}

/* ----------------------------------------------------------
   22. RESPONSIVE — MOBILE (max-width: 600px)
   ---------------------------------------------------------- */
@media (max-width: 600px) {
  #venue-header {
    padding: max(10px, env(safe-area-inset-top, 0px)) 16px 10px;
  }

  #venue-profile-row {
    gap: 12px;
    padding: 14px 14px 12px;
  }

  .venue-header-card::before {
    left: 14px;
    right: 14px;
  }

  #venue-avatar {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
  }

  #venue-name {
    font-size: var(--fs-title, 19px);
  }

  #venue-subtitle {
    font-size: var(--fs-subtitle, 11px);
    margin-top: 4px;
  }

  #venue-header-actions {
    padding: 4px;
    gap: 6px;
    border-radius: 14px;
  }

  .header-action-btn {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .header-action-btn .material-icons-outlined,
  .header-action-btn__icon {
    font-size: 18px;
  }

  #category-filter {
    min-height: 40px;
    padding: 10px 14px 14px;
  }

  #menu-search-wrap {
    margin: 0 14px;
    padding: 9px 11px;
    border-radius: 12px;
  }

  #menu-search-wrap .material-icons-outlined {
    font-size: 18px;
  }

  #menu-search-input {
    font-size: 13px;
  }

  #category-filter::before,
  #category-filter::after {
    top: 10px;
    bottom: 14px;
  }

  .category-item {
    padding: 8px 14px;
    font-size: var(--fs-categories, 12px);
  }

  #campaign-slider {
    padding: 0 16px;
    --track-inner-space: 20px;
  }

  .campaign-card {
    height: 150px;
  }

  .category-grid {
    gap: 14px;
    padding: 0 16px;
  }

  .category-card {
    padding: 16px 14px 14px;
    border-radius: var(--radius-lg);
  }

  .category-card::before {
    left: 14px;
    right: 14px;
  }

  .category-card-title {
    font-size: var(--fs-category-name, 19px);
    padding-bottom: 12px;
  }

  .menu-item {
    padding: 12px 14px;
  }

  .menu-item-name {
    font-size: var(--fs-item-title, 14px);
  }

  .menu-item-size {
    font-size: var(--fs-item-description, 11px);
    margin-top: 4px;
  }

  .menu-item-price {
    font-size: var(--fs-item-price, 13px);
    padding: 4px 9px;
  }

  .allergen-icons {
    margin-top: 6px;
  }

  .allergen-icon {
    width: 16px;
    height: 16px;
  }

  .image-category-list {
    padding: 0 16px;
  }

  .image-category-section {
    margin-bottom: 22px;
  }

  .image-category-title {
    font-size: var(--fs-category-name, 19px);
    padding: 6px 0 12px;
  }

  .image-menu-item {
    padding: 10px;
    gap: 12px;
  }

  .image-menu-item-thumb {
    width: 80px;
    height: 64px;
  }

  .venue-info-dialog {
    width: 100%;
  }
}

/* ----------------------------------------------------------
   22. DESKTOP ENHANCEMENTS
   ---------------------------------------------------------- */
@media (min-width: 601px) {
  #campaign-slider {
    padding: 0 24px;
  }

  .category-grid {
    padding: 0 24px;
  }

  .image-category-list {
    padding: 0 24px;
  }
}
