:root {
  --bg: #f6f6f1;
  --surface: #ffffff;
  --surface-alt: #eff3ec;
  --text: #111111;
  --muted: #5d5d5d;
  --line: rgba(17, 17, 17, 0.08);
  --brand: #06c167;
  --brand-dark: #049451;
  --brand-soft: #dff8ea;
  --shadow: 0 20px 45px rgba(17, 17, 17, 0.08);
  --radius-lg: 28px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(6, 193, 103, 0.13), transparent 28%),
    radial-gradient(circle at top right, rgba(0, 0, 0, 0.05), transparent 20%),
    var(--bg);
  color: var(--text);
  overflow-x: clip;
}
body, main, section, header, footer, div, article, aside, form { max-width: 100%; }
.progress-bar-top {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, #12df7b, #111111);
  z-index: 40;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(calc(100% - 32px), var(--container)); margin: 0 auto; }
.section { padding: 84px 0; }
.site-header {
  position: sticky; top: 0; z-index: 20; backdrop-filter: blur(16px);
  background: rgba(246, 246, 241, 0.84); border-bottom: 1px solid var(--line);
}
.nav, .list-row, .status-row, .split-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.nav { min-height: 76px; gap: 20px; }
.nav > *, .hero-grid > *, .menu-layout > *, .section-title > *, .list-row > *, .status-row > *, .split-row > * { min-width: 0; }
.list-row, .status-row, .split-row { flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 1.15rem; font-weight: 800; }
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), #12df7b); color: white; font-weight: 900;
}
.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 14px;
}
.nav-links, .nav-actions, .hero-actions, .stack-inline { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.nav-links a, .ghost-button { color: var(--muted); }
.button, .ghost-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px; padding: 14px 20px; border: 0; cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.button:hover, .ghost-button:hover { transform: translateY(-1px); }
.button { background: var(--text); color: white; }
.button.brand { background: var(--brand); color: white; }
.button.outline { background: white; color: var(--text); border: 1px solid var(--line); }
.ghost-button { background: transparent; }

.hero {
  padding: 0;
  min-height: 100vh;
  display: grid;
  align-items: stretch;
}

.hero-full {
  width: 100%;
}

.hero-grid, .menu-layout, .auth-shell, .dashboard-grid, .hero-single {
  display: grid; gap: 24px; align-items: start;
}
.hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
.hero-single { justify-items: stretch; gap: 0; }
.hero-copy h1, .section-title h2, .page-title h1 {
  margin: 0; line-height: 0.96; letter-spacing: -0.05em;
}
.hero-copy h1 { font-size: clamp(2.6rem, 5vw, 5.4rem); margin-bottom: 20px; }
.hero-copy p, .section-title p, .page-title p, .subtle { color: var(--muted); }
.hero-copy p { margin: 0 0 28px; font-size: 1.08rem; max-width: 600px; }
.hero-note { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-note span {
  padding: 10px 14px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
  font-weight: 700;
  color: var(--muted);
}
.card, .panel, .menu-card, .order-card, .stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-media-wrap {
  display: grid;
  width: 100%;
}

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(6, 193, 103, 0.12), transparent 30%),
    linear-gradient(180deg, #ffffff, #eef6f0);
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
}

.hero-card img {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  max-height: none;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  flex: 1 1 auto;
}

.hero-copy-overlay {
  position: absolute;
  inset: auto 0 32px 0;
  z-index: 1;
  color: white;
}
.hero-brand-pill { margin-bottom: 16px; }
.hero-copy-overlay h1 {
  margin-bottom: 0;
  max-width: 900px;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.hero-copy-overlay {
  padding: 0 24px;
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.08), rgba(17, 17, 17, 0.55));
  pointer-events: none;
}
#order-now.section {
  padding-top: 0;
}
.hero-overlay {
  position: absolute; inset: auto 20px 20px 20px; background: rgba(255,255,255,0.92);
  border-radius: 24px; padding: 18px; display: grid; gap: 14px; backdrop-filter: blur(10px);
}
.hero-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pill, .tag, .badge, .order-status {
  display: inline-flex; align-items: center; border-radius: 999px; font-weight: 800;
}
.pill { gap: 8px; padding: 8px 14px; background: var(--brand-soft); color: var(--brand-dark); font-size: 0.9rem; width: fit-content; }
.grid-3, .grid-4, .menu-grid, .cart-items, .list-stack, .orders-stack, .search-bar, .form-grid, .form-stack {
  display: grid; gap: 14px;
}
.category-strip, .testimonial-grid, .faq-list { display: grid; gap: 18px; }
.category-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.category-card {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #eef6f0);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.category-card strong { display: block; margin-bottom: 8px; font-size: 1.2rem; }
.testimonial-band { background: linear-gradient(135deg, #111111, #1f1f1f); color: white; }
.testimonial-band .subtle { color: rgba(255,255,255,0.72); }
.testimonial-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.testimonial-card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}
.faq-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.faq-item h3 { margin: 0 0 10px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card, .panel, .stat-card { padding: 24px; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-title h2, .page-title h1 { font-size: clamp(2rem, 4vw, 3rem); }
.icon-chip {
  width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-alt); font-size: 1.15rem;
}
.page-shell { padding: 34px 0 72px; }
.page-title { margin-bottom: 26px; }
.search-bar { grid-template-columns: 1.3fr 0.8fr 0.8fr auto; }
.order-intro-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 18px;
  background: var(--surface-alt);
}
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.input, .select, .textarea {
  width: 100%; padding: 15px 16px; border-radius: 16px; border: 1px solid var(--line);
  background: white; color: var(--text);
}
.textarea { min-height: 120px; resize: vertical; }
#checkout-panel { scroll-margin-top: 96px; }
.checkout-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-alt);
}
.checkout-section-copy {
  display: grid;
  gap: 6px;
}
.checkout-section-copy p {
  margin: 0;
}
.payment-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.payment-option {
  position: relative;
  display: block;
  cursor: pointer;
}
.payment-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.payment-option-body {
  display: grid;
  gap: 8px;
  min-height: 100%;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.payment-option-single .payment-option-body {
  width: 100%;
}
.payment-option:hover .payment-option-body {
  transform: translateY(-1px);
}
.payment-option strong,
.payment-option .subtle {
  margin: 0;
}
.payment-radio:checked + .payment-option-body {
  border-color: rgba(6, 193, 103, 0.72);
  box-shadow: 0 0 0 3px rgba(6, 193, 103, 0.16);
  background: #f8fff9;
}
.payment-radio:disabled + .payment-option-body {
  opacity: 0.55;
  cursor: not-allowed;
}
.payment-summary {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.72);
}
.menu-layout { grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr); }
.menu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.menu-card { overflow: hidden; }
.menu-card img { width: 100%; height: 128px; object-fit: cover; }
.menu-card-body { padding: 12px; display: grid; gap: 8px; }
.menu-card-body h3, .menu-card-body p { margin: 0; }
.menu-card-body > * { min-width: 0; }
.menu-card-body p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}
.menu-card-body .split-row {
  gap: 8px;
}
.menu-card-body h3 {
  font-size: 1rem;
  line-height: 1.2;
}
.menu-card-body .button {
  padding: 10px 14px;
}
.price { font-weight: 900; font-size: 1.1rem; }
.tag { gap: 8px; background: var(--surface-alt); padding: 8px 12px; color: var(--muted); font-size: 0.85rem; }
.cart-panel { position: sticky; top: 96px; }
.cart-item, .list-item, .order-card {
  border: 1px solid var(--line); border-radius: 18px; padding: 14px; background: rgba(255,255,255,0.72);
}
.order-card { display: grid; gap: 14px; }
.badge.pending, .order-status.pending { background: #fff6dd; color: #8a6100; }
.badge.accepted, .order-status.accepted { background: #e5f7ff; color: #0d7490; }
.badge.assigned, .order-status.assigned { background: #e5f7ff; color: #0d7490; }
.badge.dispatched, .order-status.dispatched { background: #ede9fe; color: #6d28d9; }
.badge.arrived, .order-status.arrived, .badge.received, .order-status.received, .badge.paid { background: #dcfce7; color: #166534; }
.badge.failed { background: #fee2e2; color: #991b1b; }
.tracking-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.tracking-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--surface-alt);
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}
.tracking-step.complete,
.tracking-step.active {
  color: var(--text);
}
.tracking-step.active {
  background: #eef7ff;
  border: 1px solid rgba(13, 116, 144, 0.15);
}
.tracking-step.complete {
  background: var(--brand-soft);
}
.tracking-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.15);
  flex: 0 0 auto;
}
.tracking-step.complete .tracking-dot,
.tracking-step.active .tracking-dot {
  background: var(--brand);
}
.auth-shell { min-height: 100vh; grid-template-columns: 1fr 1fr; }
.auth-showcase {
  position: relative; padding: 44px; background: linear-gradient(135deg, #0f0f0f, #1f1f1f); color: white; overflow: hidden;
}
.auth-showcase::after {
  content: ""; position: absolute; inset: auto -80px -80px auto; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(6, 193, 103, 0.8), transparent 68%);
}
.auth-showcase-card {
  margin-top: 36px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px; padding: 20px; backdrop-filter: blur(12px);
}
.auth-form-wrap { display: grid; place-items: center; padding: 28px; }
.auth-card { width: min(100%, 520px); }
.auth-branding {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}
.auth-branding h1,
.auth-branding p {
  margin: 0;
}
.auth-branding h1 {
  font-size: clamp(2rem, 6vw, 2.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}
.tabs {
  display: inline-grid; grid-template-columns: repeat(2, 1fr); gap: 8px; width: 100%;
  background: var(--surface-alt); border-radius: 18px; padding: 8px; margin-bottom: 24px;
}
.tab-button {
  background: transparent; border: 0; border-radius: 12px; padding: 14px; cursor: pointer; font-weight: 800; color: var(--muted);
}
.tab-button.active { background: white; color: var(--text); box-shadow: 0 8px 20px rgba(17,17,17,0.08); }
.hidden { display: none !important; }
.empty-state { padding: 26px; border-radius: 18px; background: var(--surface-alt); text-align: center; color: var(--muted); }
.mobile-cart-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  padding: 16px 18px;
  border-radius: 22px;
  background: #111111;
  color: white;
  box-shadow: 0 24px 50px rgba(17, 17, 17, 0.32);
}
.mobile-cart-bar span {
  color: rgba(255,255,255,0.72);
}
.subtle.info { color: var(--muted); }
.subtle.success { color: #166534; }
.subtle.error { color: #991b1b; }
.subtle.warning { color: #8a6100; }
.footer { padding: 36px 0 54px; color: var(--muted); }

@media (max-width: 1100px) {
  .hero-grid, .auth-shell, .menu-layout, .dashboard-grid, .hero-single { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-strip, .testimonial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-intro-panel { flex-direction: column; align-items: flex-start; }
  .cart-panel { position: static; }
}

@media (max-width: 780px) {
  .section { padding: 40px 0; }
  .nav { min-height: 70px; flex-wrap: wrap; }
  .nav-links, .grid-3, .grid-4, .form-grid.two, .search-bar { grid-template-columns: 1fr; display: grid; }
  .hero-stat-grid, .category-strip, .testimonial-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .section-title, .list-row, .status-row, .split-row, .hero-actions, .nav-actions { width: 100%; }
  .section-title, .list-row, .status-row, .split-row { align-items: flex-start; }
  .payment-options { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tracking-steps { grid-template-columns: 1fr; }
  .menu-card { border-radius: 22px; }
  .menu-card img { height: 104px; }
  .menu-card-body { padding: 10px; gap: 8px; }
  .menu-card-body h3 { font-size: 0.98rem; line-height: 1.15; }
  .menu-card-body .split-row { display: flex; align-items: flex-start; gap: 8px; }
  .menu-card .button { width: 100%; }
  .price { font-size: 0.95rem; }
  .tag { padding: 6px 10px; font-size: 0.76rem; }
  .button, .ghost-button { padding: 12px 16px; }
  .hero-card { min-height: 74vh; }
  .hero-card img {
    min-height: 74vh;
    object-fit: cover;
    object-position: center;
  }
  .hero-copy h1 { font-size: clamp(2.05rem, 9vw, 3.2rem); }
  .hero-copy-overlay h1 { max-width: 8ch; }
  .hero-copy-overlay { inset: auto 0 18px 0; padding: 0 18px; }
  #order-now.section { padding-top: 0; }
  #order-now .container { padding-top: 0; }
  body.has-mobile-cart { padding-bottom: 92px; }
  .mobile-cart-bar { display: flex; }
}
