/* ==========================================================================
   Page-specific styles (on top of styles.css)
   ========================================================================== */

/* ---------- Homepage (Apple & Samsung Flagship Bento Layout) ---------- */
.hero {
  padding: 84px 0 64px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  max-width: 840px;
  margin: 0 auto 18px;
  letter-spacing: -0.035em;
  line-height: 1.12;
  font-weight: 700;
  color: var(--text);
}
.hero p.lead {
  max-width: 620px;
  margin: 0 auto 34px;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Apple iPad / Galaxy Tab Device Showcase Mockup */
.hero-mock {
  margin: 54px auto 0;
  max-width: 840px;
  border-radius: var(--radius-lg, 28px);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.03);
  background: var(--surface);
  position: relative;
}
.hero-mock .mock-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #fbfbfd;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.mock-bar-dots {
  display: flex;
  gap: 7px;
}
.hero-mock .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e5e5ea;
}
.hero-mock .mock-bar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f5f5f7;
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 0.8rem;
  color: #86868b;
  width: 320px;
  max-width: 50%;
}
.hero-mock .mock-body {
  padding: 24px;
  background: #ffffff;
}
.mock-categories-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 18px;
  padding-bottom: 4px;
}
.mock-pill {
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  background: #f5f5f7;
  color: #1d1d1f;
  white-space: nowrap;
}
.mock-pill.active {
  background: #1d1d1f;
  color: #ffffff;
}
.mock-dish-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.mock-card {
  background: #fbfbfd;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.mock-card-img {
  width: 100%;
  height: 90px;
  border-radius: 10px;
  background: #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.mock-card-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0;
}
.mock-card-desc {
  font-size: 0.74rem;
  color: #86868b;
  line-height: 1.35;
  margin: 0;
}
.mock-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 6px;
}
.mock-card-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1d1d1f;
}
.mock-card-btn {
  background: rgba(0, 113, 227, 0.08);
  color: #0071e3;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
}

/* Sections & Bento Feature Grid */
.section { padding: 80px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-head .eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-block;
  margin-bottom: 8px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  letter-spacing: -0.03em;
  font-weight: 700;
  line-height: 1.2;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  padding: 32px 28px;
  border-radius: 26px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--surface);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 113, 227, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.07);
}
.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 17px;
  background: rgba(0, 113, 227, 0.08);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 1.4rem;
  transition: transform 0.2s ease;
}
.feature-card:hover .feature-icon {
  transform: scale(1.06);
}
.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Bento Hardware Showcase Highlight */
.bento-hardware-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius-lg, 28px);
  padding: 36px 36px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02), 0 12px 36px rgba(0, 0, 0, 0.04);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}
.bento-hardware-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 113, 227, 0.3);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.07);
}
.bento-hardware-info {
  flex: 1;
  min-width: 280px;
}
.bento-hardware-action {
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .bento-hardware-card {
    padding: 24px 20px;
    gap: 18px;
  }
}

/* Steps (One UI Inset Card Group) */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  text-align: left;
  padding: 32px 26px;
  background: #ffffff;
  border-radius: 26px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.step:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}
.step-num {
  counter-increment: step;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #1d1d1f;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 18px;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.step h4 {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.step p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 0;
}

.cta-band {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius-lg, 28px);
  padding: 56px 36px;
  text-align: center;
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.04);
}
.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

/* Contact Section (iOS grouped action cards) */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.contact-intro h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.contact-intro p {
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 22px;
}
.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #f5f5f7;
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  max-width: 100%;
}
.contact-pill svg { color: var(--accent); flex-shrink: 0; }

.contact-cards { display: flex; flex-direction: column; gap: 12px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  text-decoration: none;
  color: inherit;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
a.contact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 113, 227, 0.3);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  text-decoration: none;
}
a.contact-card:active { transform: scale(0.99); }
a.contact-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.contact-card-static { cursor: default; }

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(0, 113, 227, 0.08);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
a.contact-card:hover .contact-icon {
  background: var(--accent);
  color: #ffffff;
  transform: scale(1.04);
}

.contact-details { flex: 1; min-width: 0; }
.contact-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.contact-value {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
  transition: color .15s ease;
}
a.contact-card:hover .contact-value { color: var(--accent); }
.contact-hint {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.4;
}

.contact-arrow {
  color: #c7c7cc;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: 4px;
}
a.contact-card:hover .contact-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

@media (max-width: 860px) {
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-mock .mock-dish-grid { grid-template-columns: 1fr; }
  .hero-mock .mock-bar-search { display: none; }
}
@media (max-width: 480px) {
  .contact-card { padding: 14px 16px; gap: 12px; }
  .contact-icon { width: 40px; height: 40px; }
  .contact-value { font-size: 0.92rem; }
  .contact-hint { font-size: 0.78rem; }
}

/* ---------- Auth / Login (Apple ID & Samsung One UI Experience) ---------- */
.auth-wrap {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  position: relative;
  background: radial-gradient(circle at 50% 30%, rgba(0, 113, 227, 0.05) 0%, transparent 65%);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 38px 34px;
  background: #ffffff;
  border-radius: var(--radius-lg, 28px);
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02), 0 20px 48px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-header {
  text-align: center;
  margin-bottom: 26px;
}

.auth-brand-badge {
  width: 56px;
  height: 56px;
  border-radius: 17px;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #f6f6f9 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  position: relative;
}

.auth-brand-badge .auth-brand-dot {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(0, 113, 227, 0.45);
}

.auth-title {
  font-size: 1.48rem;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
  line-height: 1.2;
}

.auth-subtitle {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.auth-session-card {
  background: #fbfbfd;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 18px;
  padding: 16px 18px;
  margin-bottom: 22px;
}

.auth-session-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.auth-session-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.auth-session-email {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  display: block;
}

.auth-session-role {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: block;
}

.auth-submit-btn {
  width: 100%;
  padding: 13px 20px;
  font-size: 0.96rem;
  font-weight: 600;
  margin-top: 4px;
  box-shadow: 0 4px 16px rgba(0, 113, 227, 0.25);
}

.auth-card .field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.auth-card .field input {
  padding: 12px 15px;
  border-radius: 13px;
  font-size: 0.94rem;
  background: #ffffff;
}

.auth-note-box {
  margin-top: 22px;
  padding: 12px 14px;
  background: #fbfbfd;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 14px;
  text-align: center;
}

.auth-note-box p {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
  margin: 0;
}

.role-toggle { display: flex; background: var(--bg-soft); border-radius: 999px; padding: 4px; margin-bottom: 26px; }
.role-toggle button {
  flex: 1; border: none; background: transparent; padding: 9px 10px; border-radius: 999px;
  font-family: inherit; font-size: 0.86rem; font-weight: 600; color: var(--text-muted); cursor: pointer;
  transition: all .15s ease;
}
.role-toggle button.active { background: var(--surface); color: var(--accent); box-shadow: var(--shadow); }
.demo-note { font-size: 0.78rem; color: var(--text-muted); background: var(--bg-soft); padding: 10px 12px; border-radius: var(--radius-sm); margin-top: 16px; }
.demo-note code { background: var(--surface); padding: 1px 5px; border-radius: 4px; }

/* ---------- Dashboard shells (admin + restaurant) ---------- */
.dash-header { padding: 28px 0 8px; }
.dash-title-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.dash-title-row h1 { font-size: 1.5rem; margin: 0; }

.profile-card { display: flex; align-items: center; gap: 16px; }
.profile-avatar {
  width: 56px; height: 56px; border-radius: 14px; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; flex-shrink: 0; overflow: hidden;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-meta h3 { margin-bottom: 2px; font-size: 1.02rem; }
.profile-meta p { margin: 0; font-size: 0.85rem; }

.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }

.restaurant-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.restaurant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background 0.15s ease;
}
.restaurant-row:last-child { border-bottom: none; }
.restaurant-row:hover { background: #fbfbfd; }
.restaurant-row a {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  flex: 1;
  min-width: 0;
}
.restaurant-row a:hover { text-decoration: none; }
.restaurant-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f6f6f9 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.restaurant-info strong {
  display: block;
  font-size: 0.98rem;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--text);
}
.restaurant-info span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

@media (max-width: 560px) {
  .restaurant-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .restaurant-row > span { justify-content: flex-start; }
}

.stat-row { display: flex; gap: 14px; flex-wrap: wrap; }
.stat-box {
  flex: 1;
  min-width: 120px;
  padding: 18px 14px;
  text-align: center;
  background: radial-gradient(circle at 50% 45%, #ffffff 0%, #f6f6f9 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.stat-box .num {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.025em;
}
.stat-box .label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.logo-upload-box {
  display: flex; align-items: center; gap: 16px; padding: 18px; flex-wrap: wrap;
}
.logo-preview {
  width: 68px; height: 68px; border-radius: 16px; overflow: hidden; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid var(--border);
}
.logo-preview img { width: 100%; height: 100%; object-fit: cover; }
.swatch-row { display: flex; gap: 8px; margin-top: 10px; }
.swatch { width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(0,0,0,.08); }

.color-swatch-input {
  width: 46px; height: 36px; padding: 0; border: 1px solid var(--border); border-radius: 10px;
  cursor: pointer; background: none;
}
.color-swatch-input::-webkit-color-swatch-wrapper { padding: 3px; }
.color-swatch-input::-webkit-color-swatch { border: none; border-radius: 7px; }
.shade-row { display: flex; gap: 8px; }
.shade-swatch {
  width: 32px; height: 32px; border-radius: 9px; border: 2px solid transparent; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); transition: transform .12s ease, border-color .12s ease;
}
.shade-swatch:hover { transform: translateY(-2px); }
.shade-swatch.active { border-color: var(--text); }

/* ---------- Edit menu (e_mode) ---------- */
.editor-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px 0;
}
.role-pill { font-size: 0.76rem; padding: 4px 11px; border-radius: 999px; background: var(--bg-soft); color: var(--text-muted); font-weight: 600; }
.role-pill.is-admin { background: var(--accent-soft); color: var(--accent); }

.category-strip {
  display: flex; gap: 8px; align-items: center; overflow-x: auto; padding: 6px 4px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06); margin-bottom: 28px;
  scrollbar-width: none;
}
.category-strip::-webkit-scrollbar { display: none; }

.category-chip {
  display: flex; align-items: center; gap: 6px; background: #ffffff; border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 999px; padding: 7px 10px 7px 16px; white-space: nowrap; font-size: 0.86rem; font-weight: 500;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}
.category-chip:hover {
  border-color: rgba(0, 113, 227, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}
.category-chip button {
  background: none; border: none; cursor: pointer; color: var(--text-muted); padding: 4px; border-radius: 50%;
  display: flex; transition: all 0.15s ease;
}
.category-chip button:hover { background: #f5f5f7; color: var(--text); }
.category-chip .cat-link { color: var(--text); cursor: pointer; font-weight: 600; }
.add-category-btn { flex-shrink: 0; }

.category-section { margin-bottom: 44px; scroll-margin-top: 90px; }
.category-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.category-section-head h2 { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.category-section-head .size-legend { font-size: 0.78rem; color: var(--text-muted); }

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
@media (max-width: 640px) {
  .tile-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.tile {
  position: relative;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 26px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02), 0 10px 24px rgba(0, 0, 0, 0.03);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}
.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.07);
  border-color: rgba(0, 113, 227, 0.28);
}
.tile.is-editing {
  border-color: var(--accent);
  box-shadow: 0 12px 36px rgba(0, 113, 227, 0.15);
  background: #ffffff;
  z-index: 4;
}

.tile-controls-left {
  position: absolute;
  left: 12px;
  top: 12px;
  display: flex;
  flex-direction: row;
  gap: 5px;
  z-index: 3;
}
.tile-controls-left button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: all 0.15s ease;
  padding: 0;
}
.tile-controls-left button:hover:not(:disabled) {
  color: var(--text);
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.15);
  transform: scale(1.08);
}

.tile-controls-right {
  position: absolute;
  right: 12px;
  top: 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  z-index: 3;
}
.tile-controls-right .btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
  font-size: 0.84rem;
  padding: 0;
  transition: all 0.15s ease;
}
.tile-controls-right .btn-icon:hover {
  background: #ffffff;
  color: var(--accent);
  border-color: rgba(0, 113, 227, 0.3);
  transform: scale(1.08);
}
.tile-controls-right .btn-danger-icon:hover {
  color: var(--danger);
  border-color: rgba(255, 59, 48, 0.3);
}

.tile-img-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #ffffff 0%, #f6f6f9 100%);
  border: 1px solid rgba(0, 0, 0, 0.04);
  aspect-ratio: 1.35/1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tile-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.tile:hover .tile-img-wrap img {
  transform: scale(1.04);
}
.tile-img-wrap.has-vector-icon img,
.tile-img-wrap img.dish-vector-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.09));
}
.tile-img-edit-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(20, 16, 12, 0.78);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(4px);
  transition: background 0.15s ease, transform 0.1s ease;
}
.tile-img-edit-btn:hover {
  background: rgba(20, 16, 12, 0.96);
  transform: translateY(-1px);
}
.tile-name {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.3;
}
.tile-price {
  font-size: 0.94rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.tile-price .size-chip {
  background: rgba(0, 113, 227, 0.08);
  color: var(--accent);
  border-radius: 6px;
  padding: 2px 7px;
  margin-right: 4px;
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
}
.tile-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* Edit mode components */
.tile-edit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.tile-edit-badge {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 999px;
}
.tile-edit-fields { display: none; }
.tile.is-editing .tile-edit-fields { display: block; }
.tile.is-editing .tile-view { display: none; }
.tile-edit-fields .field { margin-bottom: 11px; }
.tile-edit-fields .field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
  display: block;
}
.tile-edit-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.tile-edit-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 8px 12px;
  font-size: 0.86rem;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 500;
  margin: 0 !important;
}
.checkbox-label input[type="checkbox"] {
  width: auto !important;
  margin: 0 !important;
  cursor: pointer;
}
.size-input-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 10px;
}
.size-input-col label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: block;
}
.size-input-col input {
  width: 100%;
}

.move-menu { position: relative; }
.move-menu-list {
  position: absolute;
  right: 0;
  top: 36px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
  min-width: 170px;
  z-index: 10;
  display: none;
  overflow: hidden;
  padding: 6px;
  animation: fadeInModal .15s ease;
}
.move-menu-list.open { display: block; }
.move-menu-list button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--text);
  border-radius: 8px;
  transition: all 0.12s ease;
}
.move-menu-list button:hover {
  background: #f5f5f7;
  color: var(--accent);
}

.add-item-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(0, 113, 227, 0.28);
  border-radius: 26px;
  min-height: 220px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.94rem;
  font-weight: 600;
  gap: 12px;
  background: rgba(0, 113, 227, 0.02);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}
.add-item-tile::before {
  content: "+";
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid rgba(0, 113, 227, 0.25);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 400;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.08);
  transition: all 0.2s ease;
}
.add-item-tile:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 113, 227, 0.06);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 113, 227, 0.08);
}
.add-item-tile:hover::before {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  transform: scale(1.1);
}

/* ---------- Public Menu View (Modern Premium Hospitality) ---------- */
.menu-hero {
  padding: 36px 0 22px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.preview-banner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(0,0,0,0.06);
}
.menu-hero .logo-circle {
  width: 78px;
  height: 78px;
  border-radius: 22px;
  margin: 0 auto 12px;
  overflow: hidden;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px -4px rgba(43, 37, 32, 0.08), 0 0 0 3px #ffffff;
}
.menu-hero .logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.menu-hero h1 {
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 4px;
}
.menu-hero p#restaurant-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 10px;
}

/* Info Badges (Hours, Address) */
.menu-info-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin: 8px 0 16px;
}
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--surface);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #278838;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(39, 136, 56, 0.2);
}

/* Action Buttons Row */
.menu-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-top: 6px;
}
.menu-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(43, 37, 32, 0.04);
  transition: all .15s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  font-family: inherit;
  user-select: none;
}
.menu-action-btn svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
  flex-shrink: 0;
}
.menu-action-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
  transform: translateY(-1px);
}
.menu-action-btn:active {
  transform: translateY(0);
}
.menu-action-btn.is-review-cta {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}
.menu-action-btn.is-review-cta:hover {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #b45309;
}

@media (max-width: 600px) {
  .menu-hero {
    padding: 16px 12px 12px;
  }
  .preview-banner {
    margin: 0 auto 10px;
    padding: 4px 10px;
    font-size: 0.74rem;
  }
  .menu-hero .logo-circle {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    margin: 0 auto 6px;
  }
  .menu-hero h1 {
    font-size: 1.25rem;
    margin-bottom: 2px;
  }
  .menu-hero p#restaurant-tagline {
    font-size: 0.78rem;
    margin: 0 0 6px;
  }
  .menu-info-meta {
    margin: 4px 0 8px;
    gap: 6px;
  }
  .meta-chip {
    font-size: 0.72rem;
    padding: 2px 8px;
    gap: 4px;
  }
  .menu-actions-row {
    gap: 6px;
    margin-top: 2px;
  }
  .menu-action-btn {
    padding: 5px 10px;
    font-size: 0.74rem;
    gap: 4px;
  }
  .menu-action-btn svg {
    width: 12px;
    height: 12px;
  }
}

/* ---------- Sticky Control Header (Search + Segmented Filter + Category Nav) ---------- */
.sticky-menu-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: var(--transition-theme);
}
@supports (backdrop-filter: blur(20px)) {
  .sticky-menu-header {
    background: color-mix(in srgb, var(--bg) 88%, transparent);
  }
}

/* Search & Dietary Segmented Filter Bar */
.menu-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 8px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.menu-search-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.menu-search-icon-svg {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
  flex-shrink: 0;
}
input[type="text"].menu-search-input {
  width: 100% !important;
  height: 40px !important;
  padding: 0 36px 0 40px !important;
  border-radius: 999px !important;
  border: 1.5px solid var(--border) !important;
  background: var(--surface) !important;
  font-size: 0.86rem !important;
  font-family: inherit !important;
  color: var(--text) !important;
  outline: none !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03) !important;
  transition: all .2s ease !important;
  box-sizing: border-box !important;
}
input[type="text"].menu-search-input:focus {
  border-color: var(--accent) !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px var(--accent-soft) !important;
}
.search-clear-btn {
  position: absolute;
  right: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 0.72rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.search-clear-btn:hover {
  background: var(--border);
  color: var(--text);
}

/* Dietary Segmented Controls: All / Veg / Non-Veg */
.dietary-segment-control {
  display: inline-flex;
  background: var(--bg-soft);
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.dietary-segment-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s ease;
  user-select: none;
}
.dietary-segment-btn.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.dietary-segment-btn.is-veg.active {
  color: #1b5e20;
}
.dietary-segment-btn.is-nonveg.active {
  color: #991b1b;
}

/* Sticky Category Pills Navigation */
.menu-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 16px 10px;
  max-width: var(--max-width);
  margin: 0 auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.menu-nav::-webkit-scrollbar {
  display: none;
}
.menu-nav a {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.83rem;
  font-weight: 600;
  transition: all .15s ease;
  border: 1px solid transparent;
  user-select: none;
}
.menu-nav a:hover {
  background: var(--bg-soft);
  color: var(--text);
  text-decoration: none;
}
.menu-nav a.active {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

@media (max-width: 600px) {
  .menu-filter-bar {
    padding: 6px 12px 4px;
    gap: 8px;
  }
  .menu-search-wrap {
    flex: 1;
  }
  input[type="text"].menu-search-input {
    height: 34px !important;
    padding: 0 30px 0 32px !important;
    font-size: 0.8rem !important;
  }
  .menu-search-icon-svg {
    left: 10px;
    width: 14px;
    height: 14px;
  }
  .search-clear-btn {
    right: 8px;
    width: 18px;
    height: 18px;
    font-size: 0.65rem;
  }
  .dietary-segment-control {
    padding: 2px;
  }
  .dietary-segment-btn {
    padding: 4px 8px;
    font-size: 0.72rem;
    gap: 3px;
  }
  .menu-nav {
    padding: 3px 12px 6px;
    gap: 4px;
  }
  .menu-nav a {
    padding: 4px 10px;
    font-size: 0.76rem;
  }
}

/* ---------- Dish Sections & Cards ---------- */
.public-section {
  padding: 16px 0 6px;
}
.section-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.section-header-row h2 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.01em;
}
.section-item-count {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
}

.public-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 760px) {
  .public-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.public-card {
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02), 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: transform .22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .22s cubic-bezier(0.16, 1, 0.3, 1), border-color .2s ease;
  min-height: 84px;
}
.public-card:hover {
  border-color: rgba(0, 113, 227, 0.28);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}
.public-card:active {
  transform: scale(0.992);
}

.public-card .img-wrap {
  width: 76px;
  height: 76px;
  min-width: 76px;
  flex-shrink: 0;
  background: radial-gradient(circle at 50% 45%, #ffffff 0%, #f6f6f9 100%);
  overflow: hidden;
  border-radius: 14px;
  margin: 10px 0 10px 10px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  border: 1px solid rgba(0, 0, 0, 0.04);
}
.public-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.public-card .img-wrap img[src*=".svg"],
.public-card .img-wrap img[src*="dish-"] {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
}
.public-card:hover .img-wrap img {
  transform: scale(1.05);
}

.public-card .card-body {
  padding: 10px 12px 10px 10px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.public-card .card-top-content {
  flex: 1;
  min-width: 0;
}
.public-card .title-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 2px;
}
.public-card h3.item-name {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.015em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  flex: 1;
}
.public-card .price-line {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  line-height: 1.2;
}
.public-card .price-line .size-tag {
  display: inline-block;
  background: rgba(0, 113, 227, 0.08);
  color: var(--accent);
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 600;
}
.public-card p.item-desc {
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--text-muted);
  margin: 2px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.public-card.expanded h3.item-name {
  -webkit-line-clamp: unset;
  display: block;
}
.public-card.expanded p.item-desc {
  -webkit-line-clamp: unset;
  display: block;
}

.expand-toggle {
  align-self: flex-start;
  margin-top: 2px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: inherit;
}
.expand-toggle .arrow {
  transition: transform .15s ease;
  display: inline-block;
  font-size: 0.68rem;
}
.public-card.expanded .expand-toggle .arrow {
  transform: rotate(180deg);
}

@media (max-width: 480px) {
  .public-section {
    padding: 12px 0 4px;
  }
  .public-section .container {
    padding: 0 12px;
  }
  .section-header-row {
    margin-bottom: 6px;
    padding-bottom: 3px;
  }
  .section-header-row h2 {
    font-size: 1.02rem;
  }
  .public-card {
    min-height: 68px;
    border-radius: 10px;
  }
  .public-card .img-wrap {
    width: 62px;
    height: 62px;
    min-width: 62px;
    margin: 6px 0 6px 6px;
    border-radius: 7px;
  }
  .public-card .card-body {
    padding: 6px 8px 6px 6px;
  }
  .public-card h3.item-name {
    font-size: 0.85rem;
  }
  .public-card p.item-desc {
    font-size: 0.72rem;
  }
  .public-card .price-line {
    font-size: 0.82rem;
  }
}

/* Floating Quick Jump Menu Button on Mobile */
.floating-jump-btn {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--text);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0,0,0,0.22);
  cursor: pointer;
  font-family: inherit;
  transition: transform .2s ease, opacity .2s ease;
}
.floating-jump-btn:hover {
  transform: translateY(-2px);
}
.floating-jump-btn:active {
  transform: scale(0.96);
}
@media (min-width: 900px) {
  .floating-jump-btn {
    display: none;
  }
}

/* Jump Sheet Modal (Category Quick Jump) */
.jump-sheet-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 60vh;
  overflow-y: auto;
  margin-top: 12px;
}
.jump-sheet-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text);
  border: none;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s ease;
}
.jump-sheet-item:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.jump-sheet-item span.count {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---------- Editorial Bottom Google Review Card ---------- */
.bottom-review-section {
  padding: 44px 0 20px;
}
.review-card-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(43, 37, 32, 0.05);
  max-width: 520px;
  margin: 0 auto;
}
.review-card-box .star-row {
  display: flex;
  justify-content: center;
  gap: 4px;
  color: #f59e0b;
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.review-card-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}
.review-card-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto 18px;
  line-height: 1.45;
}
.review-card-box .btn-google-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1a73e8;
  color: #ffffff;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
  transition: all .15s ease;
}
.review-card-box .btn-google-cta:hover {
  background: #1557b0;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Toast Notification (e.g. "Link copied!") */
.toast-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1f1b18;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  z-index: 120;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  opacity: 0;
  transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ---------- Scan / Upload menu (Apple HIG Minimal Canvas) ---------- */
.scan-wrap { max-width: 600px; margin: 0 auto; padding: 36px 20px 60px; }
.upload-dropzone {
  border: 2px dashed rgba(0, 113, 227, 0.3);
  border-radius: var(--radius-lg, 28px);
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, #fbfbfd 100%);
  padding: 44px 28px;
  text-align: center;
  cursor: pointer;
  transition: all .25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02);
}
.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--accent);
  background: rgba(0, 113, 227, 0.04);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 113, 227, 0.08);
}
.upload-icon-svg {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 2px;
  filter: drop-shadow(0 4px 10px rgba(0, 113, 227, 0.2));
}
.upload-dropzone h3 {
  font-size: 1.15rem;
  margin: 0;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.upload-dropzone p {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 420px;
  line-height: 1.5;
}
.shots-strip { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.shot-thumb {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.shot-thumb img { width: 100%; height: 100%; object-fit: cover; }
.shot-thumb .shot-idx-badge {
  position: absolute;
  bottom: 5px;
  left: 5px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}
.shot-thumb .remove-shot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
}
.shot-thumb .remove-shot:hover { background: #e11d48; transform: scale(1.1); }
.shot-add-more {
  width: 96px;
  height: 96px;
  border-radius: 16px;
  border: 2px dashed rgba(0, 113, 227, 0.28);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all .2s ease;
}
.shot-add-more:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 113, 227, 0.04);
  transform: translateY(-2px);
}
.analyzing-overlay {
  display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 50px 20px; text-align: center;
}
.analyzing-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
}
.spinner {
  width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--accent-soft); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Menu Digitizer Tabs, Compression Badges & Quick AI Import ---------- */
.digitize-tabs {
  display: flex;
  background: #f5f5f7;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  gap: 4px;
  margin: 18px 0 24px;
}
.digitize-tab {
  flex: 1;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
}
.digitize-tab:hover {
  color: var(--text);
}
.digitize-tab.active {
  background: #ffffff;
  color: #1d1d1f;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.shot-size-pill {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(16, 185, 129, 0.92);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.compression-notice-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
}
.ai-prompt-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.ai-prompt-box h4 {
  margin: 0 0 4px;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ai-prompt-code-wrap {
  margin-top: 12px;
}
.ai-prompt-code {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.76rem;
  max-height: 120px;
  overflow-y: auto;
  color: var(--text-muted);
  white-space: pre-wrap;
  user-select: all;
  margin-top: 8px;
}
.ai-paste-area {
  width: 100%;
  box-sizing: border-box;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.5;
  padding: 14px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  resize: vertical;
  min-height: 170px;
  margin-top: 8px;
  transition: border-color .15s ease;
}
.ai-paste-area:focus {
  border-color: var(--accent);
  outline: none;
}
.ai-preview-panel {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 18px;
}
.ai-preview-panel.detected {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.03);
}
.ai-preview-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.ai-preview-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}
.quick-import-sheet {
  background: #ffffff;
  border-radius: var(--radius-lg, 28px);
  max-width: 640px;
  width: 95%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(0, 0, 0, 0.08);
  animation: slideUpModal .25s cubic-bezier(0.16, 1, 0.3, 1);
}
.quick-import-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.copy-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #111827;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeInToast .2s ease;
}
@keyframes fadeInToast {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Indian Dietary Badges (Veg, Non-Veg, Egg) ---------- */
.dietary-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border: 1.5px solid;
  border-radius: 3px;
  background: #ffffff;
  flex-shrink: 0;
  vertical-align: middle;
  margin-right: 6px;
}
.dietary-badge::after {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.dietary-badge.is-veg {
  border-color: #278838;
}
.dietary-badge.is-veg::after {
  background-color: #278838;
}
.dietary-badge.is-non-veg {
  border-color: #a82d23;
}
.dietary-badge.is-non-veg::after {
  background-color: #a82d23;
}
.dietary-badge.is-egg {
  border-color: #d97706;
}
.dietary-badge.is-egg::after {
  background-color: #d97706;
}

/* Dietary Selector in Editor */
.dietary-select-group {
  display: flex;
  width: 100%;
  gap: 6px;
  background: var(--bg-soft);
  padding: 4px;
  border-radius: 8px;
  box-sizing: border-box;
}
.dietary-select-btn {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid transparent;
  background: transparent;
  padding: 6px 4px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  box-sizing: border-box;
  transition: all 0.12s ease;
}
.dietary-select-btn.active {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Item Availability / Sold Out */
.public-card.is-unavailable {
  opacity: 0.65;
  filter: grayscale(0.2);
}
.sold-out-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-muted);
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Customer Private Feedback & Dialog Sheets */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInModal .2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal-sheet {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg, 28px);
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  width: 100%;
  padding: 32px 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22), 0 4px 16px rgba(0, 0, 0, 0.05);
  position: relative;
  animation: slideUpModal .25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUpModal {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #f5f5f7;
  font-size: 1.15rem;
  cursor: pointer;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all .15s ease;
}
.modal-close-btn:hover {
  background: #e5e5ea;
  color: var(--text);
  transform: scale(1.05);
}
.star-rating {
  display: flex;
  gap: 10px;
  font-size: 2rem;
  margin-bottom: 14px;
  cursor: pointer;
  user-select: none;
}
.star-rating span {
  color: var(--border);
  transition: color .15s ease;
}
.star-rating span.active, .star-rating span.hover {
  color: #f59e0b;
}

/* ==========================================================================
   Table Order Pad (Shortlist / Show-to-Waiter Feature)
   ========================================================================== */

/* Dish Card Bottom Row & Add Button / Stepper */
.card-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 4px;
  min-height: 26px;
}
.card-action-slot {
  display: flex;
  align-items: center;
  margin-left: auto;
}
.order-add-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  background: var(--surface);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s ease;
  user-select: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  white-space: nowrap;
}
.order-add-btn:hover {
  background: var(--accent-soft);
}
.order-add-btn:active {
  transform: scale(0.95);
}
.order-add-btn.has-qty {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}
.order-stepper {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  height: 25px;
  background: var(--surface);
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.order-stepper .stepper-btn {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s ease;
  padding: 0;
  user-select: none;
}
.order-stepper .stepper-btn:hover {
  background: var(--accent-soft);
}
.order-stepper .stepper-count {
  min-width: 18px;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text);
  padding: 0 2px;
}

@media (max-width: 480px) {
  .order-add-btn {
    height: 23px;
    padding: 0 8px;
    font-size: 0.72rem;
  }
  .order-stepper {
    height: 23px;
  }
  .order-stepper .stepper-btn {
    width: 22px;
    height: 22px;
    font-size: 0.88rem;
  }
  .order-stepper .stepper-count {
    min-width: 16px;
    font-size: 0.72rem;
  }
}

/* Floating Bottom Order Pad Bar (Apple Dynamic Island Capsule) */
.order-pad-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  width: calc(100% - 24px);
  max-width: 480px;
  z-index: 60;
  background: rgba(29, 29, 31, 0.94);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: #ffffff;
  border-radius: 999px;
  padding: 8px 10px 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all .28s cubic-bezier(0.16, 1, 0.3, 1);
  animation: slideUpOrderBar 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUpOrderBar {
  from { transform: translateX(-50%) translateY(40px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}
.order-pad-bar.hidden {
  display: none !important;
}
.order-pad-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.order-pad-badge {
  background: var(--accent);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  min-width: 22px;
  text-align: center;
}
.order-pad-meta {
  display: flex;
  flex-direction: column;
}
.order-pad-meta .title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
}
.order-pad-meta .sub {
  font-size: 0.74rem;
  opacity: 0.85;
}
.order-pad-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, background .15s ease;
}
.order-pad-cta-btn:hover {
  background: #f3f0ea;
  transform: translateY(-1px);
}
body.has-order-bar {
  padding-bottom: 76px;
}
.has-order-bar .floating-jump-btn {
  bottom: 84px !important;
}

/* Empty Search State & Filter Sync */
.empty-search-state {
  text-align: center;
  padding: 50px 16px;
  color: var(--text-muted);
}
.empty-search-state.hidden {
  display: none !important;
}
.menu-nav a.is-filtered-out {
  display: none !important;
}

/* Order Pad List in Modal */
.order-pad-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 45vh;
  overflow-y: auto;
  margin: 14px 0;
  padding-right: 2px;
}
.order-pad-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-soft);
  border-radius: 12px;
}
.order-pad-row-info {
  flex: 1;
  min-width: 0;
}
.order-pad-row-info .dish-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.order-pad-row-info .dish-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.order-pad-row-stepper {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.order-pad-row-stepper button {
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.order-pad-row-stepper span {
  font-size: 0.82rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}
.order-pad-summary-box {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 6px;
}

/* Portion Size Picker Sheet */
.size-picker-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.size-picker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-soft);
}
.size-picker-name {
  font-weight: 600;
  font-size: 0.9rem;
}
.size-picker-price {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.88rem;
}

/* Waiter View Clean High-Contrast Screen */
.waiter-view-card {
  background: #141210;
  color: #ffffff;
  border-radius: 16px;
  padding: 20px;
  margin: 14px 0 10px;
}
.waiter-view-header {
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 10px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.waiter-view-header h4 {
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  margin: 0;
  color: #ffffff;
}
.waiter-view-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 48vh;
  overflow-y: auto;
}
.waiter-view-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 1.05rem;
  line-height: 1.35;
}
.waiter-view-item .qty-tag {
  background: #ffffff;
  color: #141210;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 2px 7px;
  border-radius: 6px;
  flex-shrink: 0;
}
.waiter-view-total-bar {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255,255,255,0.2);
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 700;
  color: #e5e5e5;
}

/* ==========================================================================
   High-Speed Skeleton Loading Animations for Public Menu
   ========================================================================== */
@keyframes shimmerMove {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton-shimmer {
  background: linear-gradient(90deg, var(--bg-soft) 25%, rgba(255, 255, 255, 0.65) 50%, var(--bg-soft) 75%);
  background-size: 200% 100%;
  animation: shimmerMove 1.5s infinite linear;
}

.skeleton-card {
  pointer-events: none;
  border-color: var(--border);
  min-height: 104px;
  background: var(--surface);
  display: flex !important;
}

.skeleton-card .skeleton-img-box {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  margin: 12px;
  flex-shrink: 0;
}

.skeleton-card .skeleton-body-box {
  flex: 1;
  padding: 14px 14px 14px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.skeleton-bar {
  height: 12px;
  border-radius: 4px;
}

.skeleton-bar-title {
  width: 55%;
  height: 16px;
  border-radius: 6px;
}

.skeleton-bar-desc {
  width: 80%;
  height: 10px;
  border-radius: 4px;
}

.skeleton-bar-price {
  width: 35%;
  height: 14px;
  border-radius: 4px;
  margin-top: 2px;
}

/* ==========================================================================
   Food Icon Picker Modal & Grid (Apple HIG Sheet Dialog)
   ========================================================================== */
.icon-picker-sheet {
  max-width: 640px;
  width: 95%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: #ffffff;
  border-radius: var(--radius-lg, 28px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
  position: relative;
  animation: slideUpModal .25s cubic-bezier(0.16, 1, 0.3, 1);
}

.icon-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.icon-picker-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  color: var(--text);
}

.icon-picker-subtitle {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0;
}

.icon-picker-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.icon-search-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.icon-search-wrap .icon-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  pointer-events: none;
  opacity: 0.6;
}

.icon-search-input {
  width: 100%;
  padding: 10px 36px 10px 34px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  background: #f5f5f7;
  color: var(--text);
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.icon-search-input:focus {
  outline: none;
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.icon-clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.06);
  border: none;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.icon-clear-btn:hover {
  background: rgba(0, 0, 0, 0.12);
  color: var(--text);
}

.icon-picker-scroll {
  flex: 1;
  overflow-y: auto;
  min-height: 240px;
  max-height: 380px;
  padding: 6px 2px 12px;
  margin-bottom: 14px;
}

.icon-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 12px;
}

.icon-picker-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 6px 10px;
  background: radial-gradient(circle at 50% 45%, #ffffff 0%, #f6f6f9 100%);
  border: 1.5px solid rgba(0, 0, 0, 0.05);
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  user-select: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.icon-picker-item:hover,
.icon-picker-item:focus-visible {
  border-color: rgba(0, 113, 227, 0.35);
  background: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.icon-picker-item.is-selected {
  border-color: var(--accent);
  background: rgba(0, 113, 227, 0.06);
  box-shadow: 0 0 0 2px var(--accent);
  font-weight: 600;
}

.icon-picker-thumb {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.06));
  pointer-events: none;
  transition: transform 0.2s ease;
}

.icon-picker-item:hover .icon-picker-thumb {
  transform: scale(1.08);
}

.icon-picker-name {
  font-size: 0.72rem;
  color: var(--text);
  line-height: 1.2;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 100%;
  pointer-events: none;
}

.icon-picker-empty {
  text-align: center;
  padding: 40px 14px;
  color: var(--text-muted);
}

.icon-picker-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

/* ==========================================================================
   Dish Tile Media Box & Vector Icon Display (Smart Edit & View Mode)
   ========================================================================== */
.tile-img-wrap.has-vector-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  aspect-ratio: 1.35/1;
}

.tile-img-wrap img.dish-vector-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
}

.tile-img-wrap img.dish-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dish-media-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.dish-media-preview {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
}

.dish-media-preview.is-vector img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.08));
}

.dish-media-preview.is-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dish-media-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dish-media-badge {
  font-size: 0.72rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
}

.dish-media-badge.is-icon {
  color: var(--accent);
}

.dish-media-badge.is-upload {
  color: #2563eb;
}

.dish-media-btn-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Icon Picker Category Pills & Enhancements
   ========================================================================== */
.icon-filter-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  margin-bottom: 10px;
  scrollbar-width: thin;
}

.icon-filter-pill {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.icon-filter-pill:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--accent);
}

.icon-filter-pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.icon-picker-item {
  position: relative;
}

.icon-picker-check {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Modern Restaurant Command Center & KPI Hub
   ========================================================================== */
.rest-hero-banner {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius-lg, 28px);
  padding: 24px 28px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02), 0 10px 28px rgba(0, 0, 0, 0.03);
}

.rest-hero-main {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 260px;
}

.rest-hero-avatar {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #ffffff 0%, #f6f6f9 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.rest-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rest-hero-meta h1 {
  font-size: 1.55rem;
  margin: 0 0 6px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1.2;
}

.rest-hero-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
  animation: pulse-dot-anim 2s infinite;
}

.pulse-dot.is-orange {
  background: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

@keyframes pulse-dot-anim {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text);
}

.status-pill.is-live {
  background: #e8f5e9;
  color: #1b5e20;
}

.status-pill.is-draft {
  background: #fff8e1;
  color: #b78103;
}

.rest-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* 6-Metric KPI Command Row */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.kpi-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 22px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 113, 227, 0.25);
}

.kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.kpi-icon {
  font-size: 1.15rem;
}

.kpi-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-soft);
  color: var(--text-muted);
}

.kpi-card.is-accent .kpi-tag {
  background: var(--accent-soft, rgba(16, 185, 129, 0.12));
  color: var(--accent);
}

.kpi-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 4px;
  letter-spacing: -0.03em;
}

.kpi-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.kpi-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Physical Stand Showcase */
.qr-showcase-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f6f6f9 100%);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 16px;
}

.qr-code-frame {
  background: #ffffff;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  display: inline-block;
  line-height: 0;
}

.nfc-puck-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  margin-top: 14px;
}

/* ==========================================================================
   Admin Restaurant Analytics Modal & Progress Bar
   ========================================================================== */
.analytics-modal-box {
  max-width: 640px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 20px 48px rgba(0,0,0,0.2);
}

.analytics-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.traffic-breakdown-card {
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 18px;
}

.traffic-bar {
  display: flex;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0,0,0,0.08);
  margin: 12px 0 10px;
}

.traffic-bar-seg {
  height: 100%;
  transition: width 0.3s ease;
}

.traffic-bar-seg.is-qr { background: #10b981; }
.traffic-bar-seg.is-nfc { background: #3b82f6; }
.traffic-bar-seg.is-direct { background: #9ca3af; }

.traffic-legend {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.traffic-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}

/* ==========================================================================
   Table Tag (Unobtrusive Footer Display & Waiter View)
   ========================================================================== */
.footer-table-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 2px 9px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.footer-table-chip svg {
  color: var(--accent);
}

.waiter-table-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  color: #111827;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.03em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Promotional & Announcement Banner
   ========================================================================== */
.promo-banner-container {
  margin-top: 14px;
  margin-bottom: 6px;
  animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.promo-banner-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm, 12px);
  padding: 10px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.promo-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.promo-banner-text {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
  flex: 1;
}

@media (max-width: 480px) {
  .promo-banner-container {
    margin-top: 10px;
    margin-bottom: 4px;
  }
  .promo-banner-card {
    padding: 8px 12px;
    gap: 8px;
  }
  .promo-banner-badge {
    font-size: 0.66rem;
    padding: 2px 7px;
  }
  .promo-banner-text {
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   Featured / Chef's Choice / Today's Specials
   ========================================================================== */
.featured-specials-section {
  background: linear-gradient(180deg, var(--bg-soft) 0%, transparent 100%);
  border-bottom: 1px dashed var(--border);
  padding-bottom: 20px !important;
  margin-bottom: 12px;
}

.featured-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}

.featured-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 5px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
  vertical-align: middle;
}

/* Editor Star Feature Button on Tiles */
.star-feature-btn {
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  padding: 4px 6px;
  font-size: 1.05rem;
  line-height: 1;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.star-feature-btn:hover {
  color: #f59e0b;
  background: var(--bg-soft);
  transform: scale(1.1);
}

.star-feature-btn.is-active {
  color: #f59e0b;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.tile-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.66rem;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

.featured-specials-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 3px 10px;
  border-radius: 999px;
  cursor: default;
}

/* ==========================================================================
   High-Contrast Unified Waiter & Order Pad Card
   ========================================================================== */
.waiter-sheet-container {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.waiter-dish-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.waiter-dish-info {
  flex: 1;
  min-width: 0;
}

.waiter-dish-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.94rem;
  color: #ffffff;
  line-height: 1.3;
  flex-wrap: wrap;
}

.waiter-dish-name {
  font-weight: 600;
  word-break: break-word;
}

.waiter-size-tag {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

.waiter-dish-price {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 3px;
}

.waiter-dish-price strong {
  color: #ffffff;
}

.waiter-stepper {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 2px;
  flex-shrink: 0;
}

.waiter-stepper button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  padding: 0;
  line-height: 1;
}

.waiter-stepper button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.waiter-qty-num {
  min-width: 22px;
  text-align: center;
  font-weight: 700;
  font-size: 0.88rem;
  color: #ffffff;
}

.waiter-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.waiter-action-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.waiter-action-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.waiter-action-btn.is-danger {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.25);
  background: rgba(248, 113, 113, 0.08);
}

.waiter-action-btn.is-danger:hover {
  background: rgba(248, 113, 113, 0.2);
}

.floating-jump-btn {
  display: none !important;
}




/* ==========================================================================
   Tabletop Stands & Pricing (Clean, Professional, Minimal UI)
   ========================================================================== */
.stands-simple-hero {
  padding: 56px 0 32px;
  text-align: center;
}
.stands-simple-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 12px auto 14px;
  color: var(--text);
}
.stands-simple-hero p.lead {
  max-width: 600px;
  margin: 0 auto 28px;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Category Filter Bar */
.stands-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 auto 36px;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.filter-btn:hover {
  border-color: rgba(0, 113, 227, 0.3);
  color: var(--text);
}
.filter-btn.active {
  background: #1d1d1f;
  color: #ffffff;
  border-color: #1d1d1f;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Stands Simple Grid */
.stands-simple-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}
@media (max-width: 768px) {
  .stands-simple-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Stand Card (Apple & Samsung Inspired Architecture) */
.stand-card-simple {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02), 0 10px 28px rgba(0, 0, 0, 0.03);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  position: relative;
}
.stand-card-simple:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 113, 227, 0.3);
}

/* Stage & Photo Preview Trigger */
.stand-img-box-simple {
  background: radial-gradient(circle at 50% 45%, #ffffff 0%, #f6f6f9 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 250px;
  position: relative;
  cursor: zoom-in;
  overflow: hidden;
}
.stand-img-box-simple img {
  max-height: 200px;
  max-width: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.08));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.stand-card-simple:hover .stand-img-box-simple img {
  transform: scale(1.05);
}

/* Floating Quick View Pill */
.stand-zoom-pill {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  font-size: 0.74rem;
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: -0.01em;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.stand-card-simple:hover .stand-zoom-pill {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 768px) {
  .stand-zoom-pill {
    opacity: 0.95;
    transform: translateX(-50%) translateY(0);
    padding: 5px 12px;
    font-size: 0.7rem;
  }
}

.stand-body-simple {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.stand-eyebrow-simple {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 4px;
}

.stand-head-simple {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.stand-name-simple {
  font-size: 1.2rem;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0;
  line-height: 1.28;
}
.stand-pill-simple {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: #f5f5f7;
  color: #515154;
  border: 1px solid rgba(0, 0, 0, 0.06);
  white-space: nowrap;
  flex-shrink: 0;
}
.stand-pill-simple.pill-coming-soon {
  background: rgba(0, 113, 227, 0.08);
  color: var(--accent);
  border-color: rgba(0, 113, 227, 0.2);
}

.stand-summary-simple {
  font-size: 0.86rem;
  color: #6e6e73;
  line-height: 1.45;
  margin: 0 0 16px;
}

/* Quick Specs Chips Grid (Scan in 2 Seconds) */
.stand-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.stand-spec-chip {
  background: #fbfbfd;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.spec-k {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #86868b;
}
.spec-v {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1d1d1f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Prices & Options Section */
.stand-prices-simple {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  margin-bottom: 18px;
  background: #f5f5f7;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  padding: 12px 14px;
}
.stand-price-row-simple {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.stand-opt-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.stand-size-name {
  font-size: 0.86rem;
  color: #1d1d1f;
  font-weight: 600;
}
.stand-opt-detail {
  font-size: 0.72rem;
  color: #86868b;
}
.stand-cost-col {
  text-align: right;
  flex-shrink: 0;
}
.stand-size-cost {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -0.02em;
}
.stand-size-cost small {
  font-size: 0.74rem;
  font-weight: 500;
  color: #86868b;
}
.badge-coming-soon-tag {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #ffffff;
  color: var(--accent);
  border: 1px solid rgba(0, 113, 227, 0.16);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

/* Card Actions Row */
.stand-actions-row {
  display: flex;
  gap: 8px;
}
.btn-stand-preview {
  padding: 0 14px;
  height: 42px;
  border-radius: 999px;
  background: #f5f5f7;
  color: #1d1d1f;
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.btn-stand-preview:hover {
  background: #e8e8ed;
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--accent);
}
.stand-order-btn-simple {
  flex: 1;
  height: 42px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}

/* ==========================================================================
   Stand Large Image Preview Modal (Apple / Samsung Quick Look Lightbox)
   ========================================================================== */
.stand-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.stand-preview-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.stand-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.stand-modal-dialog {
  position: relative;
  z-index: 2;
  width: 92%;
  max-width: 880px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 32px;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.32);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.stand-preview-modal.is-open .stand-modal-dialog {
  transform: scale(1);
}
.stand-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(245, 245, 247, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1d1d1f;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(12px);
}
.stand-modal-close:hover {
  background: #1d1d1f;
  color: #ffffff;
  transform: scale(1.05);
}
.stand-modal-content {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  overflow-y: auto;
  max-height: 90vh;
}
@media (max-width: 768px) {
  .stand-modal-content {
    grid-template-columns: 1fr;
  }
}
.stand-modal-stage {
  background: radial-gradient(circle at 50% 45%, #ffffff 0%, #f6f6f9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 24px;
  min-height: 340px;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}
.stand-modal-stage img {
  max-height: 360px;
  max-width: 95%;
  object-fit: contain;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.12));
}
@media (max-width: 768px) {
  .stand-modal-stage {
    min-height: 260px;
    padding: 24px;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
  .stand-modal-stage img {
    max-height: 240px;
  }
}
.stand-modal-info {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}
.stand-modal-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 4px;
}
.stand-modal-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #1d1d1f;
  margin: 0 0 10px;
  line-height: 1.25;
}
.stand-modal-summary {
  font-size: 0.9rem;
  color: #6e6e73;
  line-height: 1.5;
  margin: 0 0 18px;
}
.stand-modal-specs-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.stand-modal-spec-item {
  background: #fbfbfd;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 10px 12px;
}
.stand-modal-spec-item .k {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #86868b;
  margin-bottom: 2px;
}
.stand-modal-spec-item .v {
  font-size: 0.86rem;
  font-weight: 600;
  color: #1d1d1f;
}
.stand-modal-pricing-box {
  background: #f5f5f7;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stand-modal-actions {
  display: flex;
  gap: 10px;
}
.stand-modal-cta {
  flex: 1;
  height: 46px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}

/* ==========================================================================
   Preview Mode Topbar & Floating Owner Widget
   ========================================================================== */
.preview-topbar {
  position: sticky;
  top: 0;
  z-index: 95;
  background: rgba(29, 29, 31, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.preview-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.preview-topbar-badge {
  background: #f59e0b;
  color: #1d1d1f;
  font-weight: 700;
  font-size: 0.74rem;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: -0.01em;
}
.preview-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.preview-topbar-actions .btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}
.preview-topbar-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #ffffff;
}
.preview-topbar-actions .btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
}
.preview-topbar-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.footer-table-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-soft);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
}

.modal-google-prompt {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.84rem;
  color: #92400e;
  font-weight: 600;
  animation: fadeInGooglePrompt 0.2s ease;
}
@keyframes fadeInGooglePrompt {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Table Stand Cards & Tag Code Pills
   ========================================================================== */
.table-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius-sm, 14px);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.table-item-card:hover {
  border-color: rgba(0, 113, 227, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.tag-code-pill {
  display: inline-flex;
  align-items: center;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(0, 113, 227, 0.08);
  color: var(--accent);
  border: 1px solid rgba(0, 113, 227, 0.16);
}

/* ==========================================================================
   Admin Hardware & QR Tag Inventory Hub
   ========================================================================== */
.inv-selection-bar {
  background: rgba(29, 29, 31, 0.94);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: #ffffff;
  border-radius: 999px;
  padding: 8px 14px 8px 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  gap: 12px;
  animation: slideUpInvBar 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUpInvBar {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.inv-selection-bar .btn-light {
  background: #ffffff;
  color: #1d1d1f;
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 600;
  font-size: 0.8rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.inv-selection-bar .btn-light:hover {
  background: #f5f5f7;
  transform: translateY(-1px);
}
.inv-group-card {
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 18px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}
.inv-group-header {
  background: var(--bg-soft);
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.inv-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
}
.inv-group-body {
  display: flex;
  flex-direction: column;
}
.inv-tag-row {
  display: grid;
  grid-template-columns: 24px 90px 1fr 80px 110px;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 0.84rem;
  transition: background 0.15s ease;
}
.inv-tag-row:last-child {
  border-bottom: none;
}
.inv-tag-row:hover {
  background: rgba(0, 0, 0, 0.015);
}
.inv-tag-row.selected {
  background: rgba(0, 113, 227, 0.05);
}
@media (max-width: 600px) {
  .inv-tag-row {
    grid-template-columns: 24px 80px 1fr auto;
    gap: 8px;
    padding: 8px 12px;
  }
}

/* ==========================================================================
   QuickTera 5-Offering Bento Suite & Modern Showcase
   ========================================================================== */
.offerings-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius-lg, 28px);
  padding: 34px 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02), 0 10px 28px rgba(0, 0, 0, 0.03);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 113, 227, 0.3);
}

.bento-card.col-7 { grid-column: span 7; }
.bento-card.col-5 { grid-column: span 5; }
.bento-card.col-4 { grid-column: span 4; }
.bento-card.col-6 { grid-column: span 6; }
.bento-card.col-12 { grid-column: span 12; }

@media (max-width: 960px) {
  .bento-card.col-7,
  .bento-card.col-5,
  .bento-card.col-4,
  .bento-card.col-6 {
    grid-column: span 12;
  }
}

.bento-card-header {
  margin-bottom: 20px;
}

.bento-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(0, 113, 227, 0.12);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.bento-card-badge.gold {
  color: #b45309;
  background: #fef3c7;
  border-color: #fde68a;
}

.bento-card-badge.green {
  color: #15803d;
  background: #dcfce7;
  border-color: #bbf7d0;
}

.bento-card-badge.purple {
  color: #6b21a8;
  background: #f3e8ff;
  border-color: #e9d5ff;
}

.bento-card h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.25;
}

.bento-card p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.bento-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}

.bento-pill {
  font-size: 0.74rem;
  font-weight: 600;
  color: #1d1d1f;
  background: #f5f5f7;
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 4px 10px;
  border-radius: 999px;
}

.bento-visual-stage {
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f6f6f9 100%);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  overflow: hidden;
  min-height: 190px;
}

.bento-visual-stage img {
  max-height: 160px;
  max-width: 90%;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.08));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover .bento-visual-stage img {
  transform: scale(1.06);
}

/* Trust corporate pill */
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 0.84rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  text-align: center;
}

.trust-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34c759;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(52, 199, 89, 0.2);
}

/* Quick Interactive Enquiry Box */
.enquiry-box {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius-lg, 28px);
  padding: 34px 30px;
  box-shadow: var(--shadow);
}

.enquiry-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.enquiry-box p {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.enquiry-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.enquiry-check-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.enquiry-check-pill input {
  width: auto;
  margin: 0;
  cursor: pointer;
}

.enquiry-check-pill.is-checked {
  background: #e8f2fd;
  border-color: #0071e3;
  color: #0071e3;
  font-weight: 600;
}

/* ==========================================================================
   Editorial Showcases, Split Stories & Large Image Stages
   ========================================================================== */

/* Large Cinematic Image Stage */
.media-stage-card {
  position: relative;
  background: radial-gradient(circle at 50% 45%, #ffffff 0%, #f6f6f9 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg, 28px);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03), 0 16px 44px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.media-stage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 113, 227, 0.3);
}

.media-stage-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.media-stage-card:hover img {
  transform: scale(1.03);
}

/* Designed Empty Placeholder (Blueprint HIG Style) */
.img-placeholder-stage {
  width: 100%;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 44px 28px;
  text-align: center;
  background: radial-gradient(circle at 50% 40%, #ffffff 0%, #f4f4f7 100%);
  border: 1.5px dashed rgba(0, 0, 0, 0.14);
  border-radius: var(--radius-lg, 28px);
  position: relative;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.img-placeholder-stage.hero-placeholder {
  min-height: 480px;
  border-radius: var(--radius-lg, 28px);
  margin-top: 48px;
}

.img-placeholder-stage:hover {
  border-color: var(--accent);
  background: radial-gradient(circle at 50% 40%, #ffffff 0%, #f0f4fa 100%);
}

.placeholder-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
  transition: transform 0.2s ease;
}

.img-placeholder-stage:hover .placeholder-icon-wrap {
  transform: scale(1.08);
}

.placeholder-size-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: #1d1d1f;
  color: #ffffff;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.placeholder-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 6px;
}

.placeholder-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.55;
  margin-bottom: 14px;
}

.placeholder-filename-chip {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.74rem;
  background: rgba(0, 113, 227, 0.08);
  color: var(--accent);
  border: 1px solid rgba(0, 113, 227, 0.2);
  padding: 4px 12px;
  border-radius: 6px;
  display: inline-block;
}

/* Split-Screen Feature Story Showcase (Apple iPhone / iPad style) */
.feature-story-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  margin-bottom: 96px;
}

.feature-story-row:last-child {
  margin-bottom: 32px;
}

.feature-story-row.reversed {
  direction: rtl;
}

.feature-story-row.reversed > * {
  direction: ltr;
}

@media (max-width: 920px) {
  .feature-story-row {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 64px;
  }
  .feature-story-row.reversed {
    direction: ltr;
  }
}

.story-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.story-eyebrow.gold { color: #b45309; }
.story-eyebrow.green { color: #15803d; }
.story-eyebrow.purple { color: #6b21a8; }

.story-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}

.story-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.story-specs-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.story-spec-card {
  background: var(--bg-soft);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 14px;
  padding: 12px 14px;
}

.story-spec-card .k {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.story-spec-card .v {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

/* Step Card Image Slots */
.step-media-slot {
  width: 100%;
  height: 180px;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 45%, #ffffff 0%, #f6f6f9 100%);
  border: 1px dashed rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 14px;
  text-align: center;
  box-sizing: border-box;
}

.step-media-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Context Environments 4-Card Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}

@media (max-width: 920px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

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

.gallery-card {
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.07);
}

.gallery-stage {
  min-height: 220px;
  background: radial-gradient(circle at 50% 45%, #ffffff 0%, #f6f6f9 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 20px 16px;
  text-align: center;
  position: relative;
}

.gallery-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-meta {
  padding: 16px 18px;
}

.gallery-meta strong {
  display: block;
  font-size: 0.94rem;
  color: var(--text);
  margin-bottom: 4px;
}

.gallery-meta span {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: block;
}

/* ==========================================================================
   QuickTera Reference Redesign Styles (Exact match to Brand Specification)
   ========================================================================== */

:root {
  --brand-blue: #0b2e88;
  --brand-blue-hover: #082163;
  --brand-orange: #f97316;
  --brand-orange-hover: #ea580c;
  --brand-dark: #0f172a;
  --brand-slate: #475569;
  --brand-muted: #64748b;
  --brand-border: #e2e8f0;
  --brand-border-subtle: #f1f5f9;
  --brand-bg-soft: #f8fafc;
}

/* Header & Brand Identity */
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
}
.brand-logo-img {
  height: 32px;
  width: auto;
  display: block;
}
.btn-nav-contact {
  background: var(--brand-blue);
  color: #ffffff !important;
  border-radius: 9999px;
  padding: 8px 18px;
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(11, 46, 136, 0.2);
  transition: all 0.2s ease;
}
.btn-nav-contact:hover {
  background: var(--brand-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(11, 46, 136, 0.3);
}
.nav-login-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--brand-slate);
  padding: 8px 14px;
  border-radius: 9999px;
  text-decoration: none !important;
  transition: all 0.15s ease;
}
.nav-login-link:hover {
  color: var(--brand-blue);
  background: var(--brand-bg-soft);
}

/* Reference Hero Showcase Section */
.hero-showcase-section {
  background: #ffffff;
  padding: 48px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero-showcase-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}
.hero-showcase-content {
  max-width: 580px;
}
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--brand-muted);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}
.hero-headline {
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--brand-dark);
  margin-bottom: 20px;
}
.hero-subheadline {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  line-height: 1.55;
  color: var(--brand-slate);
  margin-bottom: 32px;
  max-width: 500px;
}
.hero-btn-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-brand-primary {
  background: var(--brand-blue);
  color: #ffffff !important;
  border-radius: 9999px;
  padding: 12px 26px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(11, 46, 136, 0.22);
  transition: all 0.2s ease;
  border: 1px solid transparent;
  text-decoration: none !important;
}
.btn-brand-primary:hover {
  background: var(--brand-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(11, 46, 136, 0.32);
}
.btn-brand-outline {
  background: #ffffff;
  color: var(--brand-dark) !important;
  border: 1.5px solid #cbd5e1;
  border-radius: 9999px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  text-decoration: none !important;
}
.btn-brand-outline:hover {
  background: var(--brand-bg-soft);
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.hero-showcase-visual {
  display: flex;
  justify-content: center;
}
.hero-stand-photo {
  width: 100%;
  max-width: 440px;
  height: auto;
  display: block;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 16px 44px -10px rgba(15, 23, 42, 0.1), 0 4px 16px rgba(0, 0, 0, 0.03);
}

/* Quick Features 4-Item Strip */
.quick-features-bar {
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  padding: 24px 0;
}
.quick-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.quick-feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.quick-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.quick-feature-meta strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}
.quick-feature-meta span {
  display: block;
  font-size: 0.8rem;
  color: var(--brand-muted);
  line-height: 1.35;
}

/* Solutions Section (Reference Recreation) */
.solutions-section {
  padding: 72px 0 80px;
  background: #ffffff;
}
.solutions-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.eyebrow-tracked {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--brand-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}
.solutions-main-title {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand-dark);
  margin-bottom: 12px;
}
.solutions-subtitle {
  font-size: 1.05rem;
  color: var(--brand-muted);
  line-height: 1.5;
  margin: 0;
}

.solutions-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.ref-solution-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 18px;
  text-decoration: none !important;
  color: inherit;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.ref-solution-card:hover {
  transform: translateY(-4px);
}
.ref-solution-img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.ref-solution-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.ref-solution-card:hover .ref-solution-img-box img {
  transform: scale(1.04);
}
.ref-solution-body {
  padding-top: 14px;
}
.ref-solution-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.ref-solution-head h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 0;
  letter-spacing: -0.015em;
}
.ref-circle-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--brand-dark);
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.ref-solution-card:hover .ref-circle-arrow {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
  transform: translateX(2px);
}
.ref-solution-body p {
  font-size: 0.88rem;
  color: var(--brand-muted);
  line-height: 1.45;
  margin: 0;
}

/* Quick CTA Band */
.quick-cta-band {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 60px 0;
  text-align: center;
}
.quick-cta-band h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand-dark);
  margin-bottom: 10px;
}
.quick-cta-band p {
  font-size: 1.02rem;
  color: var(--brand-muted);
  max-width: 520px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

/* ==========================================================================
   Mobile-First Responsive Rules (Zero Clipping, Flawless Header & Grids)
   ========================================================================== */

@media (max-width: 992px) {
  .hero-showcase-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .hero-showcase-content {
    max-width: 100%;
    margin: 0 auto;
  }
  .hero-subheadline {
    margin: 0 auto 28px;
  }
  .hero-btn-row {
    justify-content: center;
  }
  .hero-stand-photo {
    max-width: 400px;
    margin: 0 auto;
  }
  .quick-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .solutions-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 760px) {
  /* Fix Mobile Header: strictly 1 row, no wrapping */
  .site-header .nav-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    padding: 12px 0 !important;
    gap: 8px !important;
  }
  .site-header .brand-link {
    flex-shrink: 0;
  }
  .site-header .brand-logo-img {
    height: 28px !important;
  }
  .site-header .nav-actions {
    flex-basis: auto !important;
    order: unset !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
  .site-header .btn-nav-contact {
    padding: 7px 14px !important;
    font-size: 0.8rem !important;
    white-space: nowrap !important;
  }
  .site-header .btn-nav-contact svg {
    width: 14px;
    height: 14px;
  }
  .site-header .nav-login-link {
    display: none !important;
  }
  .site-header .nav-toggle {
    display: block !important;
    padding: 6px 4px;
  }
  .site-header .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
    padding: 16px 20px;
    display: none;
    flex-direction: column;
    gap: 12px;
    z-index: 100;
  }
  .site-header .nav-links.open {
    display: flex !important;
  }
  .site-header .nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--brand-dark);
    padding: 8px 12px;
    border-radius: 8px;
    display: block;
  }
  .site-header .nav-links a:hover {
    background: var(--brand-bg-soft);
  }
}

@media (max-width: 640px) {
  .hero-showcase-section {
    padding: 28px 0 36px;
  }
  .hero-headline {
    font-size: clamp(2rem, 7.5vw, 2.5rem);
    line-height: 1.1;
    margin-bottom: 14px;
  }
  .hero-subheadline {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 auto 20px;
  }
  .hero-stand-photo {
    max-width: 340px;
    border-radius: 16px;
  }

  /* 4-item strip on mobile: neat 2x2 grid */
  .quick-features-bar {
    padding: 16px 0;
  }
  .quick-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .quick-feature-item {
    padding: 10px 8px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    gap: 8px;
  }
  .quick-feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }
  .quick-feature-icon svg {
    width: 16px;
    height: 16px;
  }
  .quick-feature-meta strong {
    font-size: 0.8rem;
  }
  .quick-feature-meta span {
    font-size: 0.68rem;
    display: block;
    line-height: 1.25;
  }

  /* 4 Solutions cards on mobile: neat 2x2 grid */
  .solutions-section {
    padding: 44px 0 52px;
  }
  .solutions-header {
    margin-bottom: 28px;
  }
  .solutions-main-title {
    font-size: 1.85rem;
  }
  .solutions-subtitle {
    font-size: 0.9rem;
  }
  .solutions-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 10px;
  }
  .ref-solution-card {
    border-radius: 14px;
  }
  .ref-solution-img-box {
    border-radius: 12px;
  }
  .ref-solution-body {
    padding-top: 8px;
  }
  .ref-solution-head h3 {
    font-size: 0.88rem;
  }
  .ref-circle-arrow {
    width: 22px;
    height: 22px;
    font-size: 0.74rem;
  }
  .ref-solution-body p {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .quick-cta-band {
    padding: 44px 0;
  }
}

@media (max-width: 420px) {
  .hero-btn-row {
    flex-direction: column;
    width: 100%;
  }
  .hero-btn-row .btn {
    width: 100%;
    justify-content: center;
  }
}


.mobile-only-link { display: none; }
@media (max-width: 760px) { .mobile-only-link { display: block !important; } }
