:root {
  --bg: #f6f7fb;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --surface-soft: #f8fafc;
  --text: #111827;
  --muted: #6b7280;
  --border: rgba(15, 23, 42, 0.08);
  --primary: #111827;
  --accent: #c6923b;
  --danger: #b91c1c;
  --success: #15803d;
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);
  --shadow-md: 0 14px 32px rgba(15, 23, 42, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  color: var(--text);
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
}

img {
  display: block;
  max-width: 100%;
}

.admin-shell {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.22;
  pointer-events: none;
}

.bg-orb-a {
  top: -8rem;
  right: -4rem;
  background: #c6923b;
}

.bg-orb-b {
  left: -6rem;
  bottom: -10rem;
  background: #60a5fa;
}

.app-shell {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 32px auto 72px;
  position: relative;
  z-index: 1;
}

.card,
.soft-panel {
  background: var(--surface);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.soft-panel {
  box-shadow: var(--shadow-md);
}

.stack-lg > * + * { margin-top: 24px; }
.stack-md > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 12px; }

.auth-card,
.editor-topbar,
.card {
  padding: 28px;
}

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #64748b;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-top: 10px;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
}

h3 {
  font-size: 1.1rem;
}

.lede {
  color: var(--muted);
  line-height: 1.7;
  max-width: 68ch;
}

.lede.compact {
  margin-top: 8px;
}

.auth-card {
  max-width: 760px;
  margin: 0 auto 28px;
}

.auth-toggle {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  margin: 24px 0 18px;
}

.segmented-btn {
  background: transparent;
  padding: 10px 16px;
  border-radius: 999px;
  color: #475569;
  font-weight: 700;
  cursor: pointer;
}

.segmented-btn.is-active {
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.field {
  display: grid;
  gap: 8px;
}

.field > span {
  font-size: 0.92rem;
  font-weight: 700;
  color: #475569;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 48px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.textarea {
  min-height: 110px;
  resize: vertical;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: rgba(15, 23, 42, 0.2);
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(29, 78, 216, 0.45);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #334155;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
}

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

.actions-row.compact {
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: white;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18);
}

.btn-secondary {
  background: #eef2ff;
  color: #1e3a8a;
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.06);
  color: #334155;
}

.btn-danger {
  background: rgba(185, 28, 28, 0.1);
  color: var(--danger);
}

.hint {
  color: var(--muted);
  font-size: 0.94rem;
}

.notice {
  border-radius: 16px;
  padding: 14px 16px;
  font-weight: 600;
}

.notice-info {
  background: rgba(59, 130, 246, 0.08);
  color: #1d4ed8;
}

.notice-success {
  background: rgba(21, 128, 61, 0.1);
  color: var(--success);
}

.notice-error {
  background: rgba(185, 28, 28, 0.1);
  color: var(--danger);
}

.editor-shell { margin-top: 28px; }

.editor-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

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

.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  margin-top: 24px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.hours-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.theme-swatch {
  display: grid;
  gap: 8px;
}

.theme-chip {
  height: 64px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.gallery-list,
.dish-list {
  display: grid;
  gap: 16px;
}

.gallery-card,
.dish-card {
  padding: 16px;
}

.gallery-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
}

.gallery-card__media,
.dish-card__media {
  display: grid;
  gap: 12px;
}

.gallery-card__media img,
.dish-card__media img,
.mini-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  background: #e2e8f0;
}

.dish-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
}

.inline-flags {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(198, 146, 59, 0.12);
  color: #8a5a10;
  font-weight: 700;
}

.split-row {
  justify-content: space-between;
}

.sticky-card {
  position: sticky;
  top: 20px;
}

.url-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.04);
}

.url-card a {
  word-break: break-word;
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: none;
}

.url-card a:hover {
  text-decoration: underline;
}

.qr-frame {
  display: grid;
  place-items: center;
  min-height: 280px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.qr-frame img {
  width: min(100%, 256px);
  height: auto;
}

.summary-list {
  display: grid;
  gap: 12px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.summary-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.summary-label {
  color: var(--muted);
}

.summary-value {
  font-weight: 800;
}

.mini-preview {
  display: grid;
  gap: 12px;
}

.mini-card {
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.mini-card__name {
  font-weight: 800;
}

.mini-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  margin-top: 6px;
}

.public-body {
  background: #f8fafc;
}

.public-shell {
  min-height: 100vh;
}

.public-hero {
  position: relative;
  min-height: 420px;
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  overflow: hidden;
}

.public-hero__slides {
  position: absolute;
  inset: 0;
}

.public-hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.public-hero__slide.is-active {
  opacity: 1;
}

.public-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.12) 0%, rgba(15, 23, 42, 0.52) 70%, rgba(15, 23, 42, 0.78) 100%);
}

.public-hero__content {
  position: relative;
  z-index: 2;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
}

.public-container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.public-hero__inner {
  padding: 36px 0 42px;
  color: white;
}

.public-badge {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 700;
}

.public-title {
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  margin-top: 14px;
  color: #f8fafc;
}

.public-subtitle {
  max-width: 60ch;
  margin-top: 12px;
  color: rgba(248, 250, 252, 0.92);
  line-height: 1.7;
}

.public-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.public-nav__chips {
  display: flex;
  gap: 10px;
  overflow: auto;
  padding: 14px 0;
}

.chip {
  white-space: nowrap;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: white;
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-weight: 700;
  cursor: pointer;
}

.chip.is-active {
  background: #111827;
  color: white;
}

.public-main {
  padding: 28px 0 56px;
}

.public-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.1fr 0.9fr;
}

.info-panel {
  padding: 24px;
  border-radius: 24px;
  background: white;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-md);
}

.info-panel h2 {
  font-size: 1.12rem;
  margin-bottom: 12px;
}

.info-line {
  line-height: 1.65;
  color: #334155;
}

.public-section {
  margin-top: 28px;
}

.public-section h2 {
  margin-bottom: 14px;
}

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

.public-card {
  border-radius: 24px;
  overflow: hidden;
  background: white;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-md);
}

.public-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #e2e8f0;
}

.public-card__body {
  padding: 18px;
}

.public-card__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.public-price {
  color: #8a5a10;
  font-weight: 800;
  white-space: nowrap;
}

.public-desc,
.public-ingredients {
  margin-top: 12px;
  color: #475569;
  line-height: 1.65;
}

.public-note {
  margin-top: 12px;
  display: inline-flex;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  align-items: center;
  background: rgba(198, 146, 59, 0.12);
  color: #8a5a10;
  font-weight: 700;
}

.public-message {
  padding: 20px;
  border-radius: 20px;
  background: white;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-md);
}

.hidden {
  display: none !important;
}

@media (max-width: 1080px) {
  .editor-layout,
  .public-grid,
  .gallery-card,
  .dish-card {
    grid-template-columns: 1fr;
  }

  .sticky-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .app-shell,
  .public-container {
    width: min(100% - 20px, var(--max-width));
  }

  .auth-card,
  .editor-topbar,
  .card {
    padding: 20px;
  }

  .form-grid.two,
  .form-grid.three,
  .theme-grid,
  .hours-grid {
    grid-template-columns: 1fr;
  }

  .editor-topbar,
  .section-head,
  .split-row {
    flex-direction: column;
  }

  .public-hero__inner {
    padding-top: 110px;
  }
}
