:root {
  --app-height: 100vh;
  --app-height-stable: 100svh;
  --app-height-dynamic: 100dvh;
  --bg-red: #c9161f;
  --bg-warm: #f5eee5;
  --shell: #fffdfa;
  --panel: #fcfaf6;
  --panel-soft: #f6f0e8;
  --line: #ebe2d8;
  --text: #16120f;
  --muted: #8a7d72;
  --gold: #ffcf3f;
  --gold-deep: #7a5505;
  --shadow: 0 28px 60px rgba(19, 18, 16, 0.18);
}

body[data-theme="dark"] {
  --shell: #040404;
  --panel: #101114;
  --panel-soft: #15171b;
  --line: #23262d;
  --text: #f7f2eb;
  --muted: #8e897f;
  --shadow: 0 40px 80px rgba(4, 4, 4, 0.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Nunito", sans-serif;
  color: var(--text);
  background: #f7f4ef;
  touch-action: auto;
}

body.modal-open {
  overflow: hidden;
}

button {
  font: inherit;
  touch-action: manipulation;
}

a,
input,
select,
textarea {
  touch-action: manipulation;
}

.scene {
  min-height: var(--app-height);
  display: grid;
  place-items: center;
  padding: 18px;
  position: relative;
  overflow: clip;
}

.phone-shell {
  width: min(100%, 1240px);
}

.phone-frame {
  width: min(100%, 1040px);
  padding: 8px;
  border-radius: 40px;
  background: #fbfaf7;
  box-shadow: 0 24px 50px rgba(19, 18, 16, 0.12);
  margin: 0 auto;
}

.app {
  width: 100%;
  height: min(940px, calc(var(--app-height) - 60px));
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  background: linear-gradient(90deg, #fffefa 0 70%, #f8f5ef 70% 100%);
  border: 2px solid #17130f;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}

.menu-panel {
  padding: 28px 28px 30px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d8c8b6 transparent;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.menu-panel::-webkit-scrollbar,
.cart-items::-webkit-scrollbar,
.category-grid::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.menu-panel::-webkit-scrollbar-thumb,
.cart-items::-webkit-scrollbar-thumb,
.category-grid::-webkit-scrollbar-thumb {
  background: #d8c8b6;
  border-radius: 999px;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.hero-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.brand-mark {
  width: 34px;
  height: 26px;
  display: flex;
  gap: 3px;
  flex: 0 0 auto;
}

.brand-mark span {
  width: 15px;
  height: 26px;
  border: 4px solid #f3c11f;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
}

.hero-route {
  display: grid;
  gap: 4px;
}

.route-badge {
  justify-self: start;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff2c9 0%, #ffe18d 100%);
  color: var(--gold-deep);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.route-copy {
  color: #70645b;
  font-size: .8rem;
  line-height: 1.35;
  max-width: 24ch;
}

.locale-pill {
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.hero-menu-wrap {
  position: relative;
}

.menu-pill {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffaf2 0%, #f7ece1 100%);
  border: 1px solid rgba(230, 217, 205, 0.95);
  box-shadow: 0 10px 22px rgba(24, 18, 13, 0.1);
  gap: 5px;
}

.menu-pill span {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(180deg, #d61d25 0%, #f0c338 100%);
}

.clean-icon {
  display: grid;
  place-items: center;
  grid-auto-flow: row;
}

.app-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 252, 247, 0.98);
  border: 1px solid var(--line);
  box-shadow: 0 18px 28px rgba(24, 18, 13, 0.12);
  z-index: 16;
}

.app-menu[hidden] {
  display: none;
}

.app-menu-item {
  width: 100%;
  border: 0;
  background: linear-gradient(180deg, #fffaf4 0%, #f8efe6 100%);
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  color: #544940;
  font-size: 12px;
  font-weight: 800;
  box-shadow: none;
}

.app-menu-item + .app-menu-item {
  margin-top: 6px;
}

.hero-copy h1 {
  margin: 18px 0 0;
  font-size: clamp(2rem, 3vw, 2.9rem);
  line-height: .94;
  letter-spacing: -.04em;
  font-weight: 900;
}

.hero-note {
  margin: 8px 0 0;
  max-width: 32ch;
  color: #70645b;
  font-size: .94rem;
  line-height: 1.38;
}

.eyebrow,
.status-kicker,
.table-info-label {
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eyebrow,
.status-kicker {
  color: var(--muted);
}

.menu-launch-card p,
.payment-note {
  margin: 0;
  line-height: 1.45;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.status-card {
  min-height: 74px;
  padding: 12px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fffdfa 0%, #f7f1ea 100%);
  border: 1px solid var(--line);
  display: grid;
  align-content: center;
  gap: 6px;
}

.status-card.accent {
  background: linear-gradient(180deg, #ffd85c 0%, #ffc81e 100%);
  border-color: transparent;
}

.status-card.accent .status-kicker {
  color: #6b4c04;
}

.status-card strong {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.catalog-section {
  margin-top: 16px;
}

.section-head {
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.cat {
  border: 0;
  width: 100%;
  min-height: 148px;
  border-radius: 22px;
  padding: 14px 10px 15px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f4ef 100%);
  box-shadow: 0 8px 22px rgba(27, 23, 20, 0.045);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 9px;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(241, 236, 230, 0.95);
}

.cat.active {
  min-height: 160px;
  background: linear-gradient(180deg, #ef242d 0%, #d81922 100%);
  color: #fff;
  border-color: transparent;
}

.cat.active .category-label,
.cat.active .category-badge {
  color: #fff8f1;
}

.cat.active .category-art {
  background: transparent;
  box-shadow: none;
}

.cat.active .category-art img {
  transform: scale(1.05);
  filter: drop-shadow(0 10px 12px rgba(98, 9, 13, 0.28));
}

.category-text {
  width: 100%;
  display: grid;
  align-content: start;
  gap: 3px;
  justify-items: center;
}

.category-label {
  max-width: 9ch;
  font-size: .88rem;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #15110f;
}

.category-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  min-height: 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: .58rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #fff8f1;
  line-height: 1;
  z-index: 1;
}

.thumb-placeholder,
.item-media {
  width: 62px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff7d8 0%, #ffe37b 100%);
  color: #bb7d02;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  overflow: hidden;
}

.category-art {
  width: 80px;
  height: 66px;
  margin-top: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 1.2rem;
}

.thumb-placeholder img,
.item-media img,
.cart-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.category-art img {
  object-fit: contain;
  padding: 0;
  filter: drop-shadow(0 7px 9px rgba(77, 41, 15, 0.14));
  transition: transform 180ms ease, filter 180ms ease;
}

.cat:not(.active) .category-art img {
  transform: scale(0.98);
}

.cat-coffee-shop .category-art {
  width: 66px;
  height: 62px;
}

.cat-premium-shakes .category-art {
  width: 72px;
  height: 70px;
}

.cat-sandwiches-toast .category-art {
  width: 92px;
  height: 56px;
  margin-left: 2px;
}

.cat-juices-center .category-art {
  width: 88px;
  height: 72px;
}

.cat-waffles .category-art {
  width: 72px;
  height: 64px;
}

.menu-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}

.menu-meta {
  min-width: 64px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f4efe9;
  color: #655d55;
  font-size: .78rem;
  font-weight: 800;
  text-align: center;
}

.menu-launch-card {
  border-radius: 22px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #fff7dc 0%, #fff2c0 100%);
  border: 1px solid rgba(244, 213, 102, 0.8);
  color: #684b05;
  box-shadow: 0 14px 30px rgba(232, 191, 59, 0.18);
}

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

.item {
  border: 0;
  padding: 0;
  background: transparent;
  text-align: center;
  cursor: pointer;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.item-media {
  box-shadow: 0 8px 22px rgba(27, 23, 20, 0.08);
}

.item-name {
  font-size: .78rem;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #16120f;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}

.item-price {
  font-size: .76rem;
  font-weight: 900;
  color: #e3b844;
}

.order-panel {
  border-left: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 244, 238, 0.98) 100%);
  min-height: 0;
  overflow: hidden;
}

.order-sticky {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.order-header {
  padding: 20px 16px 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.order-header h2 {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.order-mode {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
}

.mobile-cart-close {
  display: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: #f4eee7;
  color: #594d44;
  font-weight: 900;
  box-shadow: none;
}

.cart-items {
  flex: 1 1 auto;
  padding: 8px 12px 12px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  max-height: 100%;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #d8c8b6 transparent;
}

.cart-empty,
.catalog-empty {
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  line-height: 1.4;
}

.cart-empty {
  min-height: 180px;
  font-size: .92rem;
  padding: 0 8px;
}

.catalog-empty {
  min-height: 120px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: #fcfaf6;
  font-size: .92rem;
  padding: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  text-align: left;
  padding: 2px 0 10px;
  border-bottom: 1px solid rgba(236, 231, 225, 0.65);
}

.cart-media {
  width: 34px;
  height: 26px;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff9ec 0%, #f8df92 100%);
  box-shadow: 0 4px 10px rgba(27, 23, 20, 0.06);
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.cart-name {
  font-size: .74rem;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  min-height: auto;
}

.cart-item-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.cart-price,
.qty span,
.checkout-fields input,
.checkout-fields select,
.checkout-fields textarea,
.checkout-message,
.cart-summary-line,
.total-block span {
  font-size: .76rem;
}

.qty {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 4px;
  padding: 2px 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.qty button {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #ef242d 0%, #d81922 100%);
  color: #fff9ef;
  font-size: 1rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(216, 25, 34, 0.2);
}

.qty button.plus {
  background: linear-gradient(180deg, #ffd95d 0%, #ffc930 100%);
  color: #5c4204;
  box-shadow: 0 8px 16px rgba(255, 201, 48, 0.2);
}

.cart-footer {
  flex: 0 0 auto;
  padding: 10px 14px 14px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76) 0%, rgba(248, 244, 238, 0.96) 100%);
  box-shadow: 0 -10px 22px rgba(19, 18, 16, 0.08);
  overflow: auto;
  max-height: min(42vh, 360px);
}

.cart-profile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.cart-profile-copy {
  display: grid;
  gap: 3px;
}

.cart-profile-label {
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.cart-profile-copy strong {
  font-size: .92rem;
  line-height: 1;
}

.cart-profile-button {
  border: 0;
  border-radius: 999px;
  padding: 9px 12px;
  background: #f4eee7;
  color: #564940;
  font-weight: 900;
  box-shadow: none;
}

.checkout-fields {
  display: grid;
  gap: 7px;
  margin-bottom: 8px;
}

.checkout-fields input,
.checkout-fields select,
.checkout-fields textarea {
  width: 100%;
  border: 1px solid rgba(236, 231, 225, 0.9);
  border-radius: 12px;
  background: rgba(255, 253, 249, 0.95);
  padding: 9px 11px;
  outline: 0;
  font-size: 16px;
  line-height: 1.35;
}

.checkout-fields textarea,
.panel-form textarea {
  resize: vertical;
}

.checkout-fields textarea {
  min-height: 58px;
}

.checkout-message {
  min-height: 18px;
  font-weight: 800;
  color: #8a7b70;
}

.checkout-message.success,
.payment-message.success {
  color: #2f7d32;
}

.checkout-message.error,
.payment-message.error {
  color: #b5492d;
}

.table-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff6d6 0%, #ffe18d 100%);
  color: #5d4304;
  box-shadow: 0 10px 20px rgba(230, 185, 49, 0.16);
}

.table-info strong {
  font-size: 1.1rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--muted);
  font-weight: 800;
}

.cart-summary-tag {
  padding: 3px 7px;
  border-radius: 999px;
  background: #f4efe9;
  color: #6b6056;
}

.total-block {
  display: grid;
  gap: 2px;
  margin-bottom: 8px;
}

.total-block strong {
  display: block;
  font-size: 1.18rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 900;
}

.done,
.payment-option,
.payment-back,
.add-button,
.cat,
.item,
.menu-pill,
.mobile-cart-button {
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.done {
  width: 100%;
  margin-top: 8px;
  min-height: 44px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffd552 0%, #ffca27 100%);
  color: #3d2c03;
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(255, 195, 35, 0.26);
}

.payment-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(23, 18, 14, 0.34);
  backdrop-filter: blur(8px);
  z-index: 30;
}

#categoryModal .category-sheet {
  pointer-events: auto;
}

.payment-modal[hidden] {
  display: none;
}

.payment-sheet {
  width: min(100%, 390px);
  min-height: 560px;
  border-radius: 34px;
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(242, 191, 31, 0.24), transparent 28%),
    linear-gradient(180deg, #fffdfa 0%, #f5efe6 100%);
  box-shadow: 0 28px 60px rgba(19, 18, 16, 0.24);
  display: grid;
  align-content: start;
  gap: 18px;
  position: relative;
}

.form-sheet {
  min-height: auto;
}

.review-sheet {
  width: min(100%, 520px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.panel-form {
  display: grid;
  gap: 12px;
}

.panel-form input,
.panel-form select,
.panel-form textarea {
  width: 100%;
  border: 1px solid rgba(236, 231, 225, 0.95);
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.96);
  padding: 12px 14px;
  outline: 0;
  font: inherit;
  font-size: 16px;
  line-height: 1.35;
  color: #2f2925;
}

.profile-submit {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 18px;
  padding: 0 18px;
  background: linear-gradient(180deg, #ef242d 0%, #d71821 100%);
  color: #fffaf4;
  font-size: .96rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(215, 24, 33, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.profile-submit:hover,
.profile-submit:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(215, 24, 33, 0.28);
  filter: saturate(1.05);
}

.profile-submit:focus-visible {
  outline: 2px solid rgba(255, 201, 48, 0.8);
  outline-offset: 2px;
}

.profile-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  position: sticky;
  bottom: 0;
  padding-top: 4px;
  padding-bottom: 2px;
  background: linear-gradient(180deg, rgba(245, 239, 230, 0) 0%, rgba(245, 239, 230, 0.96) 22%);
  z-index: 2;
}

.profile-secondary {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 18px;
  background: linear-gradient(180deg, #fffdfa 0%, #f4ece4 100%);
  color: #433933;
  font-size: .94rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: none;
}

.success-sheet {
  min-height: auto;
}

.success-ticket {
  display: grid;
  gap: 10px;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(240, 221, 193, 0.95);
  background: linear-gradient(180deg, #fff8e4 0%, #ffefbc 100%);
  color: #5f4304;
  box-shadow: 0 18px 36px rgba(236, 188, 29, 0.16);
}

.success-label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.success-ticket strong {
  font-size: 2.3rem;
  line-height: 1;
  letter-spacing: -.05em;
}

.success-meta {
  font-size: 13px;
  line-height: 1.45;
}

.success-actions {
  display: grid;
}

.payment-back {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #f3eee6;
  color: #3d362f;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}

.payment-copy {
  display: grid;
  gap: 8px;
}

.payment-kicker {
  margin: 0;
  color: #df1f26;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.payment-copy h2 {
  margin: 0;
  font-size: 31px;
  line-height: .94;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.payment-note {
  color: #867b72;
  font-size: 13px;
  max-width: 30ch;
}

.payment-choices {
  display: grid;
  gap: 14px;
}

.payment-option {
  border: 0;
  border-radius: 28px;
  padding: 20px 18px;
  text-align: left;
  display: grid;
  gap: 8px;
  cursor: pointer;
}

.payment-option strong {
  font-size: 21px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.payment-option span:last-child {
  font-size: 12px;
  line-height: 1.45;
}

.payment-option-tag {
  display: inline-grid;
  justify-self: start;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.payment-option.counter {
  background: linear-gradient(180deg, #ef242d 0%, #d71821 100%);
  color: #fff;
  box-shadow: 0 18px 36px rgba(215, 24, 33, 0.24);
}

.payment-option.counter .payment-option-tag {
  background: rgba(255, 255, 255, 0.16);
  color: #ffe9a4;
}

.payment-option.online {
  background: linear-gradient(180deg, #fff7dc 0%, #ffe08a 100%);
  color: #533b03;
  box-shadow: 0 18px 34px rgba(233, 189, 49, 0.18);
}

.payment-option.online .payment-option-tag {
  background: rgba(255, 255, 255, 0.5);
  color: #8a6200;
}

.payment-message {
  min-height: 20px;
  font-size: 12px;
  font-weight: 800;
  color: #81766d;
}

.review-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(231, 225, 218, 0.95);
  background: linear-gradient(180deg, #ffffff 0%, #fbf8f3 100%);
  box-shadow: 0 14px 32px rgba(20, 16, 13, 0.06);
}

.review-progress {
  display: flex;
  gap: 8px;
}

.review-progress span {
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: #dce0e4;
}

.review-progress .review-progress-active {
  background: #3a4149;
}

.review-title {
  margin: 0;
  font-size: 1rem;
  color: #4e4942;
  line-height: 1.35;
}

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

.star-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.star-button {
  width: 48px;
  height: 44px;
  border: 1px solid #e5ddd2;
  border-radius: 12px;
  background: #fff;
  color: #c6b9a8;
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: none;
}

.star-button.active {
  background: #3f464d;
  color: #fff;
  border-color: #3f464d;
}

.star-caption,
.rating-summary {
  color: #4f7b63;
  font-weight: 800;
}

.search-field {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdfa 0%, #f8f3ec 100%);
  border: 1px solid var(--line);
  margin-bottom: 10px;
  box-shadow: 0 8px 18px rgba(27, 23, 20, 0.05);
}

.search-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe083 0%, #ffcb3b 100%);
  color: #6b4c05;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(255, 201, 48, 0.26);
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.category-sheet {
  width: min(100%, 760px);
  min-height: auto;
  max-height: min(88vh, 860px);
  padding-bottom: 24px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: stretch;
}

.category-copy {
  gap: 12px;
}

.category-search {
  position: relative;
  z-index: 2;
  margin: 4px 0 14px;
}

.category-grid {
  overflow: auto;
  margin-top: 0;
  padding-right: 4px;
  padding-top: 2px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  min-height: 0;
  max-height: 100%;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.selected-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdfa 0%, #fbf6ef 100%);
  padding: 14px;
  display: grid;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(27, 23, 20, 0.05);
}

.selected-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.selected-info {
  min-width: 0;
}

.selected-name {
  font-size: 1rem;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #16120f;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}

.selected-note {
  margin-top: 2px;
  font-size: .8rem;
  line-height: 1.3;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 34px;
}

.item-badge {
  min-width: 42px;
  padding: 3px 6px;
  border-radius: 999px;
  background: #fff2b9;
  color: #7a5805;
  font-size: .78rem;
  font-weight: 900;
  text-align: center;
}

.selected-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.selected-price {
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.add-button {
  min-width: 68px;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd552 0%, #ffca27 100%);
  color: #4f3904;
  font-size: .9rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(255, 195, 35, 0.28);
}

.inline-qty {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.inline-qty span {
  min-width: 18px;
  text-align: center;
  font-size: .9rem;
  font-weight: 900;
}

.inline-qty button {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #ef242d 0%, #d81922 100%);
  color: #fff9ef;
  font-size: 1rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(216, 25, 34, 0.18);
}

.inline-qty button.plus {
  background: linear-gradient(180deg, #ffd95d 0%, #ffc930 100%);
  color: #5c4204;
  box-shadow: 0 8px 16px rgba(255, 201, 48, 0.18);
}

.mobile-cart-button {
  display: none;
}

body.cart-open .mobile-cart-button {
  display: none !important;
}

.cart-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(18px);
  min-width: min(320px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  padding: 13px 16px;
  border-radius: 16px;
  background: rgba(18, 20, 24, 0.96);
  color: #fff8f1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
  font-size: .9rem;
  font-weight: 800;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 60;
}

.cart-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.cat:hover,
.cat:focus-visible,
.item:hover,
.item:focus-visible,
.add-button:hover,
.add-button:focus-visible,
.done:hover,
.done:focus-visible,
.payment-option:hover,
.payment-option:focus-visible,
.payment-back:hover,
.payment-back:focus-visible,
.menu-pill:hover,
.menu-pill:focus-visible,
.mobile-cart-button:hover,
.mobile-cart-button:focus-visible {
  transform: translateY(-2px);
}

.cat:hover .category-art img,
.cat:focus-visible .category-art img {
  transform: translateY(-5px) scale(1.08);
  filter: drop-shadow(0 14px 16px rgba(77, 41, 15, 0.22));
}

body[data-theme="dark"] {
  background: #efe8dc;
}

body[data-theme="dark"] .scene::before {
  content: "";
  position: absolute;
  width: min(74vw, 820px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #050505;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -48%);
  z-index: 0;
}

body[data-theme="dark"] .scene::after {
  content: "";
  position: absolute;
  width: min(96vw, 1080px);
  aspect-ratio: 1;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(57, 52, 44, 0.18);
  z-index: 0;
}

body[data-theme="dark"] .phone-shell {
  position: relative;
  z-index: 1;
}

body[data-theme="dark"] .phone-frame {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: 0 26px 60px rgba(19, 16, 12, 0.14);
}

body[data-theme="dark"] .app {
  background: linear-gradient(90deg, #050505 0 69%, #0c0d10 69% 100%);
  border-color: #0a0a0a;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.22);
}

body[data-theme="dark"] .menu-panel,
body[data-theme="dark"] .order-panel {
  background: transparent;
}

body[data-theme="dark"] .route-copy,
body[data-theme="dark"] .hero-note,
body[data-theme="dark"] .menu-meta,
body[data-theme="dark"] .payment-note,
body[data-theme="dark"] .review-title,
body[data-theme="dark"] .cart-profile-button,
body[data-theme="dark"] .cart-summary-tag,
body[data-theme="dark"] .cart-profile-label,
body[data-theme="dark"] .selected-note,
body[data-theme="dark"] .order-mode,
body[data-theme="dark"] .checkout-message,
body[data-theme="dark"] .payment-message,
body[data-theme="dark"] .category-offer,
body[data-theme="dark"] .route-badge {
  color: var(--muted);
}

body[data-theme="dark"] .hero-copy h1,
body[data-theme="dark"] .section-head h2,
body[data-theme="dark"] .order-header h2,
body[data-theme="dark"] .cart-profile-copy strong,
body[data-theme="dark"] .cart-name,
body[data-theme="dark"] .category-label,
body[data-theme="dark"] .selected-name,
body[data-theme="dark"] .item-name,
body[data-theme="dark"] .status-card strong,
body[data-theme="dark"] .payment-copy h2 {
  color: #fff8f1;
}

body[data-theme="dark"] .menu-pill,
body[data-theme="dark"] .app-menu,
body[data-theme="dark"] .status-card,
body[data-theme="dark"] .menu-launch-card,
body[data-theme="dark"] .search-field,
body[data-theme="dark"] .selected-card,
body[data-theme="dark"] .review-card,
body[data-theme="dark"] .payment-sheet,
body[data-theme="dark"] .qty,
body[data-theme="dark"] .inline-qty,
body[data-theme="dark"] .cart-profile-button,
body[data-theme="dark"] .mobile-cart-close,
body[data-theme="dark"] .checkout-fields input,
body[data-theme="dark"] .checkout-fields select,
body[data-theme="dark"] .checkout-fields textarea,
body[data-theme="dark"] .panel-form input,
body[data-theme="dark"] .panel-form select,
body[data-theme="dark"] .panel-form textarea {
  background: linear-gradient(180deg, #15171b 0%, #0f1013 100%);
  border-color: var(--line);
  color: var(--text);
}

body[data-theme="dark"] .profile-submit {
  background: linear-gradient(180deg, #ffd654 0%, #ecbc1d 100%);
  color: #322302;
  box-shadow: 0 16px 30px rgba(236, 188, 29, 0.18);
}

body[data-theme="dark"] .profile-actions {
  background: linear-gradient(180deg, rgba(15, 16, 19, 0) 0%, rgba(15, 16, 19, 0.96) 22%);
}

body[data-theme="dark"] .profile-secondary {
  background: linear-gradient(180deg, #181a1f 0%, #0f1114 100%);
  border-color: var(--line);
  color: #f7f2eb;
}

body[data-theme="dark"] .success-ticket {
  background: linear-gradient(180deg, #17140b 0%, #0d0b07 100%);
  border-color: rgba(246, 214, 99, 0.14);
  color: #f6d663;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

body[data-theme="dark"] .profile-submit:hover,
body[data-theme="dark"] .profile-submit:focus-visible {
  box-shadow: 0 20px 34px rgba(236, 188, 29, 0.22);
}

body[data-theme="dark"] .menu-panel::-webkit-scrollbar-thumb,
body[data-theme="dark"] .cart-items::-webkit-scrollbar-thumb,
body[data-theme="dark"] .category-grid::-webkit-scrollbar-thumb {
  background: #3b4049;
}

body[data-theme="dark"] .menu-panel,
body[data-theme="dark"] .cart-items,
body[data-theme="dark"] .category-grid {
  scrollbar-color: #3b4049 transparent;
}

body[data-theme="dark"] .status-card,
body[data-theme="dark"] .cat,
body[data-theme="dark"] .selected-card,
body[data-theme="dark"] .review-card,
body[data-theme="dark"] .search-field,
body[data-theme="dark"] .menu-meta,
body[data-theme="dark"] .qty,
body[data-theme="dark"] .cart-summary-tag {
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

body[data-theme="dark"] .app-menu-item {
  background: linear-gradient(180deg, #181a1f 0%, #0f1114 100%);
  color: var(--text);
}

body[data-theme="dark"] .route-badge,
body[data-theme="dark"] .table-info,
body[data-theme="dark"] .payment-option.online,
body[data-theme="dark"] .menu-launch-card {
  color: #f6d663;
  background: linear-gradient(180deg, #17140b 0%, #0d0b07 100%);
  border-color: rgba(246, 214, 99, 0.14);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
}

body[data-theme="dark"] .status-card.accent,
body[data-theme="dark"] .payment-option.counter,
body[data-theme="dark"] .mobile-cart-button {
  box-shadow: 0 18px 36px rgba(120, 8, 14, 0.26);
}

body[data-theme="dark"] .cat {
  background: linear-gradient(180deg, #121418 0%, #0a0b0d 100%);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
}

body[data-theme="dark"] .cat.active {
  background: linear-gradient(180deg, #d51f28 0%, #a10d14 100%);
}

body[data-theme="dark"] .thumb-placeholder,
body[data-theme="dark"] .item-media,
body[data-theme="dark"] .cart-media,
body[data-theme="dark"] .item-badge {
  background: linear-gradient(180deg, #242012 0%, #141109 100%);
  color: #ffd85f;
}

body[data-theme="dark"] .category-art {
  background: transparent;
  box-shadow: none;
}

body[data-theme="dark"] .category-offer {
  background: rgba(255, 208, 82, 0.12);
  color: #ffd25a;
}

body[data-theme="dark"] .category-badge {
  background: rgba(255, 208, 82, 0.12);
  color: #ffd25a;
}

body[data-theme="dark"] .item-price,
body[data-theme="dark"] .selected-price,
body[data-theme="dark"] .total-block strong {
  color: #f5d45b;
}

body[data-theme="dark"] .order-panel,
body[data-theme="dark"] .order-header,
body[data-theme="dark"] .cart-footer,
body[data-theme="dark"] .cart-item,
body[data-theme="dark"] .table-info,
body[data-theme="dark"] .selected-card,
body[data-theme="dark"] .search-field {
  border-color: var(--line);
}

body[data-theme="dark"] .order-panel {
  border-left-color: rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(12, 13, 16, 0.94) 0%, rgba(6, 7, 9, 0.98) 100%);
}

body[data-theme="dark"] .order-header,
body[data-theme="dark"] .cart-footer {
  background: linear-gradient(180deg, rgba(16, 18, 22, 0.98) 0%, rgba(9, 10, 12, 0.98) 100%);
}

body[data-theme="dark"] .cart-items {
  background:
    linear-gradient(180deg, rgba(8, 9, 11, 0.94) 0%, rgba(8, 9, 11, 0.82) 100%);
}

body[data-theme="dark"] .cart-item {
  padding: 10px 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body[data-theme="dark"] .cart-summary-tag {
  background: #131419;
}

body[data-theme="dark"] .cart-profile-button,
body[data-theme="dark"] .mobile-cart-close {
  background: linear-gradient(180deg, #181a1f 0%, #111318 100%);
  color: #f7f2eb;
}

body[data-theme="dark"] .checkout-fields input,
body[data-theme="dark"] .checkout-fields select,
body[data-theme="dark"] .checkout-fields textarea {
  background: #101216;
}

body[data-theme="dark"] .cart-empty,
body[data-theme="dark"] .catalog-empty {
  color: #9b958a;
}

body[data-theme="dark"] .cart-toast {
  background: rgba(247, 213, 82, 0.96);
  color: #201602;
  border-color: rgba(247, 213, 82, 0.4);
  box-shadow: 0 18px 34px rgba(236, 188, 29, 0.18);
}

body[data-theme="dark"] .review-progress span {
  background: #2b313a;
}

body[data-theme="dark"] .review-progress .review-progress-active,
body[data-theme="dark"] .star-button.active {
  background: #ffd552;
  color: #332503;
  border-color: #ffd552;
}

body[data-theme="dark"] .star-button {
  background: #101216;
  border-color: #2a2d34;
  color: #7e7568;
}

body[data-theme="dark"] .search-icon {
  background: #ffd552;
  color: #4f3904;
}

body[data-theme="dark"] .menu-pill span {
  background: #ffd552;
}

body[data-theme="dark"] .menu-meta,
body[data-theme="dark"] .search-field,
body[data-theme="dark"] .qty span,
body[data-theme="dark"] .inline-qty span,
body[data-theme="dark"] .cart-price,
body[data-theme="dark"] .total-block span {
  color: #d4cec4;
}

body[data-theme="dark"] .category-search {
  background: linear-gradient(180deg, rgba(12, 13, 16, 0.98) 0%, rgba(12, 13, 16, 0.96) 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

body[data-theme="dark"] .status-card.accent {
  background: linear-gradient(180deg, #f6d24f 0%, #e6b81e 100%);
}

body[data-theme="dark"] .status-card.accent strong,
body[data-theme="dark"] .status-card.accent .status-kicker {
  color: #2f2203;
}

body[data-theme="dark"] .payment-option.counter {
  background: linear-gradient(180deg, #d61f28 0%, #ae1017 100%);
}

body[data-theme="dark"] .payment-option.online {
  color: #f4d56a;
}

body[data-theme="dark"] .done,
body[data-theme="dark"] .add-button,
body[data-theme="dark"] .qty button.plus {
  background: linear-gradient(180deg, #ffd654 0%, #ecbc1d 100%);
  color: #322302;
}

body[data-theme="dark"] .done {
  box-shadow: 0 12px 28px rgba(236, 188, 29, 0.2);
}

body[data-theme="dark"] .catalog-empty,
body[data-theme="dark"] .cart-empty {
  background: transparent;
}

body[data-theme="dark"] .search-field input::placeholder,
body[data-theme="dark"] .checkout-fields textarea::placeholder,
body[data-theme="dark"] .panel-form textarea::placeholder,
body[data-theme="dark"] .panel-form input::placeholder {
  color: #8b8378;
}

body[data-theme="dark"] .payment-back {
  background: #23262d;
  color: var(--text);
}

@media (max-width: 980px) {
  html,
  body {
    min-height: var(--app-height-dynamic);
  }

  body {
    background: #f5efe6;
  }

  body[data-theme="dark"] {
    background: #050505;
  }

  body[data-theme="dark"] .scene::before,
  body[data-theme="dark"] .scene::after {
    display: none;
  }

  .scene {
    display: block;
    min-height: var(--app-height-dynamic);
    padding: 0;
    overflow: visible;
  }

  .scene,
  .phone-shell,
  .phone-frame {
    width: 100%;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .phone-shell,
  .phone-frame {
    min-height: var(--app-height-dynamic);
  }

  .app {
    min-height: var(--app-height-dynamic);
    height: auto;
    grid-template-columns: minmax(0, 1fr);
    border: 0;
    border-radius: 0;
    background: #fffdfa;
    overflow: visible;
  }

  .menu-panel {
    padding: 24px 20px calc(96px + env(safe-area-inset-bottom, 0px));
    overflow: visible;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: auto;
  }

  .route-badge {
    padding: 7px 12px;
    font-size: .8rem;
  }

  .route-copy {
    font-size: .92rem;
    line-height: 1.42;
    max-width: none;
  }

  .hero-copy h1 {
    margin-top: 20px;
    font-size: 3.05rem;
  }

  .hero-note {
    font-size: 1rem;
    line-height: 1.45;
  }

  .status-strip {
    gap: 14px;
    margin-top: 20px;
  }

  .status-card {
    min-height: 82px;
    padding: 14px;
  }

  .status-card strong {
    font-size: 1.55rem;
  }

  .categories {
    gap: 16px;
  }

  .cat {
    min-height: 162px;
    padding: 16px 12px;
    gap: 10px;
  }

  .cat.active {
    min-height: 172px;
  }

  .category-art {
    width: 88px;
    height: 72px;
  }

  .category-label {
    font-size: .98rem;
    max-width: 10ch;
  }

  .order-panel {
    position: fixed;
    right: 16px;
    bottom: 16px;
    left: 16px;
    height: auto;
    min-height: min(54vh, 420px);
    max-height: min(calc(var(--app-height-dynamic) - 32px), 640px);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 24px 50px rgba(16, 14, 12, 0.18);
    transform: translateY(calc(100% + 32px));
    opacity: 0;
    pointer-events: none;
    transition: transform 220ms ease, opacity 220ms ease;
    z-index: 26;
  }

  body.cart-open .order-panel {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  body.cart-open .mobile-cart-button {
    display: none !important;
  }

  .mobile-cart-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-cart-button {
    position: fixed;
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    display: grid;
    gap: 2px;
    min-width: 148px;
    padding: 15px 18px;
    border: 0;
    border-radius: 24px;
    background: linear-gradient(180deg, #ef242d 0%, #d71821 100%);
    color: #fff;
    box-shadow: 0 18px 32px rgba(215, 24, 33, 0.3);
    z-index: 27;
    text-align: left;
  }

  .category-sheet {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
  }

  .category-copy {
    margin-bottom: 12px;
  }

  .category-search {
    position: sticky;
    top: 0;
    margin: 0;
    padding-bottom: 14px;
    z-index: 3;
    background: inherit;
  }

  .category-grid {
    overflow: auto;
    max-height: none;
    min-height: 0;
    padding-top: 2px;
    padding-bottom: 8px;
  }

  .mobile-cart-label {
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .88;
  }

  .mobile-cart-button strong {
    font-size: 1.28rem;
    line-height: 1;
  }

  .mobile-cart-total {
    font-size: .92rem;
    font-weight: 800;
  }
}

@media (min-width: 981px) {
  #categoryModal {
    pointer-events: none;
    background: rgba(8, 8, 10, 0.16);
  }
}

@media (max-width: 640px) {
  .order-panel {
    right: 12px;
    left: 12px;
    bottom: 12px;
    max-height: min(calc(var(--app-height-dynamic) - 24px), 620px);
  }

  .hero {
    gap: 12px;
  }

  .hero-brand {
    flex-direction: column;
    gap: 10px;
  }

  .hero-copy h1 {
    font-size: 2.4rem;
  }

  .status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .status-card:last-child {
    grid-column: 1 / -1;
  }

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

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

  .payment-modal {
    padding: 0;
    align-items: end;
  }

  .category-sheet,
  .payment-sheet {
    width: 100%;
    max-height: 92vh;
    border-radius: 28px 28px 0 0;
    align-self: end;
    padding: 18px 16px 20px;
  }

  .category-sheet {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }

  .category-copy {
    margin-bottom: 12px;
  }

  .category-search {
    position: sticky;
    top: 0;
    margin: 0;
    padding-bottom: 14px;
    z-index: 3;
    background: inherit;
  }

  .review-sheet {
    max-height: 92vh;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .category-grid {
    grid-template-columns: 1fr;
    overflow: auto;
    max-height: none;
    min-height: 0;
    padding-top: 2px;
    padding-bottom: 10px;
  }

  .profile-actions {
    grid-template-columns: 1fr;
  }

  .selected-name {
    min-height: auto;
  }
}
