
body { background: #e8ece9; }
.phone {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100dvh;
  background: #fff;
  position: relative;
  padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  box-shadow: 0 0 0 1px #e5ebe6, var(--shadow);
}
.app-header {
  position: sticky; top: 0; z-index: 8;
  display: flex; align-items: center; justify-content: space-between;
  padding: .45rem .7rem .15rem;
  background: #fff;
}
.header-logo img { width: 148px; height: auto; margin: 0 auto; }
.header-logo { flex: 1; display: flex; justify-content: center; }
.icon-btn {
  width: 42px; height: 42px; border: 0; background: transparent;
  color: var(--green); cursor: pointer; display: grid; place-items: center;
}
.deliver-row {
  display: flex; align-items: center; gap: .55rem;
  width: calc(100% - 1.6rem); margin: .15rem .8rem .7rem;
  border: 0; background: #fff; text-align: left; cursor: pointer;
  color: var(--ink);
}
.deliver-row small { display: block; color: var(--muted); font-size: 12px; }
.deliver-row strong { font-size: 14.5px; }
.deliver-row .pin { color: var(--green); }
.deliver-row > span:nth-child(2) { flex: 1; }
.search-row {
  display: flex; gap: .55rem; padding: 0 .8rem; align-items: center;
}
.search-box {
  flex: 1; display: flex; align-items: center; gap: .45rem;
  background: #f3f5f4; border-radius: 999px; padding: 0 .9rem;
  min-height: 46px; color: var(--muted);
}
.search-box input {
  border: 0; background: transparent; width: 100%; outline: none;
  color: var(--ink); font-size: 14px;
}
.filter-btn {
  width: 46px; height: 46px; border: 0; border-radius: 14px;
  background: var(--green); color: var(--on-green); cursor: pointer; display: grid; place-items: center;
}
.chips {
  display: flex; gap: .55rem; overflow-x: auto;
  padding: .9rem .8rem .4rem;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; width: 64px; text-align: center;
  border: 0; background: transparent; cursor: pointer; color: var(--ink);
  font-size: 12px; font-weight: 600; padding: 0;
}
.chip .bubble {
  width: 56px; height: 56px; border-radius: 18px; margin: 0 auto .35rem;
  background: #f4f6f5; display: grid; place-items: center; overflow: hidden;
  font-size: 22px; box-shadow: 0 1px 4px rgba(16,40,24,.06);
}
.chip .bubble img { width: 100%; height: 100%; object-fit: cover; }
.chip.active { color: var(--green); font-weight: 800; }
.chip.active .bubble { background: var(--green); color: var(--on-green); }

.promo {
  margin: .85rem .8rem .35rem;
  background: linear-gradient(100deg, var(--green-dark) 0%, var(--green-deep) 42%, var(--green) 78%);
  border-radius: 24px; color: #fff; overflow: hidden;
  display: grid; grid-template-columns: 1.05fr .95fr; min-height: 176px;
  position: relative;
}
.promo-copy { padding: 1.1rem 0 1.1rem 1.1rem; z-index: 1; }
.promo h1 { font-size: 1.22rem; line-height: 1.18; margin: 0 0 .4rem; font-weight: 800; }
.promo p { margin: 0 0 .8rem; font-size: 11.5px; opacity: .95; font-weight: 500; }
.promo-btn { background: #fff; color: var(--green-deep); min-height: 34px; padding: .3rem .85rem; font-size: 12.5px; font-weight: 800; }
.promo-btn:hover { background: var(--mint); color: var(--green-deep); }
.promo-img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.promo-dots { display: flex; justify-content: center; gap: .3rem; margin: 0 0 .7rem; }
.promo-dots i { width: 6px; height: 6px; border-radius: 50%; background: #c9d6cc; display: block; }
.promo-dots i.on { background: var(--green); }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: .4rem .9rem;
}
.section-head h2 { font-size: 1.05rem; margin: 0; }
.section-head a { font-size: 13px; font-weight: 700; text-decoration: none; }
.tag-icon { margin-right: .2rem; }

.popular-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 1.2rem) / 3);
  gap: .6rem; overflow-x: auto; padding: 0 .8rem 1rem;
  scrollbar-width: none;
}
.popular-row::-webkit-scrollbar { display: none; }
.rest-card {
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow); text-decoration: none; color: inherit;
  display: block; border: 1px solid #f0f3f1; position: relative;
}
.rest-card .thumb {
  height: 92px; width: 100%; object-fit: cover; background: #eef3ef;
}
.rest-card .body { padding: .55rem .65rem .7rem; }
.rest-card h3 { margin: 0 0 .15rem; font-size: .95rem; }
.meta { color: var(--muted); font-size: 11px; margin: 0; }
.star { color: #f5b400; }
.fee { color: var(--green); font-size: 12px; font-weight: 700; margin: .2rem 0 0; }
.heart {
  position: absolute; top: 8px; right: 8px;
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.92); color: #888; cursor: pointer;
  display: grid; place-items: center;
}
.heart.on { color: #e35d6a; }

.offer-card {
  margin: 0 .8rem 1.2rem; background: #fff; border-radius: 18px;
  box-shadow: var(--shadow); border: 1px solid #f0f3f1;
  display: grid; grid-template-columns: 96px 1fr auto; gap: .7rem;
  align-items: center; padding: .55rem;
}
.offer-card img { width: 96px; height: 80px; object-fit: cover; border-radius: 12px; }
.offer-card h3 { margin: 0; font-size: .95rem; }
.offer-card .price { font-weight: 800; color: var(--green); }
.offer-card .was { color: var(--muted); text-decoration: line-through; font-weight: 500; margin-left: .25rem; }
.offer-card .btn { min-height: 36px; padding: .35rem .7rem; font-size: 12px; }

.tabbar {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(430px, 100%);
  background: #fff; border-top: 1px solid var(--line);
  display: flex; justify-content: space-around;
  padding: .35rem .2rem calc(.35rem + env(safe-area-inset-bottom, 0px));
  z-index: 15;
  pointer-events: auto;
}
.tab {
  flex: 1; text-align: center; text-decoration: none;
  color: #8a9690; font-size: 11px; font-weight: 600;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: .25rem 0;
}
.tab { position: relative; }
.tab.active { color: var(--green); }
.tab.active::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 22px; height: 3px; border-radius: 3px 3px 0 0; background: var(--green);
}
.tab svg { display: block; }

.page-title { font-size: 1.35rem; margin: .4rem .9rem .7rem; }
.demo-note, .muted, .fine { color: var(--muted); padding: 0 .9rem; }
.fine { font-size: 13px; margin-top: 1.5rem; }
.list { padding: 0 .8rem 1rem; display: grid; gap: .8rem; }
.list .rest-card { display: grid; grid-template-columns: 110px 1fr; }
.list .rest-card .thumb { height: 100%; min-height: 96px; }
.back-link {
  border: 0; background: transparent; color: var(--green);
  font-weight: 700; padding: .5rem .9rem; cursor: pointer;
}

.rest-hero img { width: 100%; height: 180px; object-fit: cover; }
.rest-hero .info { padding: .8rem .9rem 0; }
.rest-hero h2 { margin: 0 0 .2rem; }
.menu-item {
  display: grid; grid-template-columns: 1fr auto; gap: .6rem;
  padding: .85rem .9rem; border-bottom: 1px solid var(--line);
  align-items: center;
}
.menu-item h3 { margin: 0; font-size: 1rem; }
.menu-item p { margin: .15rem 0 0; color: var(--muted); font-size: 13px; }
.menu-item .price { color: var(--green); font-weight: 800; }
.menu-item .btn { min-height: 40px; padding: .4rem .9rem; }

.cart-items { list-style: none; margin: 0; padding: 0 .9rem; }
.cart-items li {
  display: flex; justify-content: space-between; gap: .6rem;
  padding: .75rem 0; border-bottom: 1px solid var(--line);
}
.qty { display: flex; align-items: center; gap: .4rem; }
.qty button {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--page); cursor: pointer; font-weight: 700;
}
.cart-total {
  display: flex; justify-content: space-between;
  padding: .9rem; font-size: 1.05rem;
}
#go-checkout, #checkout-form, #view-partner form, #view-drive form { margin: 0 .9rem 1rem; }
form { display: grid; gap: .8rem; }
label { display: grid; gap: .3rem; font-weight: 700; font-size: 14px; }
input[type="text"], input[type="tel"], input[type="email"] {
  border: 1px solid var(--line); border-radius: 12px; padding: .8rem .85rem; min-height: 48px;
}
fieldset { border: 1px solid var(--line); border-radius: 12px; }
.choice { display: flex; align-items: center; gap: .5rem; min-height: 44px; font-weight: 650; }
.hint { font-weight: 500; color: var(--muted); }
.honeypot { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.success { margin: .9rem; background: var(--green-soft); color: var(--green-deep); padding: .9rem; border-radius: 12px; }
.cart-summary { color: var(--muted); }

.account-card {
  margin: 0 .9rem 1rem; display: flex; gap: .75rem; align-items: center;
  background: var(--green-soft); border-radius: 16px; padding: .9rem;
}
.avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--green); color: var(--on-green); font-weight: 800;
  display: grid; place-items: center;
}
.account-links { display: grid; margin: 0 .9rem; }
.account-links a {
  padding: .95rem 0; border-bottom: 1px solid var(--line);
  text-decoration: none; font-weight: 650; color: var(--ink);
}

.order-card {
  margin: 0 .9rem .7rem; border: 1px solid var(--line);
  border-radius: 16px; padding: .85rem;
}
.order-card strong { display: block; margin-bottom: .2rem; }

.cart-fab {
  position: fixed; right: calc(50% - min(215px, 50vw) + 1rem); bottom: 92px; z-index: 10;
  background: var(--green); color: var(--on-green); border: 0; border-radius: 999px;
  min-height: 48px; padding: 0 1rem; font-weight: 800; cursor: pointer;
  box-shadow: 0 8px 20px rgba(73,141,87,.35);
}
.cart-fab span {
  display: inline-flex; min-width: 1.3rem; height: 1.3rem;
  background: #fff; color: var(--green); border-radius: 999px;
  align-items: center; justify-content: center; margin-left: .3rem; font-size: 12px;
}

.drawer, .sheet-wrap {
  position: fixed; inset: 0; background: rgba(16,28,20,.4); z-index: 20;
}
.drawer:not([hidden]) { display: block; }
.drawer-panel {
  width: min(300px, 84%); height: 100%; background: #fff; padding: 1rem;
  display: flex; flex-direction: column; gap: .2rem;
}
.drawer-logo { width: 120px; margin: .4rem 0 1rem; }
.drawer-panel a {
  text-decoration: none; color: var(--ink); font-weight: 650;
  padding: .8rem 0; border-bottom: 1px solid var(--line);
}
.drawer-close { align-self: flex-end; border: 0; background: transparent; color: var(--green); font-weight: 700; cursor: pointer; }
.sheet {
  position: fixed; inset: 0; background: rgba(16,28,20,.4); z-index: 20;
}
.sheet:not([hidden]) { display: flex; align-items: flex-end; justify-content: center; }
.sheet-card {
  background: #fff; width: min(430px, 100%); border-radius: 20px 20px 0 0;
  padding: 1.1rem 1.1rem 1.4rem;
}
.sheet-card button.option {
  display: block; width: 100%; text-align: left; border: 0; background: #fff;
  padding: .85rem 0; border-bottom: 1px solid var(--line); cursor: pointer; font-weight: 650;
}
.empty { color: var(--muted); padding: 1rem .9rem; }

.fairprice, .freedom-card, .rewards-card, .resolve-box {
  margin: 0 .9rem 1rem; background: var(--green-soft); border-radius: 16px; padding: .9rem;
}
.fairprice { background: #fff; border: 1px solid var(--line); }
.fairprice h3, .freedom-card h3, .resolve-box h3 { margin: 0 0 .25rem; font-size: 1rem; color: var(--green-deep); }
.fairprice dl { margin: .6rem 0 0; }
.fairprice dl div { display: flex; justify-content: space-between; padding: .28rem 0; font-size: 15px; }
.fairprice .total { font-weight: 800; font-size: 1.05rem; border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .5rem; }
.tip-lab { margin-top: .7rem; }
.gd-cta { margin: 0 .9rem 1rem; color: var(--muted); font-size: 14px; }
.rewards-card { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; border-radius: 10px; overflow: hidden; margin: .6rem 0; }
.mini-table th, .mini-table td { text-align: left; padding: .4rem .5rem; border-bottom: 1px solid var(--line); }
.mini-table .hi td { font-weight: 800; color: var(--green-deep); }
.note { color: var(--muted); font-size: 12.5px; margin: .35rem 0 0; padding: 0; }
.or { text-align: center; color: var(--muted); font-weight: 700; }
#view-groupdrop label, #view-groupdrop .btn, #view-groupdrop .freedom-card { margin-left: .9rem; margin-right: .9rem; }
#view-groupdrop label { display: grid; gap: .3rem; font-weight: 700; font-size: 14px; margin-bottom: .7rem; }
.status { display: inline-block; background: var(--mint); color: var(--green-deep); border-radius: 999px; padding: .1rem .45rem; font-size: 12px; font-weight: 800; }
#resolve-form:not([hidden]) { display: grid; gap: .7rem; margin-top: .7rem; }
#resolve-form .btn, #gd-active .btn { margin-left: 0; margin-right: 0; }
#gd-active .btn { margin: .5rem .9rem; width: calc(100% - 1.8rem); }
#gd-pay { display: flex; }

.popular-row .rest-card .thumb { height: 88px; }
.popular-row .rest-card .body { padding: .4rem .45rem .55rem; }
.popular-row .rest-card h3 { font-size: .78rem; line-height: 1.2; margin-bottom: .2rem; }
.popular-row .fee { font-size: 11px; }
.fee { display: flex; align-items: center; gap: .25rem; }
.fee svg { flex: 0 0 auto; }
.tab { padding-bottom: .4rem; }
.tab .badge {
  position: absolute; top: 0; right: calc(50% - 16px);
  min-width: 14px; height: 14px; padding: 0 3px;
  background: var(--green); color: var(--on-green); border-radius: 99px;
  font-size: 9px; line-height: 14px; font-weight: 800;
}
.filter-btn { border-radius: 12px; }
.heart { font-size: 14px; }

.promo h1 { font-size: 1.12rem; }
.crave-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .45rem .25rem;
  padding: .1rem .7rem 1rem;
}
.crave-grid .chip { width: auto; }
.explore-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .4rem;
  padding: 0 .8rem 1.15rem;
}
.explore-tile {
  border: 0;
  background: var(--mint);
  border-radius: 16px;
  padding: .65rem .25rem .55rem;
  text-align: center;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}
.explore-tile .emoji { display: block; font-size: 22px; margin-bottom: .28rem; }
.cat-group { padding: 0 .7rem 1.15rem; }
.cat-group h3 {
  font-size: .8rem;
  letter-spacing: .02em;
  color: var(--green-dark);
  margin: .55rem .2rem .55rem;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .7rem .35rem;
}
.cat-grid .chip {
  width: auto;
  min-width: 0;
  white-space: normal;
  line-height: 1.2;
  font-size: 11.5px;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.cat-grid .chip .bubble { width: 56px; height: 56px; }
.filter-bar {
  margin: 0 .9rem .8rem;
  display: flex; align-items: center; gap: .55rem; flex-wrap: wrap;
}
.filter-bar:not([hidden]) { display: flex; }
.filter-bar .pill {
  background: var(--mint-deep);
  color: var(--on-green);
  border-radius: 999px;
  padding: .35rem .7rem;
  font-weight: 700;
  font-size: 13px;
}
.filter-bar .clear {
  border: 0; background: transparent; color: var(--green);
  font-weight: 700; cursor: pointer; padding: .35rem 0;
}

.section-sub { color: var(--muted); font-size: 12.5px; padding: 0 .9rem .55rem; margin: 0; }
#lastcall-row, #browse-deals { display: grid; gap: .7rem; padding: 0 .8rem 1.15rem; }
.deal-card {
  background: #fff; border: 1px solid #f0f3f1; border-radius: 18px;
  box-shadow: var(--shadow);
  display: grid; grid-template-columns: 88px 1fr auto; gap: .65rem;
  align-items: center; padding: .55rem;
}
.deal-card img { width: 88px; height: 88px; object-fit: cover; border-radius: 12px; background: #eef3ef; }
.deal-card h3 { margin: 0 .15rem 0 0; font-size: .95rem; }
.deal-card .deal-rest { margin: 0 0 .15rem; font-size: 11px; font-weight: 700; color: var(--green-dark); }
.deal-card .price { font-weight: 800; color: var(--green); }
.deal-card .was { color: var(--muted); text-decoration: line-through; font-weight: 500; margin-right: .25rem; }
.deal-card .off {
  display: inline-block; margin-left: .2rem;
  background: var(--mint-deep); color: var(--on-green);
  border-radius: 999px; padding: .08rem .4rem; font-size: 11px; font-weight: 800;
}
.deal-card .countdown { margin: .2rem 0 0; font-size: 12px; font-weight: 800; color: var(--green-dark); }
.deal-card .btn { min-height: 36px; padding: .35rem .7rem; font-size: 12px; }
.deal-card .btn[disabled] { opacity: .55; cursor: default; }
.list .deal-card { grid-template-columns: 88px 1fr auto; }

.agree { margin: 0 .9rem 0; color: var(--muted); font-size: 13px; }
#checkout-form .agree { margin: 0; }
.rc-choices { display: grid; gap: .45rem; margin: .4rem 0 .6rem; }
.rc-choices button, .rc-choice {
  display: block; width: 100%; text-align: left;
  border: 1px solid var(--line); background: #fff; border-radius: 12px;
  padding: .75rem .8rem; font-weight: 650; cursor: pointer; color: var(--ink);
}
.rc-choices button.on, .rc-choice.on { border-color: var(--green); background: var(--mint); color: var(--on-green); }
.rc-outcome {
  border-radius: 14px; padding: .85rem; margin: .2rem 0 .7rem;
  background: var(--mint); border: 1px solid var(--mint-deep);
}
.rc-outcome h4 { margin: 0 0 .3rem; color: var(--green-deep); }
.rc-outcome.none { background: #f6f3ee; border-color: #eadfce; }
.rc-outcome.none h4 { color: #7a5a2e; }
.rc-outcome.partial { background: var(--green-soft); }
.rc-note { font-size: 13px; color: var(--muted); margin: .4rem 0 0; }
