/**
 * VenueOS — Design Polish
 * Pure visual upgrades: card depth, transitions, component tweaks.
 * NO layout changes. NO structural changes. Loaded after styles.css.
 * All :root tokens and dinner-mode overrides live in css/styles.css.
 */

/* ══════════════════════════════════════════════════════
   Base card shadow (lunch + dinner)
   ══════════════════════════════════════════════════════ */
.item-card,
.wine-detail-card,
.cocktail-card {
  box-shadow: var(--shadow-sm);
  transition:
    transform       0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow      0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color    0.2s ease;
}

.item-card:hover,
.wine-detail-card:hover,
.cocktail-card:hover {
  box-shadow: var(--card-shadow-hover);
}

body.dinner-mode .item-card,
body.dinner-mode .wine-detail-card,
body.dinner-mode .cocktail-card {
  box-shadow: 0 2px 14px rgba(0,0,0,.4), 0 1px 4px rgba(0,0,0,.3);
}


/* ══════════════════════════════════════════════════════
   SECTION 5 — Splash screen: kept as original
   ══════════════════════════════════════════════════════ */
/* No splash changes — original splash preserved */


/* ══════════════════════════════════════════════════════
   SECTION 5b — Pop card: light in lunch, dark in dinner
   Crest blends: dark patch in light mode, full dark in dinner
   ══════════════════════════════════════════════════════ */

/* Light mode: pop card and crest area must stay light (no dark, no green) */
body:not(.dinner-mode) #item-modal .modal {
  background: var(--modal-card, #fdfaf6);
}
body:not(.dinner-mode) #item-modal .modal-body {
  background: var(--modal-card, #fdfaf6);
}
body:not(.dinner-mode) #item-modal .modal-header-eye {
  background: transparent;
}
body:not(.dinner-mode) #item-modal .modal-image-area::after {
  background: linear-gradient(to bottom, transparent, var(--modal-card, #fdfaf6));
}
body:not(.dinner-mode) #item-modal .modal-image-area.is-wine::after {
  display: none;
}

/* Light mode: crest on light background (no invert) */
body:not(.dinner-mode) #item-modal .modal-header-eye .modal-crest-img {
  filter: invert(1);
  opacity: 0.95;
}
body:not(.dinner-mode) #item-modal .modal-header-food-text {
  color: var(--green);
}

/* Dinner mode: full dark pop card, crest inverted to white */
body.dinner-mode #item-modal .modal {
  background: #0b0b0b;
  border-color: rgba(255,255,255,.08);
}
body.dinner-mode #item-modal .modal-body {
  background: #0b0b0b;
}
body.dinner-mode #item-modal .modal-image-area::after {
  background: linear-gradient(to bottom, transparent, #0b0b0b);
}
body.dinner-mode #item-modal .modal-image-area.is-wine::after {
  display: none;
}
body.dinner-mode #item-modal .modal-crest-img {
  filter: invert(1);
  opacity: 0.95;
}
body.dinner-mode #item-modal #modal-title {
  color: #f0ebe2;
}
body.dinner-mode #item-modal .modal-body,
body.dinner-mode #item-modal #modal-content {
  color: rgba(240,235,226,.82);
}
body.dinner-mode #item-modal #modal-category,
body.dinner-mode #item-modal .modal-header-eye {
  color: rgba(212,184,114,.85);
}
body.dinner-mode #item-modal .modal-header-food-text {
  color: rgba(212,184,114,.85);
}

/* Header icon fix - now white in all modes */
.crest-icon {
  filter: invert(1);
  width: 110px; /* Mobile size increased from 90px */
}

.lang-toggle {
  display: none !important;
}

@media (min-width: 769px) {
  .crest-icon {
    width: 170px; /* Desktop size increased from 140px */
  }
  .lang-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
}

/* Header Refinements for Mobile */
@media (max-width: 768px) {
  .header-controls {
    gap: 12px !important;
    margin-right: 4px;
    align-items: center;
  }

  .quiz-btn.quiz-btn--header-desktop {
    display: none !important;
  }

  .hero.hero-standards {
    min-height: 280px !important;
  }
}

@keyframes quiz-vibrate-interval {
  0%, 4%, 100% { transform: translate(0, 0); }
  0.8% { transform: translate(-1px, 1px); }
  1.6% { transform: translate(1px, -1px); }
  2.4% { transform: translate(-1px, -1px); }
  3.2% { transform: translate(1px, 1px); }
}

/* Crest: remove thin black line / edge artifact (borders, inline gap, rendering) */
.crest-icon,
.splash-crest,
.modal-crest-img {
  border: none !important;
  outline: none !important;
  display: block;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.splash-crest {
  width: 170px; /* Increased from 140px */
}

.modal-crest-img {
  width: 90px; /* Increased from 72px */
}
.crest-block img.crest-icon {
  line-height: 0;
}
body.dinner-mode #item-modal .allergen-pill {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
  color: rgba(240,235,226,.85);
}
body.dinner-mode #item-modal .item-card-sep,
body.dinner-mode #item-modal hr {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.1);
}
body.dinner-mode #item-modal .text-muted,
body.dinner-mode #item-modal .modal-desc {
  color: rgba(240,235,226,.6);
}


/* ══════════════════════════════════════════════════════
   SECTION 6 — Header: refined weight & blur (desktop only)
   ══════════════════════════════════════════════════════ */
.header {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Logo: slightly larger on desktop only — do not override mobile (styles.css uses 16px there) */
@media (min-width: 769px) {
  .logo-main {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.14em;
  }
}

/* Page/Tab transitions */
#food-content, #wine-content, #cocktails-content, #standards-content {
  animation: fadeSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeSlideUp {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Venue sub-label: tighter on desktop; mobile keeps styles.css smaller size */
@media (min-width: 769px) {
  .crest-venue {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.22em;
    opacity: 0.85;
  }
}


/* ══════════════════════════════════════════════════════
   SECTION 7 — Navigation: refined tabs + pills
   ══════════════════════════════════════════════════════ */

/* Main tabs: tighter tracking, cleaner active indicator */
.main-tab {
  font-size: 13px;
  letter-spacing: 0.16em;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.1s ease;
}

.main-tab:active {
  transform: scale(0.95);
}

.main-tab.active {
  font-weight: 700;
}

/* Active indicator: thinner with rounded caps */
.main-tab.active::after {
  height: 3px;
  border-radius: 3px;
  bottom: 2px;
  background: var(--gold);
}

/* Nav wrap: dinner mode — slightly visible bottom border */
body.dinner-mode .nav-wrap {
  border-bottom-color: rgba(255,255,255,.06);
}

/* Sub-pills: smoother transitions, richer active shadow */
.sub-pill {
  transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  font-size: 13px;
}

.sub-pill.active {
  box-shadow: 0 3px 14px rgba(26,74,61,.3), 0 1px 4px rgba(26,74,61,.15);
}

body.dinner-mode .sub-pill.active {
  box-shadow: 0 3px 14px rgba(212,184,114,.25), 0 1px 4px rgba(212,184,114,.12);
}


/* ══════════════════════════════════════════════════════
   SECTION 8 — Search bar: more defined
   ══════════════════════════════════════════════════════ */
.search-bar {
  box-shadow: var(--shadow-xs);
}

.search-bar:focus-within {
  border-color: var(--border-inactive-strong);
  box-shadow: 0 0 0 3px rgba(26,74,61,.1), var(--shadow-xs);
}

body.dinner-mode .search-bar:focus-within {
  box-shadow: 0 0 0 3px rgba(212,184,114,.15), 0 2px 10px rgba(0,0,0,.4);
}


/* ══════════════════════════════════════════════════════
   SECTION 9 — Modals: deeper, more polished
   ══════════════════════════════════════════════════════ */
.allergy-modal {
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,.28), 0 8px 24px rgba(0,0,0,.14);
}

body.dinner-mode .allergy-modal {
  box-shadow: 0 24px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(212,184,114,.1);
}

/* Allergy chips: smoother */
.allergy-chip {
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}


/* ══════════════════════════════════════════════════════
   SECTION 10 — Category labels: more editorial
   ══════════════════════════════════════════════════════ */
.category-label {
  letter-spacing: 0.13em;
  font-size: 11px;
}


/* ══════════════════════════════════════════════════════
   SECTION 11 — Tab content: smoother fade
   ══════════════════════════════════════════════════════ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ══════════════════════════════════════════════════════
   SECTION 12 — Lang toggle + mode toggle: polished
   ══════════════════════════════════════════════════════ */
.lang-toggle {
  border-radius: 10px;
  font-size: 11px;
  letter-spacing: 0.06em;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.mode-toggle {
  border-radius: 14px;
  transition: background 0.25s ease;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.12);
}

.mode-toggle::after {
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}


/* ══════════════════════════════════════════════════════
   SECTION 13 — Standards subnav: more polished
   ══════════════════════════════════════════════════════ */
.standards-subnav {
  border-radius: 14px;
  box-shadow: var(--shadow-xs);
}

.standards-subnav-pill {
  border-radius: 10px;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}



/* ══════════════════════════════════════════════════════
   SECTION 15 — Version badge: minimal
   ══════════════════════════════════════════════════════ */
#venue-os-version-badge {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  opacity: 0.65;
}


/* ══════════════════════════════════════════════════════
   SECTION 16 — Settings button + bottom sheet (mobile)
   ══════════════════════════════════════════════════════ */

/* Hide desktop controls on mobile, show settings btn */
@media (max-width: 768px) {
  .venue-os-logout-btn-desktop,
  .venue-os-analytics-link {
    display: none !important;
  }
  .settings-btn {
    display: flex;
  }
}

/* Hide settings btn on desktop, show inline controls */
@media (min-width: 769px) {
  .settings-btn {
    display: none !important;
  }
  .mode-toggle-desktop {
    display: flex !important;
  }
}

/* Settings gear button */
.settings-btn {
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255,255,255,.15);
  border-radius: 10px;
  font-size: 1.15rem;
  cursor: pointer;
  transition: background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.settings-btn:hover,
.settings-btn:active {
  background: rgba(255,255,255,.25);
}

/* Overlay */
.settings-sheet-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 8000;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.settings-sheet-overlay.open {
  display: block;
  opacity: 1;
}

/* Bottom sheet */
.settings-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 8001;
  background: var(--modal-card, #fdfaf6);
  border-radius: 20px 20px 0 0;
  padding: 12px 24px 36px;
  box-shadow: 0 -8px 40px rgba(0,0,0,.18);
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  max-width: 480px;
  margin: 0 auto;
}
body.dinner-mode .settings-sheet {
  background: var(--modal-card, #141414);
  box-shadow: 0 -8px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(212,184,114,.08);
}
.settings-sheet.open {
  transform: translateY(0);
}

/* Handle */
.settings-sheet-handle {
  width: 40px;
  height: 4px;
  background: rgba(0,0,0,.15);
  border-radius: 4px;
  margin: 0 auto 20px;
}
body.dinner-mode .settings-sheet-handle {
  background: rgba(255,255,255,.2);
}

/* Title */
.settings-sheet-title {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--modal-text, #1a1a1a);
  margin: 0 0 20px;
}

/* Rows */
.settings-sheet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--card-inner-border, rgba(0,0,0,.08));
}
.settings-sheet-row:last-child {
  border-bottom: none;
}
.settings-sheet-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--modal-text, #1a1a1a);
}

/* Action button */
.settings-sheet-action-btn {
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-inactive, rgba(26,74,61,.25));
  background: transparent;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent, #1a4a3d);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.settings-sheet-action-btn:hover {
  background: rgba(26,74,61,.08);
}
.settings-sheet-logout {
  color: #b0413e;
  border-color: rgba(176,65,62,.3);
}
.settings-sheet-logout:hover {
  background: rgba(176,65,62,.08);
}
body.dinner-mode .settings-sheet-action-btn {
  color: var(--accent, #d4b872);
  border-color: rgba(212,184,114,.3);
}
body.dinner-mode .settings-sheet-logout {
  color: #ff4d4d;
  border-color: rgba(255,179,168,.3);
}

/* Settings sheet language toggle button style */
#lang-toggle-sheet {
  background: var(--surface-2);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s;
}

#lang-toggle-sheet:active {
  transform: scale(0.95);
  background: var(--surface-3);
}

@media (min-width: 769px) {
  .settings-sheet,
  .settings-sheet-overlay {
    display: none !important;
  }
}

/* ══════════════════════════════════════════════════════
   SECTION — Quiz explanation feedback
   ══════════════════════════════════════════════════════ */
.quiz-explanation {
  min-height: 0;
  max-height: 0;
  overflow: hidden;
  margin: 0 16px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  font-weight: 500;
  transition: max-height 0.35s ease, padding 0.25s ease, opacity 0.25s ease;
  opacity: 0;
}
.quiz-explanation:not(:empty) {
  max-height: 160px;
  padding: 10px 14px;
  margin-bottom: 8px;
  opacity: 1;
}
.quiz-explanation--correct {
  background: rgba(74, 222, 128, 0.12);
  border-left: 3px solid #4ade80;
  color: var(--text-main, #1a2a1e);
}
.quiz-explanation--wrong {
  background: rgba(248, 113, 113, 0.10);
  border-left: 3px solid #f87171;
  color: var(--text-main, #1a2a1e);
}
body.dinner-mode .quiz-explanation--correct {
  color: #d4f0dc;
}
body.dinner-mode .quiz-explanation--wrong {
  color: #fde8e8;
}

/* ══════════════════════════════════════════════════════
   SECTION 17 — Quiz close button: no circle
   ══════════════════════════════════════════════════════ */
/* The generic .modal-close uses border-radius:50% + dark bg.
   In the quiz modal we want a flat ghost close button instead. */
.quiz-modal .quiz-close.modal-close {
  background: none;
  border-radius: 8px;
  color: var(--text-muted, rgba(0,0,0,.45));
  box-shadow: none;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  font-size: 22px;
}
body.dinner-mode .quiz-modal .quiz-close.modal-close {
  color: rgba(255,255,255,.45);
}
.quiz-modal .quiz-close.modal-close:hover {
  background: rgba(0,0,0,.06);
  color: var(--text-primary);
}
body.dinner-mode .quiz-modal .quiz-close.modal-close:hover {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.85);
}

/* ══════════════════════════════════════════════════════
   SECTION — Screen-reader announce: visually hidden
   ══════════════════════════════════════════════════════ */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ══════════════════════════════════════════════════════
   SECTION — Quiz score counter (Q x / y)
   ══════════════════════════════════════════════════════ */
.quiz-score-counter {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-muted, rgba(0,0,0,.45));
  white-space: nowrap;
  min-width: 44px;
  text-align: right;
  flex-shrink: 0;
}
body.dinner-mode .quiz-score-counter {
  color: rgba(255,255,255,.45);
}

/* ══════════════════════════════════════════════════════
   SECTION — Quiz end screen: stars + percentage
   ══════════════════════════════════════════════════════ */
.quiz-end-stars {
  font-size: 32px;
  letter-spacing: 4px;
  margin-bottom: 8px;
  line-height: 1;
}
.quiz-end-stars-empty {
  opacity: 0.2;
}
.quiz-end-pct {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent, #b8964e);
  line-height: 1;
  margin: 4px 0 12px;
}
body.dinner-mode .quiz-end-pct {
  color: var(--accent-light, #d4a96a);
}

/* ── Quiz progress history badges ─────────────────────────────────── */
.quiz-hist-bar {
  min-height: 0;
  margin: 6px 0 10px;
}
.quiz-hist-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.quiz-hist-badge {
  font-size: 11px;
  line-height: 1.3;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 3px 10px;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
}
body.dinner-mode .quiz-hist-badge {
  background: rgba(255,220,160,0.08);
  border-color: rgba(255,200,100,0.12);
  color: rgba(255,210,140,0.55);
}

/* ══════════════════════════════════════════════════════
   SECTION 18 — Drink grid: ABV pill always on one line
   ══════════════════════════════════════════════════════ */
.wine-detail-card .wine-card-abv-pill {
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 14px;
}


/* ══════════════════════════════════════════════════════
   SECTION 19 — Pop-up card: grape one-line + polish
   ══════════════════════════════════════════════════════ */
/* Grape value: show fully, never truncated, never awkwardly wrapped */
.mb-box-grape p {
  font-size: 14px;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  overflow: visible;
}
/* ABV value: always on one line */
.mb-box-abv p {
  white-space: nowrap;
  font-size: 15px;
}
/* Popup card: tighter modal-body padding, better inner breathability */
#item-modal .modal-body {
  padding: 16px 20px 28px;
}
/* Info boxes: slightly rounder corners, consistent look */
#item-modal .mb-box-grape,
#item-modal .mb-box-abv,
#item-modal .mb-box-glass,
#item-modal .mb-box-bottle,
#item-modal .mb-box-garnish {
  border-radius: 12px;
}
/* Popup title: slightly tighter letter-spacing for elegance */
#item-modal #modal-title {
  letter-spacing: 0.01em;
  line-height: 1.25;
}
/* Allergen pills in popup: compact */
#item-modal .allergen-pill {
  font-size: 11px;
}
/* Section label (GRAPE, ABV, GLASS): clean tracking */
.mb-box-grape .bl,
.mb-box-abv .bl,
.mb-box-glass .bl,
.mb-box-bottle .bl,
.mb-box-garnish .bl {
  letter-spacing: 1.8px;
}


/* ══════════════════════════════════════════════════════
   SECTION 20 — Cocktail quiz: mobile polish
   ══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Quiz modal: slide up from bottom, sheet-style — more natural on touch */
  .quiz-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .quiz-modal {
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    max-height: 92svh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px 16px 32px;
  }
  /* Drag handle bar at top so user knows it's a sheet */
  .quiz-modal::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    border-radius: 4px;
    background: var(--card-inner-border, rgba(0,0,0,.15));
    margin: 0 auto 16px;
  }
  body.dinner-mode .quiz-modal::before {
    background: rgba(255,255,255,.2);
  }
  /* Question text: comfortable reading size */
  .quiz-question {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 14px;
  }
  /* Options: full-width, bigger tap targets */
  .quiz-opt {
    padding: 13px 16px;
    min-height: 50px;
    font-size: 0.93rem;
    text-align: left;
  }
  /* Hearts: compact */
  .quiz-lives {
    font-size: 1.1rem;
    gap: 6px;
    margin-bottom: 8px;
  }
  .quiz-header {
    margin-bottom: 16px;
  }
  /* Game options (choose a game): single column, full-width buttons */
  .quiz-game-options {
    grid-template-columns: 1fr;
  }
  /* Cocktail quiz level buttons: clear and tappable */
  .cq-lvl {
    min-height: 52px;
    font-size: 1rem;
  }
  /* Ensure Set-It-Right game close button is not covered */
  .quiz-modal.quiz-modal--set-it-right {
    border-radius: 20px 20px 0 0;
    max-width: 100%;
    margin: 0;
  }
}


/* ══════════════════════════════════════════════════════
   SECTION — Common Mistakes in standards modal
   ══════════════════════════════════════════════════════ */
.common-mistakes-wrap {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(248, 113, 113, 0.08);
  border-left: 3px solid #f87171;
}
.common-mistakes-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
  color: #c0392b;
  display: flex;
  align-items: center;
  gap: 6px;
}
.common-mistakes-icon {
  font-size: 14px;
}
.common-mistakes-list {
  margin: 0;
  padding-left: 18px;
}
.common-mistakes-list li {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-main);
  margin-bottom: 5px;
}
.common-mistakes-list li:last-child {
  margin-bottom: 0;
}
body.dinner-mode .common-mistakes-title {
  color: #f87171;
}
body.dinner-mode .common-mistakes-wrap {
  background: rgba(248, 113, 113, 0.12);
}

/* Venue ops — events toast, 86 ribbon, events modal */
.events-header-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.events-header-btn-icon {
  display: block;
  flex-shrink: 0;
}
.daily-tasks-header-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.item-card-86-ribbon {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 4px;
  pointer-events: none;
}
.item-card-img-wrap,
.wine-card-image {
  position: relative;
}
.item-card--86 {
  opacity: 0.88;
}
.item-card--86 .item-card-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 100%);
}
.venue-os-event-toast {
  position: fixed;
  bottom: 72px;
  left: 12px;
  right: 12px;
  z-index: 10050;
  max-width: 420px;
  margin: 0 auto;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  pointer-events: none;
}
@media (min-width: 768px) {
  .venue-os-event-toast {
    bottom: 24px;
    left: auto;
    right: 24px;
    margin: 0;
    max-width: 380px;
    transform: translateX(120%);
  }
  .venue-os-event-toast--visible {
    transform: translateX(0);
  }
}
.venue-os-event-toast--visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.venue-os-event-toast-inner {
  background: #111;
  color: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  position: relative;
}
.venue-os-event-toast-title {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}
.venue-os-event-toast-body {
  font-size: 13px;
  opacity: 0.9;
  margin: 0 0 10px;
}
.venue-os-event-toast-btn {
  background: #fff;
  color: #111;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.venue-os-event-toast-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  border: none;
  color: #fff;
  opacity: 0.7;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.venue-os-events-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 10040;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}
@media (min-width: 600px) {
  .venue-os-events-modal-backdrop {
    align-items: center;
  }
}
.venue-os-events-modal {
  background: var(--card, #fdfaf6);
  color: var(--text-main, #1a1a1a);
  border-radius: 16px 16px 0 0;
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg, 0 12px 40px rgba(0, 0, 0, 0.2));
}
@media (min-width: 600px) {
  .venue-os-events-modal {
    border-radius: 16px;
  }
}
.venue-os-events-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.venue-os-events-modal-head h2 {
  margin: 0;
  font-size: 1.1rem;
}
.venue-os-events-modal-x {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
}
.venue-os-events-modal-body {
  padding: 12px 16px 20px;
  overflow-y: auto;
}
.venue-os-events-modal-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.venue-os-events-modal-img img {
  width: 100%;
  display: block;
  max-height: 200px;
  object-fit: cover;
}
.venue-os-events-modal-card-body {
  padding: 12px;
}
.venue-os-events-modal-card-body h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}
.venue-os-events-modal-when,
.venue-os-events-modal-loc {
  font-size: 12px;
  opacity: 0.75;
  margin: 0 0 4px;
}
.venue-os-events-modal-txt {
  font-size: 14px;
  line-height: 1.45;
  margin: 8px 0 0;
}
