/* ──────────────────────────────────────────────────────────────────────────
   MyRestaurantLab — shared design system
   One source of truth for tokens, layout primitives, and components.
   ────────────────────────────────────────────────────────────────────────── */

/* ── Design tokens ── */
:root {
  /* Surface */
  --bg:           #faf9f6;
  --surface:      #ffffff;
  --surface-2:    #f4f1eb;
  --surface-3:    #ece8e0;
  --border:       #e6e1d8;
  --border-strong:#d4cec3;

  /* Ink */
  --ink:          #181715;
  --ink-2:        #524d47;
  --ink-3:        #8f8a83;
  --ink-inverse:  #ffffff;

  /* Brand */
  --accent:       #d90118;
  --accent-hover: #b00114;
  --accent-soft:  #fef0f1;
  --accent-bg:    rgba(217, 1, 24, 0.08);

  /* Status */
  --success:      #2d8a4e;
  --success-bg:   rgba(45, 138, 78, 0.08);
  --warn:         #b8860b;
  --warn-bg:      rgba(184, 134, 11, 0.08);
  --danger:       #c0392b;
  --danger-bg:    rgba(192, 57, 43, 0.08);
  --info:         #2e6bc4;
  --info-bg:      rgba(46, 107, 196, 0.08);

  /* Typography */
  --font-sans:    'DM Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-serif:   'DM Serif Display', Georgia, serif;
  --font-mono:    ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;

  /* Radius */
  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    14px;
  --radius-pill:  999px;

  /* Shadow */
  --shadow-sm:    0 1px 2px rgba(20, 16, 12, 0.04);
  --shadow:       0 2px 8px rgba(20, 16, 12, 0.06), 0 0 0 1px rgba(20, 16, 12, 0.02);
  --shadow-lg:    0 12px 32px rgba(20, 16, 12, 0.10);
  --shadow-pop:   0 8px 24px rgba(217, 1, 24, 0.10);

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
a { color: inherit; }

/* ── Icons (Lucide via CDN) ──
   Lucide rewrites <i data-lucide="…"> to <svg class="lucide …">.
   Default size 18px; size variants below. */
.lucide,
[data-lucide] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.icon-sm, .icon-sm.lucide { width: 14px; height: 14px; }
.icon-md, .icon-md.lucide { width: 18px; height: 18px; }
.icon-lg, .icon-lg.lucide { width: 22px; height: 22px; }
.icon-xl, .icon-xl.lucide { width: 28px; height: 28px; }

/* ── Layout ── */
.app-shell {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 60px;
}
.app-shell-wide { max-width: 1400px; }

/* ── Topbar ── */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.topbar-logo {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.topbar-logo img { width: 100%; height: 100%; object-fit: contain; }
.topbar-name {
  font-family: var(--font-serif);
  font-size: 19px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.topbar-userblock {
  text-align: right;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.topbar-meta {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}

/* ── User chip / role pill ── */
.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}
.user-chip-name { color: var(--ink); }
.role-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  line-height: 1.4;
}
.role-pill-admin {
  color: var(--ink-inverse);
  background: var(--ink);
  border-color: var(--ink);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 18px;
  background: var(--accent);
  color: var(--ink-inverse);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn-block { width: 100%; }
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--surface-2); border-color: var(--border-strong); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink-2);
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-sm);
}
.btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-success {
  background: var(--success);
  border-color: var(--success);
  color: var(--ink-inverse);
}
.btn-success:hover { background: #226d3d; border-color: #226d3d; }

/* Icon-only button (square) */
.icon-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  position: relative;
  text-decoration: none;
}
.icon-btn:hover {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}
.icon-btn.is-active { color: var(--accent); border-color: var(--accent); }

/* ── Page head (greeting / section header) ── */
.page-head { margin-bottom: 32px; }
.page-head h1 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 6px;
}
.page-head h1 em { color: var(--accent); font-style: italic; }
.page-head .page-sub {
  font-size: 15px;
  color: var(--ink-2);
  font-weight: 500;
}
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.section-label + .section-label { margin-top: 36px; }

/* ── Tile grid ── */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  color: inherit;
  transition: all 0.18s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  min-height: 158px;
  box-shadow: var(--shadow-sm);
}
.tile:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-pop);
}
.tile.is-disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
  box-shadow: none;
}
.tile-icon {
  width: 40px; height: 40px;
  background: var(--accent-soft);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.tile-icon .lucide { width: 20px; height: 20px; }
.tile.is-disabled .tile-icon { background: var(--surface-2); color: var(--ink-3); }
.tile-tag {
  display: inline-block;
  padding: 3px 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  align-self: flex-start;
  line-height: 1.4;
}
.tile.is-disabled .tile-tag { background: var(--surface-2); color: var(--ink-3); }
.tile-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-top: 2px;
}
.tile-desc {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
  flex: 1;
}
.tile-cta {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tile-cta .lucide { width: 13px; height: 13px; }
.tile.is-disabled .tile-cta { color: var(--ink-3); }

/* ── Card ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.card-pad-tight { padding: 16px 18px; }
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.card-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.card-sub {
  font-size: 12px;
  color: var(--ink-3);
}

/* ── Auth card (login / welcome) ── */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow);
}
.auth-card-wide { max-width: 440px; }
.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.auth-brand-logo {
  width: 80px; height: 80px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.auth-brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.auth-brand-name {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.auth-brand-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 6px;
}
.auth-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-align: center;
  margin-bottom: 6px;
}
.auth-sub {
  font-size: 14px;
  color: var(--ink-3);
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.5;
}
.auth-footer {
  text-align: center;
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 24px;
  letter-spacing: 0.02em;
}

/* ── Form fields ── */
.field { margin-bottom: 14px; }
.field-label,
.fl {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.field-input,
.field-select,
.field-textarea,
.fi,
.fsel,
.fta {
  width: 100%;
  padding: 11px 13px;
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.field-input:focus,
.field-select:focus,
.field-textarea:focus,
.fi:focus,
.fsel:focus,
.fta:focus {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 1, 24, 0.1);
}
.field-input::placeholder,
.fi::placeholder { color: var(--ink-3); }
.field-textarea,
.fta { resize: vertical; min-height: 80px; }
.field-select,
.fsel {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238f8a83'%3E%3Cpath d='M6 8.5L1 3.5h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* Inline error message */
.err-msg {
  display: none;
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 12px;
  padding: 9px 12px;
  border-radius: var(--radius);
  margin-bottom: 14px;
  text-align: center;
}
.err-msg.is-shown { display: block; }

/* Checkbox row */
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -2px 0 6px;
  cursor: pointer;
  font-size: 12px;
  color: var(--ink-2);
  user-select: none;
}
.check-row input[type="checkbox"] {
  width: 15px; height: 15px;
  accent-color: var(--accent);
  cursor: pointer;
  margin: 0;
}

/* ── Notification bell ── */
.bell-wrap { position: relative; }
.bell-btn {
  position: relative;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.bell-btn:hover { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.bell-btn.bell-active { color: var(--accent); border-color: var(--accent); }
.bell-badge {
  position: absolute;
  top: -5px; right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  background: var(--accent);
  color: var(--ink-inverse);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
}
.bell-badge-dot {
  min-width: 9px;
  width: 9px;
  height: 9px;
  padding: 0;
  top: -2px;
  right: -2px;
}
.bell-dropdown {
  position: absolute;
  top: 44px; right: 0;
  width: 320px;
  max-width: 84vw;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  overflow: hidden;
  text-align: left;
}
.bell-head {
  padding: 13px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.bell-sub {
  padding: 10px 16px 6px;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
}
.bell-empty {
  padding: 18px;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
}
.bell-names {
  padding: 4px 8px 8px;
  max-height: 240px;
  overflow-y: auto;
}
.bell-name {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--ink);
}
.bell-name:hover { background: var(--surface-2); }
.bell-name-n {
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 500;
}
.bell-more {
  padding: 8px;
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
}
.bell-cta {
  display: block;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  text-align: center;
  transition: background 0.15s;
}
.bell-cta:hover { background: var(--surface-2); }

/* Duplicate QSA rows in the bell */
.bell-dupes { padding: 4px 8px 8px; max-height: 300px; overflow-y: auto; }
.bell-dupe {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 8px; border-radius: var(--radius-sm);
}
.bell-dupe:hover { background: var(--surface-2); }
.bell-dupe + .bell-dupe { border-top: 1px solid var(--border); }
.bell-dupe-info { flex: 1; min-width: 0; }
.bell-dupe-label { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bell-dupe-meta { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.bell-dupe-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.bell-dupe-merge, .bell-dupe-dismiss {
  font-family: inherit; font-size: 11px; font-weight: 600; cursor: pointer;
  padding: 5px 10px; border-radius: 6px; border: 1px solid var(--border); transition: all .12s;
}
.bell-dupe-merge { background: var(--accent); color: #fff; border-color: var(--accent); }
.bell-dupe-merge:hover { background: var(--accent-hover); }
.bell-dupe-dismiss { background: var(--surface); color: var(--ink-2); }
.bell-dupe-dismiss:hover { border-color: var(--ink-3); color: var(--ink); }
.bell-cheer {
  padding: 14px 16px;
  background: var(--accent-soft);
  border-bottom: 1px solid var(--border);
}
.bell-cheer-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 3px;
}
.bell-cheer-body {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
}
.bell-cheer-body strong { color: var(--accent); }

/* ── Badges (status, category) ── */
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
  white-space: nowrap;
}
.badge-accent { background: var(--accent-bg); color: var(--accent); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-muted { background: var(--surface-2); color: var(--ink-2); }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--ink-inverse);
  font-weight: 600;
  font-size: 13px;
  border-radius: var(--radius);
  z-index: 9999;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 12, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  backdrop-filter: blur(2px);
}
.modal-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.modal-head h2 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  margin: 0 0 4px 0;
  letter-spacing: -0.01em;
}
.modal-close {
  background: none;
  border: none;
  color: var(--ink-3);
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}
.modal-close:hover { background: var(--surface-2); color: var(--ink); }
.modal-body { padding: 18px 22px; }
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* ── Footer ── */
.app-footer {
  text-align: center;
  padding: 32px 0 8px;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .app-shell { padding: 22px 18px 40px; }
}
@media (max-width: 600px) {
  body { font-size: 14px; }
  .app-shell { padding: 18px 14px 36px; }
  .page-head h1 { font-size: 24px; }
  .page-head .page-sub { font-size: 14px; }
  .tiles { grid-template-columns: 1fr; }
  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 24px;
  }
  .topbar-right {
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    width: 100%;
  }
  /* Notifications: bottom sheet on phones — the absolute/right:0 dropdown
     overflowed off-screen left because the bell sits mid-row. */
  .bell-dropdown {
    position: fixed;
    top: auto;
    left: 0; right: 0; bottom: 0;
    width: auto;
    max-width: none;
    border-radius: 16px 16px 0 0;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 -8px 32px rgba(0,0,0,.18);
  }
  .bell-names, .bell-dupes { max-height: none; }
  .tile { padding: 18px; min-height: auto; }
  .auth-card { padding: 32px 24px; }
}

/* ── Utility classes (used sparingly) ── */
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-warn { color: var(--warn); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--ink-3); }
.text-strong { color: var(--ink); font-weight: 600; }
.text-num { font-variant-numeric: tabular-nums; }
.text-mono { font-family: var(--font-mono); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.hide { display: none !important; }

/* ── Dashboard: admin tile management ── */
.tile { position: relative; }
.manage-tiles-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 22px;
}
.manage-tiles-btn {
  font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  padding: 8px 16px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--surface); color: var(--ink-2);
  transition: all .15s;
}
.manage-tiles-btn:hover { border-color: var(--accent); color: var(--accent); }
.manage-tiles-hint { font-size: 12px; color: var(--ink-3); max-width: 460px; line-height: 1.5; }
.tile-hidden-mark { opacity: .5; border-style: dashed !important; }
.tile-eye {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  display: inline-flex; align-items: center; gap: 5px;
  font-family: inherit; font-size: 11px; font-weight: 600; cursor: pointer;
  padding: 5px 9px; border-radius: 7px;
  border: 1px solid var(--border); background: var(--surface); color: var(--ink-2);
  box-shadow: var(--shadow-sm); transition: all .15s;
}
.tile-eye:hover { border-color: var(--accent); color: var(--accent); }
.tile-eye .lucide { width: 13px; height: 13px; }

/* ── Admin: venue product entitlements picker ── */
.manage-tiles-btn .lucide{width:15px;height:15px;vertical-align:-3px;margin-right:5px}
.prod-overlay{position:fixed;inset:0;background:rgba(20,18,14,.5);backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;z-index:5000;padding:20px}
.prod-card{background:#fff;border-radius:18px;width:100%;max-width:480px;max-height:86vh;overflow:hidden;box-shadow:0 24px 80px rgba(0,0,0,.3);display:flex;flex-direction:column}
.prod-head{display:flex;justify-content:space-between;gap:12px;padding:22px 24px 16px;border-bottom:1px solid var(--border)}
.prod-title{font-family:'DM Serif Display',Georgia,serif;font-size:22px;color:var(--ink)}
.prod-sub{font-size:13px;color:var(--ink-3);margin-top:5px;line-height:1.5}
.prod-x{background:var(--surface-2);border:none;width:32px;height:32px;border-radius:50%;font-size:20px;color:var(--ink-3);cursor:pointer;flex:0 0 auto}
.prod-list{overflow-y:auto;padding:10px}
.prod-row{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;text-align:left;background:none;border:1px solid var(--border);border-radius:12px;padding:13px 16px;margin-bottom:8px;cursor:pointer;font-family:inherit;transition:all .15s}
.prod-row:hover{border-color:var(--ink-3)}
.prod-row.on{border-color:var(--accent);background:rgba(217,1,24,.04)}
.prod-name{font-size:15px;font-weight:600;color:var(--ink)}
.prod-desc{font-size:12px;color:var(--ink-3);margin-top:2px}
.prod-switch{flex:0 0 auto;width:44px;height:26px;border-radius:100px;background:var(--border);position:relative;transition:background .18s}
.prod-row.on .prod-switch{background:var(--accent)}
.prod-knob{position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:left .18s}
.prod-row.on .prod-knob{left:21px}
.prod-foot{padding:14px 24px 20px;border-top:1px solid var(--border)}
.prod-done{width:100%;background:var(--accent);color:#fff;border:none;padding:13px;border-radius:12px;font-family:inherit;font-size:15px;font-weight:700;cursor:pointer}
.prod-done:hover{background:var(--accent-hover)}
.prod-soon{font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--ink-3);background:var(--surface-2);padding:2px 6px;border-radius:5px;vertical-align:1px;margin-left:4px}
