:root {
  --bg-1: #f7f8f4;
  --bg-2: #ebf2ea;
  --ink: #15231b;
  --muted: #5a6a5f;
  --line: #d7e1d5;
  --brand: #0f8a5f;
  --brand-2: #f59e0b;
  --surface: #ffffff;
  --danger: #c0392b;
  --shadow: 0 10px 34px rgba(34, 57, 40, 0.1);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  font-family: 'Manrope', "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f0f4f0;
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
  overflow-x: hidden;
}

.bg-shape {
  position: fixed;
  z-index: -1;
  filter: blur(80px);
  border-radius: 50%;
  opacity: 0.5;
}
.bg-shape-a {
  width: 400px;
  height: 400px;
  background: #0f8a5f;
  top: -100px;
  right: -100px;
}
.bg-shape-b {
  width: 300px;
  height: 300px;
  background: #f59e0b;
  bottom: -50px;
  left: -50px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.tenant-branding {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tenant-logo-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: var(--line);
  border: 1px solid var(--line);
}
.eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
h1 {
  margin: 2px 0 0;
  font-family: "Space Grotesk", Manrope, sans-serif;
  font-size: 23px;
}
.app {
  max-width: 720px;
  margin: 0 auto;
  padding: 14px;
  display: grid;
  gap: 16px;
.panel {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.method-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  background: rgba(0,0,0,0.03);
  padding: 4px;
  border-radius: 12px;
}
.method-btn {
  flex: 1;
  position: relative;
  cursor: pointer;
  text-align: center;
}
.method-btn input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}
.method-btn span {
  display: block;
  padding: 10px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.2s;
}
.method-btn input:checked + span {
  background: var(--surface);
  color: var(--brand);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.checkout-fields {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.form-row {
  display: flex;
  gap: 15px;
}
.form-row .field {
  flex: 1;
}
input[type="text"] {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: inherit;
  font-size: 14px;
}
input[type="text"]:focus {
  outline: none;
  border-color: var(--brand);
} animation: fade-up 0.35s ease both;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.tenant-row, .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.section-head.compact { margin-top: 14px; }
h2, h3 { margin: 0; font-size: 18px; }
.pill {
  border-radius: 999px;
  padding: 6px 10px;
  background: #e8f6ef;
  color: #0d6a49;
  font-size: 12px;
  font-weight: 700;
}
.pill.muted {
  background: #eef3ee;
  color: var(--muted);
}
.auth-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  background: #fbfcfb;
  color: var(--ink);
}
input:focus, textarea:focus {
  outline: none;
  border-color: #91c6aa;
  box-shadow: 0 0 0 3px rgba(145, 198, 170, 0.18);
}
.btn {
  border: none;
  border-radius: 12px;
  padding: 11px 14px;
  background: linear-gradient(135deg, var(--brand), #0e7f7a);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn.ghost {
  background: #edf3ec;
  color: #2f4638;
}
.btn.wide { width: 100%; margin-top: 8px; }
.legal-info p {
  margin: 4px 0;
  font-size: 13px;
  line-height: 1.5;
}
.legal-info strong {
  color: var(--muted);
  font-weight: 500;
  margin-right: 4px;
}
.hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: #fff;
  white-space: nowrap;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}
.chip.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), #0e7f7a);
}
.products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.product {
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s;
}
.product:active {
  transform: scale(0.98);
}
.product-img {
  width: 100%;
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  border-radius: 14px;
  margin-bottom: 12px;
  background-color: #f0f0f0;
}
.product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.product-name { margin: 0; font-weight: 800; }
.price { font-weight: 800; color: #0d6a49; }
.meta { margin: 3px 0 10px; font-size: 12px; color: var(--muted); }
.stack { display: grid; gap: 8px; }
.cart-item, .order-item, .profile-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: #fcfffc;
}
.cart-row, .order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.qty button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 0;
  background: #e7efe7;
  font-weight: 800;
  cursor: pointer;
}
.status {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
  background: #edf3ec;
  color: #45614f;
}
.status.DELIVERED { background: #dff6e8; color: #1d7449; }
.status.CANCELLED { background: #fde9e7; color: var(--danger); }
.soft-box {
  border: 1px dashed #bfd0be;
  border-radius: 12px;
  padding: 10px;
  color: var(--muted);
  font-size: 13px;
}
.label {
  display: block;
  margin: 10px 0 6px;
  font-size: 13px;
  color: var(--muted);
}
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}
.nav-btn {
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 14px;
  padding: 10px 6px;
  background: rgba(255, 255, 255, 0.5);
  font-family: "Sora", Manrope, sans-serif;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.nav-btn.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), #0e7f7a);
  box-shadow: 0 4px 12px rgba(15, 138, 95, 0.3);
}
@media (min-width: 800px) {
  .products { grid-template-columns: 1fr 1fr; }
}

