@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink-900: #f8f8f8;      /* light text */
  --ink-800: #e5e5e6;
  --muted-600: #a7a7ab;
  --surface: #0f0f10;      /* dark base */
  --surface-sub: #161618;
  --card: #1d1d1f;
  --border: #292929;
  --primary: #9d9d9f;      /* grey primary like reference */
  --primary-strong: #6a6a6c;
  --accent-soft: rgba(157, 157, 159, 0.14);
  --success: #6cb3ff;
  --warning: #d28f4a;
  --danger: #d06262;
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 14px 38px rgba(0, 0, 0, 0.32);
}

.admin-auth {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 18px;
}

.admin-auth__card {
  width: min(420px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.admin-auth__head h1 {
  margin: 4px 0 6px;
  color: var(--ink-900);
}

.admin-auth__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted-600);
  font-size: 14px;
}

.form-input,
.form-select,
.form-textarea {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #121214;
  color: var(--ink-900);
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  outline: none;
}

.form-checkbox {
  width: 18px;
  height: 18px;
}

.checkbox-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.field-error,
.form-error {
  color: #f87171;
  font-size: 13px;
}

.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: #101012;
  border-right: 1px solid var(--border);
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  align-self: start;
}

.admin-brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.admin-brand h2 {
  margin: 4px 0 0;
  color: var(--ink-900);
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-nav__btn {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: transparent;
  padding: 12px 16px;
  color: var(--ink-900);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.admin-nav__btn.is-active {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.04);
}

.admin-sidebar__footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  bottom: 18px;
  padding-top: 12px;
  background: linear-gradient(180deg, rgba(16, 16, 18, 0) 0%, rgba(16, 16, 18, 0.9) 22%, rgba(16, 16, 18, 1) 100%);
}

.admin-main {
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.admin-page-head h1 {
  margin: 4px 0 0;
  color: var(--ink-900);
}

.admin-section {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.admin-section.is-active {
  display: flex;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.metric-card {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.metric-value {
  color: var(--ink-900);
  margin: 2px 0 0;
  font-size: 22px;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(320px, 3fr) minmax(230px, 2fr);
  gap: 16px;
}

.reports-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.chart-pair {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.chart-card {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 18px 14px 20px;
  max-width: 877px;
  width: 100%;
  overflow: hidden;
}

.chart-card.mini {
  min-height: 220px;
}

.chart-card.large {
  min-height: 360px;
  height: auto;
  max-height: none;
}

.chart-card__head {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  gap: 14px;
}

.chart-head__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.chart-head__controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.chart-period-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.chart-period-inline__label {
  font-size: 12px;
  color: var(--muted-600);
}

.chart-period__select {
  padding: 8px 12px;
  border-radius: 12px;
}

.chart-title {
  margin: 0;
  color: var(--ink-900);
}

.chart-card canvas {
  width: 100%;
  max-width: 877px;
  height: 260px !important;
  max-height: 260px;
}

.chart-card.large canvas {
  height: 290px !important;
  max-height: 290px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-flex;
  margin-right: 6px;
}

.dot--line {
  background: #a3e635;
}

.dot--bar {
  background: rgba(99, 102, 241, 1);
}

.dot--count {
  background: rgba(99, 102, 241, 1);
}
/* Telegram floating widget */
.tg-fab {
  position: fixed;
  top: auto;
  right: 18px;
  bottom: 24px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1f2937, #0b1220);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
  display: grid;
  place-items: center;
  z-index: 10050;
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-decoration: none;
  transform: translateZ(0);
}

.tg-fab__icon {
  width: 26px;
  height: 26px;
  fill: #2aabee;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.tg-fab__ring {
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  background: rgba(42, 171, 238, 0.18);
  opacity: 0.75;
  animation: tgPulse 1.8s ease-in-out infinite;
}

.tg-fab:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.tg-fab.is-disabled {
  background: linear-gradient(135deg, #3a3a3c, #222226);
  opacity: 0.82;
}

.tg-fab.is-disabled .tg-fab__ring {
  display: none;
}

.tg-fab.is-disabled:hover {
  transform: none;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
}

.tg-fab:focus-visible {
  outline: none;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.6),
    0 0 0 3px rgba(42, 171, 238, 0.35);
}

@keyframes tgPulse {
  0% { transform: scale(0.88); opacity: 0.7; }
  60% { transform: scale(1.12); opacity: 0.14; }
  100% { transform: scale(1.18); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .tg-fab { transition: none; }
  .tg-fab__ring { animation: none; }
}

.top-dishes-card {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 24px;
}

.top-dishes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.top-dishes li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dish-name {
  margin: 0;
  color: var(--ink-900);
}

.dish-pill {
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid var(--border);
}

.status-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  text-transform: capitalize;
}

.status-draft {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
}

.status-confirmed {
  background: rgba(163, 230, 53, 0.12);
  color: #a3e635;
}

.status-delivered {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
}

.status-cancelled {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

.table {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.table-head,
.table-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(90px, 1fr));
  gap: 8px;
  padding: 10px 14px;
  align-items: center;
}

.table.table--cols-4 .table-head,
.table.table--cols-4 .table-row {
  grid-template-columns: repeat(4, minmax(90px, 1fr));
}

.table.table--cols-3 .table-head,
.table.table--cols-3 .table-row {
  grid-template-columns: repeat(3, minmax(90px, 1fr));
}

.table.table--cols-6 .table-head,
.table.table--cols-6 .table-row {
  grid-template-columns: repeat(6, minmax(90px, 1fr));
}

.table--users .table-head,
.table--users .table-row {
  grid-template-columns: minmax(260px, 1.2fr) minmax(420px, 2fr);
}

.table--users .table-row {
  align-items: flex-start;
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--ink-900);
  font-weight: 700;
  letter-spacing: 0.4px;
}

.user-meta strong {
  display: block;
  color: var(--ink-900);
  line-height: 1.2;
}

.user-meta small {
  display: block;
  margin-top: 2px;
}

.recent-card {
  min-height: 256px;
  max-width: 877px;
  width: 100%;
}

.recent-card .table {
  max-height: 256px;
  display: flex;
  flex-direction: column;
}

.recent-card .table-head {
  flex: 0 0 auto;
}

.recent-card .table-body {
  flex: 1 1 auto;
  overflow-y: auto;
}

.table-head {
  background: #121214;
  font-weight: 600;
}

.table-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.table-row.empty-state {
  grid-template-columns: 1fr;
  text-align: center;
  color: var(--muted-600);
}

.table-row__actions {
  display: flex;
  gap: 6px;
}

.section-split {
  display: grid;
  grid-template-columns: minmax(320px, 3fr) minmax(280px, 2fr);
  gap: 18px;
}

.promo-form-card {
  align-self: flex-start;
}

.promo-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.promo-form__actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.staff-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.staff-form__label {
  font-size: 12px;
  color: var(--muted-600);
  margin-bottom: 6px;
}

.staff-form__checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0 12px;
}

.staff-form .form-select {
  width: 100%;
}

.staff-form .checkbox-field {
  color: var(--ink-900);
  font-size: 14px;
}

.staff-form .checkbox-field input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #a3e635;
}

.staff-form__status {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted-600);
  min-height: 18px;
}

.staff-form__status[data-variant="ok"] {
  color: rgba(163, 230, 53, 0.95);
}

.staff-form__status[data-variant="error"] {
  color: #f87171;
}

.staff-form__status[data-variant="saving"] {
  color: var(--muted-600);
}

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

.badge-role {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

@media (max-width: 960px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    position: static;
    height: auto;
    overflow: visible;
  }

  .admin-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .admin-sidebar__footer {
    position: static;
    bottom: auto;
    padding-top: 0;
    margin-top: 0;
    background: none;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }

  .stats-grid,
  .section-split {
    grid-template-columns: 1fr;
  }

  .table-head,
  .table-row {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .table--users .table-head,
  .table--users .table-row {
    grid-template-columns: 1fr;
  }

  .table--users .user-cell {
    margin-bottom: 10px;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #0f0f10;
  color: var(--ink-800);
  line-height: 1.6;
}

.flash-stack {
  position: fixed;
  top: 18px;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 200;
}

.flash {
  background: rgba(20, 20, 22, 0.95);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 360px;
  color: var(--ink-900);
  box-shadow: var(--shadow-soft);
}

.flash-success {
  border-color: rgba(163, 230, 53, 0.4);
}

.flash-error {
  border-color: rgba(239, 68, 68, 0.4);
}

.flash-close {
  background: transparent;
  border: none;
  color: var(--muted-600);
  font-size: 18px;
  cursor: pointer;
  margin-left: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.content-page {
  padding: 28px 18px 48px;
}

.page-container {
  width: min(980px, 92vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.strip-container {
  width: 100%;
  padding: 12px 18px 0;
}

.strip-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  max-width: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(15, 15, 16, 0.88);
  border-bottom: 1px solid var(--border);
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--primary-strong);
  font-size: 15px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  box-shadow: var(--shadow-card);
}

.actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn {
  font-weight: 600;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 160ms ease;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}

.btn-primary {
  background: #ffffff;
  color: var(--primary-strong);
  border-color: var(--border);
  box-shadow: var(--shadow-card);
}

.btn-compact {
  padding: 7px 12px;
  font-size: 14px;
}

.brand-logo {
  height: clamp(40px, 7vw, 72px);
  width: auto;
  border-radius: 0;
  object-fit: contain;
  border: none;
  box-shadow: none;
}

.user-menu {
  position: relative;
}

.user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #121214;
  color: var(--ink-900);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.user-name {
  max-width: min(140px, 34vw);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-trigger .chevron {
  font-size: 12px;
  color: var(--muted-600);
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  background: #121214;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 10px;
  display: none;
  z-index: 12;
}

.user-menu.open .user-dropdown {
  display: block;
}

.user-fullname {
  color: var(--ink-900);
  font-weight: 700;
  margin-bottom: 8px;
}

.dropdown-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dropdown-btn {
  padding: 8px 10px;
  font-size: 13px;
  border-radius: 10px;
}

.btn-primary:hover {
  background: #f3f3f4;
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--ink-900);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero {
  background: linear-gradient(135deg, #151518 0%, #111114 60%, #0f0f10 100%);
  color: var(--ink-900);
  padding: 56px 32px 42px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-soft);
  border-bottom: 1px solid var(--border);
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(260px, 340px);
  gap: 32px;
  align-items: start;
}

.hero h1 {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: clamp(34px, 4vw, 46px);
  letter-spacing: -0.4px;
  color: var(--primary-strong);
}

.hero p {
  margin: 0;
  max-width: 800px;
  color: var(--muted-600);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #1b1b1f;
  border: 1px solid var(--border);
  color: #f0f0f2;
  font-weight: 600;
  box-shadow: none;
}

.content {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 18px 48px;
}

.section-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 18px;
}

.section-card.island {
  border-radius: 22px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  border-color: #202022;
  padding: 22px;
}

.week-card {
  width: 100%;
}

.week-column {
  max-width: 380px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 84px;
  align-self: flex-start;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  padding-bottom: 2px;
}

.week-filters-card {
  width: 100%;
}

.week-filters-card.section-card {
  padding: 14px;
}

.menu-card {
  flex: 1;
  min-width: 420px;
}

.menu-group-section {
  margin-bottom: 24px;
  scroll-margin-top: 80px;
}

.menu-group-header {
  padding: 16px 0 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.menu-group-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #f5f5f5;
}

.menu-section-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.menu-section-title {
  font-size: 28px;
  font-weight: 800;
  color: #f5f5f5;
  margin: 0;
}

.menu-section-subtitle {
  font-size: 18px;
  font-weight: 700;
  color: #f0f0f0;
}

.menu-section-divider {
  width: 100%;
  height: 1px;
  background: #2a2a2a;
  margin-top: 6px;
}

/* Menu vertical navigation */
.menu-nav-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}

.menu-nav-label {
  font-size: 12px;
  color: var(--muted-600);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.menu-nav-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink-900);
  line-height: 1.15;
}

.menu-nav-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.menu-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--ink-800);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.menu-nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-900);
}

.menu-nav-arrow {
  font-size: 12px;
  color: transparent;
  transition: color 0.15s ease;
  width: 12px;
}

.menu-nav-item.is-active .menu-nav-arrow,
.menu-nav-item:hover .menu-nav-arrow {
  color: var(--ink-900);
}

.menu-nav-item.is-active {
  color: var(--ink-900);
}

.menu-nav-name {
  flex: 1;
}

/* Legacy menu filters (kept for compatibility) */
.menu-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 0;
}

.menu-filters--checkboxes {
  margin-bottom: 0;
}

.menu-filter-btn {
  padding: 9px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #121214;
  color: var(--muted-600);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 160ms ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.menu-filter-btn:hover {
  border-color: rgba(157, 157, 159, 0.45);
  color: var(--ink-800);
  box-shadow: 0 0 0 1px rgba(157, 157, 159, 0.12);
}

.menu-filter-btn.active {
  background: #ffffff;
  color: var(--primary-strong);
  border-color: var(--border);
  box-shadow: var(--shadow-card);
}

.menu-filter-chip {
  padding: 9px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #121214;
  color: var(--muted-600);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 160ms ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}

.menu-filter-chip:hover {
  border-color: rgba(157, 157, 159, 0.45);
  color: var(--ink-800);
  box-shadow: 0 0 0 1px rgba(157, 157, 159, 0.12);
}

.menu-filter-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.menu-filter-chip:has(input:checked) {
  background: #ffffff;
  color: var(--primary-strong);
  border-color: var(--border);
  box-shadow: var(--shadow-card);
}

.menu-filter-chip.scroll-active:not(:has(input:checked)) {
  border-color: rgba(157, 157, 159, 0.5);
  color: var(--ink-900);
  box-shadow: 0 0 0 1px rgba(157, 157, 159, 0.2);
}

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

.menu-day[hidden] {
  display: none;
}

.menu-empty {
  padding: 24px;
  border: 1px dashed #2a2a2a;
  border-radius: 14px;
  color: #aaa;
  font-weight: 600;
  text-align: center;
}

.menu-item {
  border: 1px solid #1f1f1f;
  border-radius: 14px;
  background: #0f0f0f;
  display: flex;
  gap: 16px;
  padding: 16px 18px;
  align-items: stretch;
  min-height: 150px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  justify-content: space-between;
  transition: border-color 0.12s ease;
}

.menu-item:hover {
  border-color: #2a2a2a;
}

.menu-item .menu-name {
  font-weight: 800;
  color: #f5f5f5;
  font-size: 18px;
}

.menu-name-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.menu-thumb {
  position: relative;
  flex-shrink: 0;
}

.menu-thumb img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #2a2a2a;
}

.menu-thumb.sold-out img {
  filter: brightness(0.35);
}

.sold-out-badge {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: #ef4444;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.menu-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
}

.menu-desc {
  margin: 0;
  color: #c6c6c6;
  font-weight: 600;
  line-height: 1.55;
}

.menu-item .menu-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  color: #8f8f8f;
  font-weight: 600;
  white-space: nowrap;
}

.menu-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.menu-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f5f5f5;
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.menu-item .menu-price {
  color: #f5f5f5;
  font-weight: 800;
  font-size: 16px;
}

.menu-likes {
  color: #8f8f8f;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.menu-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.menu-action {
  border: 1px solid #1f1f1f;
  background: #121212;
  color: #f5f5f5;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}

.menu-action:hover {
  background: #191919;
  border-color: #333333;
  transform: translateY(-1px);
}

.menu-action.is-active,
.menu-action.favorite-toggle.is-active {
  background: #2c2c2c;
  border-color: #6cdb5e;
  color: #6cdb5e;
}

.menu-item.muted .menu-name,
.menu-item.muted .menu-price {
  color: var(--muted-600);
}

.items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0;
}

.item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-900);
  font-weight: 600;
  gap: 8px;
  flex-wrap: wrap;
}

.item-row-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.item-row-name {
  flex: 1;
  min-width: 0;
}

.item-row.muted {
  color: var(--muted-600);
  font-style: italic;
  font-weight: 500;
}

.item-row .item-qty {
  color: var(--muted-600);
}

.item-row-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.item-comment {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-600);
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.item-desc {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-600);
  line-height: 1.4;
}

.item-thumb {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #2d2d2f;
  background: #111;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-thumb.placeholder {
  font-size: 12px;
  color: var(--muted-600);
}

.item-row-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.item-control {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #151518;
  color: var(--ink-900);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border 0.12s ease, color 0.12s ease;
}

.item-control:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.item-control.remove {
  width: auto;
  padding: 0 10px;
  border-color: #402020;
  color: #f07d7d;
}

.item-control.remove:hover {
  border-color: #f07d7d;
  color: #ff9a9a;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

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

.profile-modal-card {
  background: #111114;
  border: 1px solid var(--border);
  border-radius: 16px;
  width: min(360px, 92vw);
  margin: 0 auto;
  padding: 18px;
  color: var(--ink-900);
  box-shadow: var(--shadow-card);
  position: relative;
}

.profile-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.profile-modal-name {
  font-weight: 700;
  font-size: 16px;
}

.profile-modal-sub {
  color: var(--muted-600);
  font-size: 14px;
}

.icon-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--ink-900);
  padding: 6px 10px;
  cursor: pointer;
}

.heart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 12px;
}

.menu-action.favorite-toggle {
  border-color: #2a2a2a;
}

.menu-action.favorite-toggle .icon-heart {
  stroke: #f35b5b;
}

.menu-action.favorite-toggle.is-active {
  border-color: #f35b5b;
  color: #f35b5b;
}

.menu-action.favorite-toggle.is-active .icon-heart {
  fill: transparent;
  stroke: #f35b5b;
}

.profile-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.full-width,
.btn.full {
  width: 100%;
}

.modal-card {
  width: min(720px, 95vw);
  background: #141416;
  border: 1px solid #2c2c2c;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.modal-head {
  padding: 22px 28px 12px;
  border-bottom: 1px solid #202022;
}

.modal-title {
  margin: 0;
  color: var(--ink-900);
  font-size: 20px;
  font-weight: 800;
}

.modal-body {
  padding: 20px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid #202022;
  border-radius: 14px;
  background: #18181b;
}

.comment-field {
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
  border: 1px solid #2d2d30;
  background: #111115;
  color: var(--ink-900);
  padding: 8px 10px;
  font-family: inherit;
  resize: vertical;
}

.comment-field:focus {
  outline: none;
  border-color: var(--primary);
}

.modal-empty {
  text-align: center;
  color: var(--muted-600);
  font-weight: 600;
  border: 1px dashed #2d2d30;
  border-radius: 14px;
  padding: 24px;
}

.modal-footer {
  padding: 18px 28px 26px;
  border-top: 1px solid #202022;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

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

.section-title {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  color: var(--primary-strong);
}

.tabs {
  display: inline-flex;
  background: #1a1a1d;
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}

.tab {
  border: none;
  background: transparent;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--muted-600);
  cursor: pointer;
}

.tab.active {
  background: #0f0f10;
  color: var(--ink-900);
  border: 1px solid var(--border);
}

/* Calendar */
.calendar-shell {
  display: grid;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
}

.calendar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.month-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.month-label {
  font-weight: 700;
  color: var(--ink-900);
}

.month-btn {
  border: 1px solid var(--border);
  background: #121214;
  color: var(--ink-900);
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 700;
}

.legend {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted-600);
  font-weight: 600;
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}

.legend-dot.workday { background: #151518; border: 1px solid var(--border); }
.legend-dot.weekend { background: rgba(208, 98, 98, 0.18); border: 1px solid rgba(208, 98, 98, 0.38); }
.legend-dot.selected { background: rgba(157, 157, 159, 0.32); border: 1px solid var(--primary); }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 10px;
}

.day-cell {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  min-height: 100px;
  background: #121214;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: border 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.day-cell:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.day-cell.weekend {
  background: rgba(208, 98, 98, 0.08);
}

.day-cell.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(157, 157, 159, 0.18);
}

.day-number {
  font-weight: 800;
  color: var(--ink-900);
}

.day-weekday {
  color: var(--muted-600);
  font-weight: 700;
}

.time-select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0f0f10;
  color: var(--ink-900);
  padding: 8px 10px;
  font-weight: 700;
}

.selection-panel {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.selection-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #121214;
}

.selection-row strong {
  color: var(--ink-900);
}

.selection-row .muted {
  margin: 0;
}

.remove-btn {
  border: none;
  background: transparent;
  color: var(--muted-600);
  cursor: pointer;
  font-weight: 700;
}

@media (max-width: 1180px) {
  .calendar-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.week-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.week-pill {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: #121214;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--ink-900);
  cursor: pointer;
}

.week-pill .pill-date {
  color: var(--muted-600);
  font-weight: 700;
}

.week-pill .pill-day {
  color: var(--ink-900);
}

.week-pill.draft { border-color: rgba(157, 157, 159, 0.3); }
.week-pill.pending { border-color: rgba(210, 143, 74, 0.5); }
.week-pill.paid { border-color: rgba(78, 165, 217, 0.5); }
.week-pill.cancelled { border-color: rgba(198, 95, 95, 0.5); }
.week-pill.unavailable { border-color: rgba(208, 98, 98, 0.7); box-shadow: 0 0 0 2px rgba(208, 98, 98, 0.18); }
.week-pill.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(157, 157, 159, 0.25);
}

.day-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: #121214;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.day-date {
  font-weight: 700;
  color: var(--ink-900);
}

.status {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.status.draft { background: rgba(157, 157, 159, 0.12); color: #e5e5e6; border: 1px solid rgba(157, 157, 159, 0.24); }
.status.pending { background: rgba(210, 143, 74, 0.14); color: #f1c088; border: 1px solid rgba(210, 143, 74, 0.26); }
.status.paid { background: rgba(78, 165, 217, 0.16); color: #b8e5ff; border: 1px solid rgba(78, 165, 217, 0.26); }
.status.cancelled { background: rgba(198, 95, 95, 0.14); color: #f1b5b5; border: 1px solid rgba(198, 95, 95, 0.22); }

.items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--ink-800);
}

.item-row {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.item-row span:last-child {
  color: var(--muted-600);
}

.meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted-600);
  font-weight: 600;
}

.delivery-meta {
  align-items: center;
  gap: 12px;
}

.delivery-picker {
  position: relative;
  min-width: 140px;
}

.delivery-trigger {
  width: 100%;
  min-width: 140px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #151518;
  color: var(--ink-900);
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease;
}

.delivery-trigger-label {
  white-space: nowrap;
}

.delivery-trigger-icon svg {
  transition: transform 160ms ease;
  color: var(--muted-600);
}

.delivery-picker.open .delivery-trigger {
  border-color: var(--primary);
}

.delivery-picker.open .delivery-trigger-icon svg {
  transform: rotate(180deg);
}

.delivery-dropdown {
  position: absolute;
  inset: auto 0 auto 0;
  top: calc(100% + 8px);
  background: #0f0f11;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.45);
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 15;
}

.delivery-picker.open .delivery-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.delivery-option {
  border: none;
  background: transparent;
  color: var(--ink-900);
  font-weight: 600;
  font-size: 13px;
  border-radius: 10px;
  padding: 6px 10px;
  text-align: left;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.delivery-option:hover {
  background: rgba(255, 255, 255, 0.04);
}

.delivery-option.selected {
  background: rgba(157, 157, 159, 0.18);
  color: #f5f5f5;
}

.delivery-select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.summary {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-left: auto;
  width: 100%;
  max-width: 380px;
  min-width: 380px;
}

.summary-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  margin: 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  color: var(--ink-800);
  font-weight: 600;
}

.summary-row.muted {
  color: var(--muted-600);
  font-weight: 500;
}

.promo-island {
  margin: 12px 0 16px;
  background: #0e0e10;
  border-color: #24242a;
  padding: 16px;
}

.promo-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.promo-caption {
  color: var(--muted-600);
  font-size: 13px;
}

.promo-input-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.promo-input-group input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
}

.promo-hint {
  margin-top: 6px;
  font-size: 13px;
  color: #a3e635;
}

.promo-apply {
  background: #ffffff;
  color: var(--primary-strong);
  border-color: var(--border);
  padding: 8px 12px;
  font-weight: 700;
}

.divider {
  height: 1px;
  background: var(--border);
}

.promo {
  display: flex;
  gap: 10px;
}

.modal-card.wide {
  max-width: 880px;
  width: 95%;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

.checkout-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checkout-block {
  border: 1px solid #24242a;
  border-radius: 14px;
  background: #0f0f12;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkout-label {
  font-weight: 700;
  color: var(--ink-900);
}

.payment-choice {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  border: 1px solid #1f1f24;
  border-radius: 10px;
  cursor: pointer;
  background: #121216;
}

.payment-option input {
  margin-top: 4px;
}

.payment-title {
  font-weight: 700;
  color: var(--ink-900);
}

.payment-desc {
  color: var(--muted-600);
  font-size: 13px;
  line-height: 1.4;
}

.checkout-rules {
  margin: 0;
  padding-left: 18px;
  color: var(--muted-600);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.summary-col .summary-row {
  color: var(--ink-900);
}

.summary-row.strong {
  font-weight: 800;
}

.checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout-note {
  color: var(--muted-600);
  font-size: 13px;
}

@media (max-width: 960px) {
  .modal-card.wide {
    max-width: 100%;
  }
  .content {
    flex-direction: column;
    align-items: stretch;
  }
  .menu-card {
    min-width: 0;
    width: 100%;
  }
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .summary {
    position: static;
    max-width: 100%;
    min-width: 0;
  }
  .week-column {
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
    max-width: none;
  }
}

/* Repeat mode */
.repeat-banner {
  margin: 0 0 10px;
  padding: 9px 12px;
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: 10px;
  background: rgba(249, 115, 22, 0.05);
  color: #f6c19c;
  font-weight: 600;
}

/* Orders (history) */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.history-card {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: #151518;
  padding: 14px 14px 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.history-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.history-card-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 220px;
}

.history-eyebrow {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-600);
  font-weight: 700;
}

.history-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.history-title {
  margin: 0;
  font-size: 18px;
  color: var(--ink-900);
}

.history-note {
  margin: 0;
  color: var(--muted-600);
  font-weight: 600;
  font-size: 13px;
}

.history-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  background: #1c1c20;
  border: 1px solid #2a2a30;
  color: #d5d5d8;
}

.history-pill.draft {
  color: #f97316;
  border-color: rgba(249, 115, 22, 0.4);
  background: rgba(249, 115, 22, 0.06);
}

.history-pill.paid {
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.06);
}

.history-meta {
  display: grid;
  grid-auto-rows: auto;
  gap: 6px;
  min-width: 180px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: #0f0f11;
}

.history-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  color: var(--ink-900);
}

.history-meta-line.muted {
  color: var(--muted-600);
}

.meta-label {
  color: var(--muted-600);
  font-weight: 600;
}

.meta-value {
  color: var(--ink-900);
}

.price-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}

.price-line .meta-label {
  font-size: 12px;
}

.history-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.history-card-actions .btn-primary {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.item-row.unavailable {
  border: 1px solid rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.08);
}

.item-badge.danger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  color: #f87171;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  margin-top: 6px;
}

.input {
  flex: 1;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0f0f10;
  color: var(--ink-900);
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.checkout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.radio-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  transition: border 120ms ease, box-shadow 120ms ease, transform 120ms ease;
  background: #121214;
}

.radio-card:hover {
  border-color: var(--primary);
}

.radio-card input {
  margin-top: 4px;
}

.radio-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-900);
}

.footer {
  padding: 24px 32px 32px;
  color: var(--muted-600);
  font-weight: 600;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: auto;
  width: 100%;
}

/* Instructions page */
.instructions-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 8px;
}

.instructions-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.instructions-heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-900);
  margin: 0;
}

.instructions-text {
  margin: 0;
  color: var(--muted-600);
  font-size: 13px;
  line-height: 1.55;
}

.instructions-subsection {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.instructions-label {
  font-size: 14px;
  color: var(--ink-800);
}

.instructions-content a {
  color: var(--success);
  text-decoration: none;
}

.instructions-content a:hover {
  text-decoration: underline;
}

/* Auth layout */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(340px, 480px);
}

.auth-media {
  position: relative;
  overflow: hidden;
  background-color: #000;
}

.auth-media > .auth-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}

@media (min-width: 1400px) {
  .auth-media > .auth-photo {
    object-position: center center;
  }
}

.auth-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0) 45%, rgba(0,0,0,0.28) 88%),
    radial-gradient(ellipse at top, rgba(0,0,0,0.22), transparent 55%);
  backdrop-filter: none;
}

.auth-brand {
  position: absolute;
  top: 28px;
  left: 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  z-index: 1;
}

.auth-logo {
  height: 48px;
  width: auto;
  display: block;
}

.brand-mark-lg {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
}

.auth-logo-text {
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}

.auth-caption {
  position: absolute;
  bottom: 28px;
  left: 28px;
  max-width: 320px;
  color: #f3f3f5;
  font-weight: 600;
  z-index: 1;
  line-height: 1.5;
}

.auth-panel {
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.auth-card {
  width: min(440px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-head h1 {
  margin: 8px 0 6px;
  font-size: 26px;
  color: var(--ink-900);
}

.auth-head p {
  margin: 0;
}

.auth-actions .tiny {
  font-size: 13px;
  margin: 6px 0 0;
}

.auth-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted-600);
  font-weight: 600;
}

.auth-separator::before,
.auth-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-for.summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-left: auto;
  min-width: 320px;
  max-width: 380px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
  color: var(--ink-900);
}

.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(157, 157, 159, 0.16);
}

.auth-remember {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checkbox input {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.eyebrow {
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 12px;
  color: var(--muted-600);
  font-weight: 700;
}

.avatar-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #131316;
}

.avatar-dot {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #0f0f10;
  background: linear-gradient(135deg, #e5e5e6, #9d9d9f);
}

.avatar-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.avatar-name {
  color: var(--ink-900);
  font-weight: 700;
}

.avatar-sub {
  color: var(--muted-600);
  font-size: 13px;
}

.profile-shell {
  background: linear-gradient(165deg, rgba(30,30,33,0.85), rgba(18,18,20,0.92));
  border: 1px solid #202022;
}

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

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px 14px;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 700;
  color: var(--ink-900);
}

.profile-field input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #101013;
  color: var(--ink-900);
  padding: 12px 14px;
  font-weight: 600;
}

.profile-field input[readonly] {
  color: var(--muted-600);
  background: #0f0f11;
}

.profile-field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(157, 157, 159, 0.2);
}

.profile-field .field-hint {
  color: var(--muted-600);
  font-weight: 600;
  font-size: 13px;
  margin: -2px 0 0;
}

.profile-field.wide {
  grid-column: 1 / -1;
}

.profile-actions {
  display: flex;
  justify-content: flex-end;
}

.history-empty {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px dashed #2a2a2a;
  border-radius: 14px;
  background: #151518;
}

.history-icon {
  font-size: 26px;
  line-height: 1;
}

.history-text p {
  margin: 0;
  font-weight: 700;
  color: var(--ink-900);
}

.history-text .muted {
  color: var(--muted-600);
}

@media (max-width: 720px) {
  .content-page {
    padding: 18px 14px 32px;
  }

  .topbar {
    padding: 8px 14px;
  }

  .actions {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .week-strip {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    scroll-snap-type: x proximity;
  }

  .week-strip::-webkit-scrollbar {
    height: 6px;
  }

  .week-strip::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
  }

  .week-pill {
    flex: 0 0 auto;
    min-width: 160px;
    scroll-snap-align: start;
  }

  .menu-item {
    flex-direction: column;
    padding: 14px;
    min-height: 0;
  }

  .menu-thumb {
    order: -1;
    width: 100%;
  }

  .menu-thumb img {
    width: 100%;
    height: 170px;
  }

  .menu-name-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .menu-item .menu-meta {
    flex-wrap: wrap;
    white-space: normal;
  }

  .menu-actions {
    flex-wrap: wrap;
  }

  .section-card.island {
    padding: 18px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .avatar-chip {
    width: 100%;
    justify-content: flex-start;
  }
}

.dish-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 80;
}

.dish-backdrop[hidden] {
  display: none;
}

.dish-card {
  width: min(640px, 96vw);
  background: #0f0f11;
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  position: relative;
  border: 1px solid #1f1f22;
}

.dish-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: rgba(0,0,0,0.4);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.dish-media img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.dish-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dish-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.dish-title-row h3 {
  margin: 0;
  color: #f5f5f5;
  font-size: 22px;
}

.dish-price {
  color: #f5f5f5;
  font-weight: 800;
  font-size: 18px;
}

.dish-desc {
  margin: 0;
  color: #d0d0d2;
  font-weight: 600;
  line-height: 1.5;
}

.dish-meta {
  display: flex;
  gap: 10px;
  color: var(--muted-600);
  font-weight: 700;
  flex-wrap: wrap;
}

.dish-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(157, 157, 159, 0.14);
  border: 1px solid rgba(157, 157, 159, 0.32);
  color: #e5e5e6;
  font-size: 12px;
}

.dish-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.dish-likes {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f35b5b;
  font-weight: 700;
}

@media (max-width: 720px) {
  .dish-media img {
    height: 260px;
  }

  .dish-card {
    border-radius: 14px;
  }
}

@media (max-width: 960px) {
  .auth-shell {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
  }

  .auth-media {
    min-height: 0;
  }

  .auth-media > .auth-photo {
    object-position: center 30%;
  }

  .auth-panel {
    padding: 16px;
    align-items: flex-start;
  }

  .auth-card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    gap: 12px;
  }

  .auth-head h1 {
    font-size: 20px;
    margin: 4px 0;
  }

  .auth-head p {
    font-size: 13px;
  }

  .auth-promo {
    display: flex;
    gap: 10px;
  }
}

/* Week Overview Page - compact island style */
.week-overview-page {
  padding: 24px 0 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100vh - 120px);
}

.week-overview-header {
  margin-bottom: 20px;
  text-align: center;
}

.week-overview-title {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 800;
  color: var(--ink-900);
}

.week-overview-subtitle {
  margin: 0;
  color: var(--muted-600);
  font-weight: 600;
  font-size: 14px;
}

.week-islands-outer {
  width: 100%;
  padding: 24px clamp(16px, 4vw, 40px) 40px;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
}

.week-cards-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 36px;
  width: min(100%, 2000px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 32px;
  box-shadow: var(--shadow-card);
  gap: 18px;
  margin-bottom: 20px;
}

.week-cards-row {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  overflow-x: auto;
  flex-wrap: nowrap;
  scroll-snap-type: x proximity;
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* IE/Edge legacy */
}

.week-cards-row::-webkit-scrollbar {
  height: 0;
  width: 0;
}

.week-day-card {
  flex: 0 0 340px;
  background: #121214;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 340px;
  transition: border-color 0.15s ease, transform 0.15s ease;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.week-day-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.week-day-card.is-past {
  opacity: 0.55;
  cursor: default;
}

.week-day-card.is-past:hover {
  transform: none;
  border-color: var(--border);
}

.week-day-card.is-today {
  border-color: var(--success);
  box-shadow: 0 0 0 2px rgba(108, 179, 255, 0.2);
}

.week-day-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.week-day-header-left {
  display: flex;
  flex-direction: column;
}

.week-day-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink-900);
}

.week-day-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-600);
}

.week-day-badge {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.week-day-badge.today-badge {
  background: rgba(108, 179, 255, 0.15);
  color: var(--success);
}

.week-day-badge.past-badge {
  background: rgba(208, 98, 98, 0.1);
  color: var(--danger);
}

.week-day-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.week-day-dishes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  flex: 1;
}

.week-dish-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: #0a0a0b;
  border-radius: 10px;
}

.week-dish-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.week-dish-img-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #1a1a1c;
  display: grid;
  place-items: center;
  color: var(--muted-600);
  flex-shrink: 0;
}

.week-dish-img-placeholder svg {
  width: 18px;
  height: 18px;
}

.week-dish-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.week-dish-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.week-dish-desc {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted-600);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.week-dish-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.week-dish-qty {
  font-size: 12px;
  color: var(--muted-600);
}

.week-dish-price {
  font-size: 12px;
  color: var(--ink-800);
  font-weight: 600;
}

.week-day-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--muted-600);
  font-weight: 600;
  font-size: 11px;
  text-align: center;
}

.week-day-empty svg {
  width: 24px;
  height: 24px;
  opacity: 0.4;
}

.week-day-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.week-day-total {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
}

.week-day-total-label {
  font-size: 9px;
  color: var(--muted-600);
  font-weight: 600;
}

.week-day-total-value {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-900);
}

.week-day-edit-btn {
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 8px;
}

.week-day-edit-btn svg {
  width: 12px;
  height: 12px;
}

.week-day-edit-btn span {
  display: none;
}

.week-day-locked {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(208, 98, 98, 0.1);
  border: 1px solid rgba(208, 98, 98, 0.25);
  display: grid;
  place-items: center;
  color: var(--danger);
}

.week-day-locked svg {
  width: 12px;
  height: 12px;
}

.week-summary-card {
  background: #121214;
  border: 1px solid #24242a;
  border-radius: 18px;
  padding: 16px 28px;
  display: flex;
  justify-content: center;
  gap: 40px;
}

.week-summary-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}

.week-summary-row span:first-child {
  font-size: 12px;
  color: var(--muted-600);
  font-weight: 600;
}

.week-summary-row span:last-child,
.week-summary-row strong {
  font-size: 18px;
  color: var(--ink-900);
  font-weight: 800;
}

@media (max-width: 900px) {
  .week-cards-grid {
    padding: 20px;
    gap: 16px;
  }

  .week-cards-row {
    flex-wrap: wrap;
    overflow-x: hidden;
  }

  .week-day-card {
    flex: 1 1 320px;
  }
}

@media (max-width: 620px) {
  .flash-stack {
    left: 12px;
    right: 12px;
    top: 12px;
  }

  .flash {
    min-width: 0;
    max-width: none;
    width: 100%;
  }

  .topbar .btn-primary.btn-compact {
    display: none;
  }

  .week-cards-grid {
    padding: 16px;
    gap: 12px;
  }
  .week-day-card {
    flex: 1 1 260px;
    min-height: 300px;
  }
  .week-summary-card {
    width: 100%;
    max-width: 380px;
    gap: 18px;
    padding: 14px 18px;
  }
}

@media (max-width: 480px) {
  .week-cards-grid {
    gap: 10px;
    padding: 14px;
  }
  .week-day-card {
    flex: 1 1 100%;
  }
}
