:root {
  --bg: #fff8ec;
  --panel: rgba(255, 248, 236, 0.84);
  --panel-strong: #fff8ec;
  --text: #2f3b26;
  --muted: #66745d;
  --accent: #546b41;
  --accent-2: #99ad7a;
  --accent-3: #dcccac;
  --border: rgba(84, 107, 65, 0.18);
  --shadow: 0 24px 70px rgba(84, 107, 65, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      circle at top left,
      rgba(156, 173, 122, 0.24),
      transparent 30%
    ),
    radial-gradient(
      circle at top right,
      rgba(84, 107, 65, 0.16),
      transparent 32%
    ),
    linear-gradient(180deg, #fff8ec 0%, #f5ebd6 42%, #fff8ec 100%);
  min-height: 100vh;
}

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

.topbar {
  width: min(1180px, calc(100% - 32px));
  margin: 20px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  position: sticky;
  top: 16px;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 36px rgba(84, 107, 65, 0.28);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-weight: 500;
}

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

.is-authenticated [data-guest-actions] {
  display: none !important;
}

.is-guest [data-account-actions] {
  display: none !important;
}

.account-actions {
  align-items: center;
}

.account-pill {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.68);
  color: var(--accent);
  font-weight: 800;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
  font-weight: 700;
}

.pill-link,
.searchbar button,
.feature-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.pill-link,
.searchbar button {
  background: var(--text);
  color: #fff;
  box-shadow: 0 14px 28px rgba(23, 18, 15, 0.18);
}

.pill-link:hover,
.searchbar button:hover,
.feature-link:hover,
.restaurant-body a:hover {
  transform: translateY(-1px);
}

.hero,
.section,
.detail-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
  padding: 44px 0 22px;
}

.strip-section {
  padding-top: 8px;
}

.strip-head h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
}

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

.cuisine-chip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.cuisine-chip span {
  font-weight: 800;
}

.cuisine-chip small {
  color: var(--muted);
}

.hero-copy h1,
.detail-hero h1,
.section-head h2,
.feature-card h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.hero-copy h1 {
  font-size: clamp(3rem, 6vw, 5.6rem);
  max-width: 11ch;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
}

.hero-text,
.section-head p,
.feature-card p,
.restaurant-body p,
.food-card p,
.chip-card p,
.detail-hero p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 62ch;
  font-size: 1.03rem;
  margin: 18px 0 28px;
}

.searchbar {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 22px;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.searchbar input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  font-size: 1rem;
  background: transparent;
  color: var(--text);
}

.hero-stats,
.detail-metrics,
.feature-meta,
.card-meta,
.food-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-stats {
  margin-top: 22px;
}

.hero-stats div,
.detail-metrics div,
.feature-meta span,
.card-meta span,
.food-foot span {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
}

.hero-stats strong,
.detail-metrics strong {
  display: block;
  font-size: 1.2rem;
}

.hero-stats span,
.detail-metrics span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-panel {
  display: grid;
  place-items: center;
}

.feature-card {
  width: 100%;
  border-radius: 30px;
  padding: 28px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 248, 0.92),
      rgba(245, 235, 214, 0.9)
    ),
    radial-gradient(
      circle at top right,
      rgba(153, 173, 122, 0.18),
      transparent 35%
    );
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.feature-card h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 8px;
}

.feature-label,
.food-status,
.rating,
.chip-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(84, 107, 65, 0.1);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
}

.feature-link {
  margin-top: 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}

.section {
  padding: 22px 0 10px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  max-width: 14ch;
}

.chip-grid,
.card-grid,
.food-grid {
  display: grid;
  gap: 18px;
}

.chip-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.chip-card,
.restaurant-card,
.food-card,
.empty-state {
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.chip-card {
  padding: 22px;
}

.chip-card h3,
.restaurant-body h3,
.food-card h3 {
  margin: 14px 0 10px;
  font-size: 1.2rem;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.restaurant-card {
  overflow: hidden;
}

.restaurant-visual {
  min-height: 160px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(
      circle at top left,
      rgba(153, 173, 122, 0.5),
      transparent 32%
    ),
    linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
}

.restaurant-visual span {
  font-size: 3rem;
  font-weight: 800;
  opacity: 0.92;
}

.restaurant-body,
.food-card {
  padding: 20px;
}

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

.rating {
  background: rgba(84, 107, 65, 0.12);
  color: var(--accent);
}

.restaurant-body a {
  display: inline-flex;
  margin-top: 16px;
  font-weight: 800;
  color: var(--accent);
}

.food-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.food-top,
.food-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.food-price {
  font-size: 1.1rem;
  font-weight: 800;
}

.food-status {
  background: rgba(153, 173, 122, 0.2);
  color: var(--accent);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 30px;
  text-align: center;
  color: var(--muted);
}

.detail-page {
  background:
    radial-gradient(
      circle at top left,
      rgba(153, 173, 122, 0.2),
      transparent 30%
    ),
    linear-gradient(180deg, #fff8ec 0%, #f5ebd6 100%);
}

.detail-topbar {
  margin-bottom: 24px;
}

.detail-wrap {
  padding-bottom: 42px;
}

.detail-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 36px;
  border-radius: 30px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 248, 0.94),
    rgba(245, 235, 214, 0.95)
  );
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.detail-hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
}

.detail-metrics {
  justify-content: flex-end;
}

.compact-section {
  padding-top: 26px;
}

.compact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-empty {
  grid-column: 1 / -1;
}

.mobile-nav {
  display: none;
}

.auth-inline-foot {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 32px;
  padding: 14px 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.auth-inline-foot div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-inline-foot strong {
  font-size: 1rem;
}

.auth-inline-foot span {
  color: var(--muted);
}

.auth-page {
  background:
    radial-gradient(
      circle at top left,
      rgba(153, 173, 122, 0.22),
      transparent 28%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(84, 107, 65, 0.14),
      transparent 30%
    ),
    linear-gradient(180deg, #fff8ec 0%, #f5ebd6 55%, #fff8ec 100%);
}

.auth-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 32px auto;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 22px;
}

.auth-brand-panel,
.auth-card {
  border-radius: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.auth-brand-panel {
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(84, 107, 65, 0.98), rgba(153, 173, 122, 0.94)),
    radial-gradient(
      circle at top right,
      rgba(255, 255, 255, 0.2),
      transparent 30%
    );
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 720px;
}

.auth-brand-panel .eyebrow {
  color: rgba(255, 255, 255, 0.9);
}

.auth-brand-panel h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 1;
  margin: 18px 0 16px;
  max-width: 10ch;
}

.auth-brand-panel p {
  max-width: 40ch;
  line-height: 1.7;
}

.auth-points {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.auth-points div {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.auth-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  padding: 34px;
}

.auth-card-head h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.auth-helper {
  color: var(--muted);
  margin: 12px 0 0;
}

.auth-helper a,
.secondary-link {
  color: var(--accent);
  font-weight: 800;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.auth-form span {
  font-size: 0.95rem;
}

.auth-form input {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  padding: 0 14px;
  font: inherit;
  outline: none;
}

.auth-form input:focus {
  border-color: rgba(84, 107, 65, 0.38);
  box-shadow: 0 0 0 4px rgba(84, 107, 65, 0.12);
}

.auth-button {
  margin-top: 6px;
  min-height: 54px;
  border-radius: 16px;
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(84, 107, 65, 0.24);
}

.auth-message {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--muted);
}

.auth-message.success {
  color: var(--accent);
  font-weight: 700;
}

.auth-message.error {
  color: #8d4b2e;
  font-weight: 700;
}

.hidden {
  display: none !important;
}

.secondary-link {
  display: inline-flex;
  margin-top: 16px;
}

@media (max-width: 1024px) {
  .hero,
  .detail-hero,
  .topbar {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .chip-grid,
  .card-grid,
  .food-grid,
  .compact-grid,
  .cuisine-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar {
    width: calc(100% - 20px);
    padding: 16px;
  }

  .topnav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero,
  .section,
  .detail-wrap {
    width: calc(100% - 20px);
  }

  .hero {
    padding-top: 18px;
  }

  .searchbar,
  .detail-hero {
    flex-direction: column;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    width: calc(100% - 20px);
    margin: 20px auto;
  }

  .auth-brand-panel {
    min-height: auto;
  }

  .auth-card,
  .auth-brand-panel {
    padding: 24px;
  }

  .chip-grid,
  .card-grid,
  .food-grid,
  .compact-grid,
  .cuisine-strip {
    grid-template-columns: 1fr;
  }

  .section-head,
  .card-row,
  .food-top,
  .food-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .topnav {
    display: none;
  }

  .mobile-nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 16px;
    width: calc(100% - 20px);
    max-width: 520px;
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    z-index: 30;
  }

  .mobile-nav a {
    min-height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(84, 107, 65, 0.08);
    color: var(--accent);
    font-weight: 800;
  }

  .auth-inline-foot div {
    flex-direction: column;
  }
}

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

.panel-card {
  border-radius: 26px;
  padding: 22px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.stack-form,
.danger-form {
  display: grid;
  gap: 14px;
}

.stack-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.stack-form span,
.danger-form span {
  font-size: 0.95rem;
}

.stack-form input,
.stack-form textarea,
.stack-form select {
  width: 100%;
  min-height: 50px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  outline: none;
}

.stack-form textarea {
  resize: vertical;
}

.stack-form input:focus,
.stack-form textarea:focus,
.stack-form select:focus {
  border-color: rgba(84, 107, 65, 0.4);
  box-shadow: 0 0 0 4px rgba(84, 107, 65, 0.12);
}

.form-message {
  margin: 0;
  min-height: 20px;
  color: var(--muted);
}

.form-message.success {
  color: var(--accent);
  font-weight: 700;
}

.form-message.error {
  color: #8d4b2e;
  font-weight: 700;
}

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

.card-actions a,
.card-actions button,
.inline-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent);
  font-weight: 800;
}

.compact-actions {
  margin-top: 14px;
}

.summary-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.68);
}

.summary-card strong {
  display: block;
  margin-bottom: 4px;
}

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

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill-list span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(84, 107, 65, 0.08);
  border: 1px solid rgba(84, 107, 65, 0.12);
  color: var(--accent);
  font-weight: 700;
}

.danger-button {
  min-height: 50px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #8d4b2e, #c96d3c);
  color: #fff;
  font-weight: 800;
}

.danger-button.small-button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
}

.danger-form {
  max-width: 360px;
}

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

.inline-grid label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.data-table th,
.data-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid rgba(84, 107, 65, 0.12);
}

.data-table th {
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.inline-form select {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0 12px;
  background: #fff;
}

.inline-form button {
  cursor: pointer;
}

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

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.timeline-item span {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  margin-top: 6px;
  background: rgba(84, 107, 65, 0.2);
  border: 3px solid rgba(84, 107, 65, 0.1);
}

.timeline-item.active span {
  background: var(--accent);
  border-color: rgba(84, 107, 65, 0.18);
}

.timeline-item strong {
  display: block;
}

.timeline-item p {
  margin: 4px 0 0;
  color: var(--muted);
}

.food-hero {
  align-items: start;
}

.panel-copy {
  color: var(--muted);
  line-height: 1.7;
}

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

.badge-row span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(153, 173, 122, 0.18);
  color: var(--accent);
  font-weight: 700;
}

.metric-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-card strong {
  font-size: 1.8rem;
}

.metric-card span {
  color: var(--muted);
}

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

@media (max-width: 1024px) {
  .grid-two,
  .metrics-grid,
  .inline-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .grid-two,
  .metrics-grid,
  .inline-grid {
    grid-template-columns: 1fr;
  }

  .summary-card,
  .feature-meta,
  .detail-metrics {
    flex-direction: column;
  }

  .card-actions,
  .top-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .mobile-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
