:root {
  --yellow: #FFCC00;
  --yellow-deep: #F0B400;
  --yellow-soft: #FFE566;
  --yellow-wash: #FFF8D6;
  --white: #FFFFFF;
  --paper: #FFFFFF;
  --ink: #0A0A0A;
  --ink-soft: #222222;
  --muted: #555555;
  --line: #E6E6E6;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  --radius: 18px;
  --font: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --header-h: 74px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--ink);
  min-height: 100vh;
  padding-bottom: 96px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

.app-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--yellow);
  border-bottom: 2px solid var(--ink);
}
.app-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0.75rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}
.brand img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--ink);
  background: var(--white);
}
.brand-text { min-width: 0; }
.brand-name {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}
.brand-tag {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn {
  border: 0;
  cursor: pointer;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.72rem 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-primary {
  background: var(--ink);
  color: var(--yellow);
}
.btn-primary:hover { background: #000; }
.btn-yellow {
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-dark { background: var(--ink); color: var(--yellow); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-site {
  background: var(--ink);
  color: var(--yellow);
  font-size: 0.86rem;
  padding: 0.65rem 0.95rem;
  border: 2px solid var(--ink);
}
.btn-block { width: 100%; }
.btn-sm { padding: 0.5rem 0.85rem; font-size: 0.88rem; }

.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--white);
  border: 2px solid var(--ink);
  color: var(--ink);
  font-weight: 800;
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
}
.cart-pill [data-cart-count] {
  min-width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--yellow);
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.28rem;
}
.user-chip {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ink);
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu {
  position: relative;
}
.account-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  min-width: 220px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 0.45rem;
  display: none;
  z-index: 70;
}
.account-menu.open .account-dropdown { display: grid; }
.account-dropdown a, .account-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
}
.account-dropdown a:hover, .account-dropdown button:hover {
  background: var(--yellow-wash);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem 1.1rem 2rem;
}

.discover-hero {
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 28px;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  margin-bottom: 1.25rem;
  box-shadow: 8px 8px 0 var(--ink);
}
.discover-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--ink);
  color: var(--yellow);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}
.discover-hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 12ch;
  color: var(--ink);
}
.discover-hero h1 span {
  background: var(--white);
  border: 2px solid var(--ink);
  padding: 0 0.12em;
  border-radius: 0.15em;
}
.discover-hero p {
  margin: 0.9rem 0 0;
  color: var(--ink);
  max-width: 40ch;
  font-size: 1.05rem;
  font-weight: 600;
  opacity: 0.9;
}
.search-shell {
  margin-top: 1.35rem;
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.search-shell input {
  flex: 1;
  min-width: 220px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 1rem 1.2rem;
  background: var(--white);
  font-size: 1rem;
  font-weight: 600;
}
.search-shell input:focus {
  outline: 3px solid rgba(0,0,0,.15);
}

.chips {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.15rem 0 1rem;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
}
.chip.active {
  background: var(--yellow);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.4rem 0 0.9rem;
}
.section-head h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.section-head span { color: var(--muted); font-size: 0.9rem; font-weight: 700; }

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}
.resto-card {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .15s ease;
  display: flex;
  flex-direction: column;
}
.resto-card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.resto-media {
  position: relative;
  height: 180px;
  background: var(--yellow);
  overflow: hidden;
}
.resto-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}
.rating-badge {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  background: var(--ink);
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
}
.resto-body { padding: 1rem 1rem 1.1rem; }
.resto-body h3 {
  margin: 0 0 0.25rem;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}
.resto-cuisine {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
  font-weight: 600;
}
.resto-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 800;
}

.auth-wrap {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}
.auth-visual {
  background: var(--yellow);
  color: var(--ink);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
  border-right: 2px solid var(--ink);
}
.auth-visual h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  max-width: 8ch;
}
.auth-visual p {
  margin: 1rem 0 0;
  font-size: 1.05rem;
  max-width: 30ch;
  font-weight: 700;
}
.auth-panel {
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
  background: var(--white);
}
.auth-card { width: min(420px, 100%); }
.auth-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.85rem;
  letter-spacing: -0.04em;
}
.auth-card .lead {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-weight: 600;
}
.field { margin-bottom: 0.95rem; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}
.field input, .field textarea, .field select {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  background: var(--white);
  font-weight: 600;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 3px solid rgba(255, 204, 0, 0.55);
  border-color: var(--yellow-deep);
}
.auth-links {
  margin-top: 1.2rem;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}
.auth-links a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.field-hint {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.alert {
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  font-weight: 700;
  border: 2px solid var(--ink);
}
.alert-error { background: var(--ink); color: var(--yellow); }
.alert-success { background: var(--yellow); color: var(--ink); }
.alert-info { background: var(--white); color: var(--ink); }

.resto-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.resto-cover {
  min-height: 260px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--yellow);
  border: 2px solid var(--ink);
}
.resto-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center; min-height: 260px; }
.resto-summary {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 28px;
  padding: 1.35rem;
  box-shadow: 6px 6px 0 var(--ink);
}
.resto-summary h1 {
  margin: 0.4rem 0 0.5rem;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.04em;
}
.menu-list { display: grid; gap: 0.8rem; }
.menu-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 0.9rem;
  align-items: center;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 0.85rem;
}
.menu-thumb {
  width: 96px;
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center;
  background: var(--yellow);
  border: 1.5px solid var(--ink);
}
.menu-thumb.placeholder {
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.72rem;
}
.cart-thumb {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center;
  border: 1.5px solid var(--ink);
  background: var(--yellow);
  flex-shrink: 0;
}
.fulfill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}
.fulfill-pill {
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--white);
}
.fulfill-pill.on { background: var(--yellow); }
.fulfill-pill.off { opacity: 0.45; text-decoration: line-through; }
.fulfill-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.45rem;
}
.fulfill-toggle button {
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 0.85rem 0.75rem;
  background: var(--white);
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}
.fulfill-toggle button.active { background: var(--yellow); }
.fulfill-toggle button:disabled { opacity: 0.4; cursor: not-allowed; }
.fulfill-toggle small {
  display: block;
  margin-top: 0.25rem;
  font-weight: 600;
  color: var(--muted);
}
.fee-note {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-backdrop.show { display: flex; }
.modal-sheet {
  width: min(520px, 100%);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 24px;
  padding: 1.2rem;
  max-height: min(85vh, 680px);
  overflow: auto;
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
}
@media (max-width: 640px) {
  .modal-backdrop { align-items: flex-end; padding: 0; }
  .modal-sheet {
    width: 100%;
    border-radius: 24px 24px 0 0;
    max-height: 88vh;
  }
}
.addon-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.addon-row-main {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
.addon-thumb {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  border: 1.5px solid var(--ink);
  flex-shrink: 0;
  background: var(--yellow);
}
.addon-thumb.placeholder {
  display: grid;
  place-items: center;
  font-size: 0.55rem;
  font-weight: 900;
}
.extra-item {
  background: #fffdf3;
}
.stars button {
  background: none;
  border: 0;
  font-size: 1.5rem;
  cursor: pointer;
  color: #ccc;
}
.stars button.on { color: var(--yellow-deep); }

.menu-item h4 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.menu-item p { margin: 0; color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.price { font-weight: 900; color: var(--ink); }

.layout-2 {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 1rem;
}
.panel {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow: 5px 5px 0 var(--ink);
}
.panel h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}
.cart-row, .order-row, .list-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}
.qty { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.4rem; flex-wrap: wrap; }
.cart-remove { margin-left: 0.15rem; }
.qty button {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  cursor: pointer;
  font-weight: 900;
}
.totals .row.extra {
  font-size: 0.84rem;
  font-weight: 600;
  padding-left: 0.7rem;
}
.totals .row .free,
.extra-lines .free {
  color: #0a7a32;
  font-weight: 800;
}
.extra-lines {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.18rem;
  min-width: 180px;
}
.extra-lines li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}
.address-cards {
  display: grid;
  gap: 0.55rem;
}
.address-card {
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 0.75rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  background: var(--white);
}
.address-card.on { background: var(--yellow); }
.loc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.55rem;
}

.pay-options { display: grid; gap: 0.65rem; margin: 1rem 0; }
.pay-option {
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  cursor: pointer;
  background: var(--white);
}
.pay-option.active {
  background: var(--yellow);
}
.status-pill {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--yellow);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: capitalize;
}

.profile-hero {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 24px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 5px 5px 0 var(--ink);
}
.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--yellow);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.4rem;
  border: 2px solid var(--ink);
  overflow: hidden;
  flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.menu-links { display: grid; gap: 0.65rem; }
.menu-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.1rem;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--white);
  font-weight: 800;
  box-shadow: 3px 3px 0 var(--ink);
}
.menu-link:hover { background: var(--yellow-wash); }

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.support-card {
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 1.1rem;
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
}
.support-card.highlight { background: var(--yellow); }
.support-card h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.support-card p { margin: 0; font-weight: 700; color: var(--ink-soft); }
.faq-item {
  border: 2px solid var(--ink);
  border-radius: 16px;
  margin-bottom: 0.65rem;
  overflow: hidden;
  background: var(--white);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: var(--white);
  border: 0;
  padding: 1rem 1.1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq-a {
  display: none;
  padding: 0 1.1rem 1rem;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.5;
}
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q { background: var(--yellow); }

.empty, .loading {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
  font-weight: 700;
}

.sticky-cart {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 1.5rem));
  z-index: 60;
  display: none;
}
.sticky-cart.show { display: block; }
.sticky-cart a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--ink);
  color: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.95rem 1.15rem;
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
  font-weight: 800;
}
.sticky-cart .left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.sticky-cart .count {
  background: var(--yellow);
  color: var(--ink);
  min-width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  letter-spacing: -0.04em;
}
.page-sub {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 900px) {
  .auth-wrap,
  .resto-hero,
  .layout-2,
  .support-grid { grid-template-columns: 1fr; }
  .auth-visual { min-height: 220px; border-right: 0; border-bottom: 2px solid var(--ink); }
  .brand-tag { display: none; }
  .user-chip { display: none; }
  .btn-site span { display: none; }
  .discover-hero h1 { max-width: none; }
  .discover-hero p { max-width: none; }
}
@media (max-width: 560px) {
  body { padding-bottom: 110px; }
  .nav-actions .btn-ghost { display: none; }
  .discover-hero h1 { max-width: none; font-size: clamp(1.7rem, 9vw, 2.35rem); }
  .discover-hero p { max-width: none; }
  .search-shell { flex-direction: column; }
  .search-shell input { min-width: 0; width: 100%; }
}
