:root {
  --cream: #fff5de;
  --paper: #fffaf0;
  --ink: #331b11;
  --muted: #846454;
  --red: #d84322;
  --red-dark: #a82d18;
  --amber: #ffb229;
  --green: #2f8a52;
  --mint: #dff2cc;
  --surface: rgba(255, 250, 240, 0.92);
  --line: rgba(110, 61, 34, 0.18);
  --shadow: rgba(95, 42, 16, 0.24);
  --display: "Yeseva One", Georgia, serif;
  --body: "Rubik", Arial, sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  scrollbar-width: none;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 178, 41, 0.32), transparent 28%),
    radial-gradient(circle at 90% 20%, rgba(47, 138, 82, 0.18), transparent 24%),
    linear-gradient(180deg, var(--cream), #ffe3b2 48%, #fff0cd);
  color: var(--ink);
  font-family: var(--body);
  letter-spacing: 0;
  overflow-x: hidden;
  scrollbar-width: none;
  overscroll-behavior: none;
  animation: pageEnter 360ms cubic-bezier(0.2, 0.9, 0.22, 1) both;
}

body.is-locked {
  overflow: hidden;
}

body.is-page-leaving {
  pointer-events: none;
  animation: pageLeave 180ms ease both;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

.ambient {
  display: none;
}

.topbar {
  position: fixed;
  top: 14px;
  left: clamp(12px, 3vw, 36px);
  right: clamp(12px, 3vw, 36px);
  z-index: 200;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  gap: 20px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 26px;
  background: rgba(255, 250, 240, 0.78);
  box-shadow: 0 14px 34px rgba(95, 42, 16, 0.12);
  backdrop-filter: blur(16px);
  will-change: transform;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-seal {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--red), var(--amber));
  color: #fff8e8;
  font-family: var(--display);
  box-shadow: inset 0 -8px 18px rgba(102, 30, 10, 0.22);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  font-weight: 800;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(255, 238, 200, 0.78);
}

.nav a {
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
  transition: background 180ms ease, transform 180ms ease;
}

.nav a:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.nav a.active {
  background: #ffffff;
  color: var(--red);
}

.top-actions {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 10px;
}

.chip-button,
.cart-button,
.mini-button,
.round-button {
  border: 0;
  cursor: pointer;
  background: var(--ink);
  color: #fff5de;
}

.chip-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 0 16px;
  font-weight: 800;
}

.user-dot {
  width: 18px;
  height: 18px;
  border: 3px solid #fff5de;
  border-radius: 999px;
  box-shadow: 0 10px 0 -5px #fff5de;
}

.cart-button {
  position: relative;
  min-width: 54px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  background: var(--red);
  font-weight: 900;
}

.cart-button.cart-bump {
  animation: cartBump 520ms cubic-bezier(0.2, 0.9, 0.25, 1.25);
}

.cart-glyph {
  width: 18px;
  height: 13px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 3px 3px 7px 7px;
  position: relative;
}

.cart-glyph::before {
  position: absolute;
  left: 2px;
  top: -8px;
  width: 10px;
  height: 8px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  content: "";
}

.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(220px, 0.38fr);
  align-items: end;
  gap: clamp(20px, 4vw, 56px);
  padding: 142px clamp(18px, 6vw, 88px) 72px;
  isolation: isolate;
}

.hero-photo,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-photo {
  background: url("assets/hero-chebureki.png") center right / cover no-repeat;
  transform: translateZ(0);
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 245, 222, 0.96) 0%, rgba(255, 232, 182, 0.86) 40%, rgba(255, 203, 96, 0.26) 74%),
    linear-gradient(0deg, rgba(255, 245, 222, 0.92), rgba(255, 245, 222, 0.12) 35%);
}

.hero-content {
  max-width: 800px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.02;
}

h1 {
  margin-bottom: 22px;
  max-width: 760px;
  font-size: clamp(58px, 9vw, 128px);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(38px, 5.8vw, 82px);
}

h3 {
  margin-bottom: 10px;
  font-size: 30px;
}

.hero-copy {
  max-width: 610px;
  color: #684330;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.65;
}

.btn {
  min-height: 54px;
  border: 0;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn.primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff9ec;
  box-shadow: 0 18px 38px rgba(168, 45, 24, 0.28);
}

.btn.soft {
  background: #fff7e6;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn.neon {
  background: linear-gradient(135deg, var(--green), #174f31);
  color: #fffaf0;
  box-shadow: 0 18px 38px rgba(47, 138, 82, 0.24);
}

.btn.wide {
  width: 100%;
}

.hero-ticket {
  position: relative;
  align-self: end;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  background: rgba(255, 250, 240, 0.82);
  padding: 28px 116px 28px 28px;
  box-shadow: 0 18px 42px rgba(95, 42, 16, 0.16);
  overflow: hidden;
}

.hero-ticket span {
  display: block;
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
}

.hero-ticket strong {
  display: block;
  margin: 10px 0;
  font-family: var(--display);
  font-size: 36px;
  font-weight: 400;
}

.hero-ticket p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.steam {
  position: absolute;
  top: 50%;
  right: -64px;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: rgba(77, 188, 113, 0.42);
  box-shadow:
    0 0 24px rgba(77, 188, 113, 0.18),
    inset 0 0 28px rgba(255, 250, 240, 0.2);
  transform: translateY(-50%);
  pointer-events: none;
  animation: statusGlow 1.45s ease-in-out infinite;
}

.steam i {
  display: none;
}

.hero-ticket.is-open .steam {
  background: rgba(77, 188, 113, 0.46);
  box-shadow:
    0 0 26px rgba(77, 188, 113, 0.2),
    inset 0 0 30px rgba(255, 250, 240, 0.22);
}

.hero-ticket.is-closed .steam {
  background: rgba(77, 188, 113, 0.3);
  box-shadow:
    0 0 18px rgba(77, 188, 113, 0.14),
    inset 0 0 26px rgba(255, 250, 240, 0.2);
  animation-duration: 1.9s;
}

.ticker {
  overflow: hidden;
  padding-inline: clamp(22px, 4vw, 52px);
  border-block: 1px solid rgba(110, 61, 34, 0.18);
  background: var(--ink);
  color: #fff5de;
}

.ticker-track {
  width: max-content;
  display: flex;
  animation: tickerMove 24s linear infinite;
  will-change: transform;
}

.ticker-group {
  display: flex;
  padding: 18px 0;
}

.ticker span {
  display: inline-flex;
  align-items: center;
  font-family: var(--display);
  font-size: 28px;
  white-space: nowrap;
}

.ticker span::after {
  content: "/";
  margin-inline: 34px;
  color: var(--amber);
}

.section {
  padding: clamp(70px, 9vw, 126px) clamp(18px, 6vw, 88px);
  content-visibility: auto;
  contain-intrinsic-size: 820px;
}

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

.feature,
.menu-card,
.request-form,
.orders-panel,
.route-panel {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(95, 42, 16, 0.1);
}

.feature {
  padding: 30px;
}

.feature-mark {
  display: inline-flex;
  margin-bottom: 28px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
}

.feature h2 {
  font-size: clamp(28px, 3.5vw, 44px);
}

.feature p,
.section-head p:not(.eyebrow),
.delivery-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) auto;
  align-items: end;
  gap: 22px;
  margin-bottom: 34px;
}

.section-head h2 {
  max-width: 740px;
  margin-bottom: 0;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
}

.filter {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.76);
  cursor: pointer;
  padding: 0 15px;
  font-weight: 900;
  white-space: nowrap;
  transition:
    max-width 320ms ease,
    opacity 260ms ease,
    padding 320ms ease,
    transform 320ms ease,
    background 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease;
}

.filter.active {
  background: var(--green);
  color: #fffaf0;
  transform: translateY(-2px);
}

.favorites-filter {
  max-width: 0;
  border-color: rgba(216, 67, 34, 0.18);
  background: #fffaf0;
  color: var(--ink);
  opacity: 0;
  overflow: hidden;
  padding-inline: 0;
  pointer-events: none;
  transform: translateX(18px) scale(0.96);
}

.favorites-filter.is-visible {
  max-width: 180px;
  opacity: 1;
  padding-inline: 15px;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.favorites-filter span {
  color: var(--red);
  font-size: 16px;
  line-height: 1;
}

.favorites-filter.active {
  background: var(--red);
  color: #fffaf0;
  box-shadow: 0 14px 24px rgba(216, 67, 34, 0.2);
}

.favorites-filter.active span {
  color: #fffaf0;
}

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

.menu-empty {
  grid-column: 1 / -1;
  border-radius: 20px;
  background: rgba(255, 250, 240, 0.86);
  padding: 24px;
  font-weight: 800;
}

.menu-card {
  position: relative;
  min-height: 330px;
  display: grid;
  align-content: space-between;
  padding: 24px;
  overflow: hidden;
  animation: menuRise 360ms ease both;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.menu-card.is-favorite-removing {
  pointer-events: none;
  animation: favoriteCardOut 320ms ease both;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(95, 42, 16, 0.16);
}

.menu-card::before {
  position: absolute;
  right: -38px;
  top: -36px;
  width: 132px;
  height: 132px;
  border-radius: 999px;
  background: var(--dish-color);
  opacity: 0.18;
  content: "";
}

.dish-art {
  width: 118px;
  height: 78px;
  position: relative;
  margin-bottom: 24px;
}

.dish-art::before {
  position: absolute;
  inset: 8px 0 0;
  border-radius: 100px 100px 12px 12px;
  background:
    radial-gradient(circle at 32% 32%, rgba(255, 255, 255, 0.44), transparent 10%),
    linear-gradient(135deg, #ffd983, #d86a24 68%, #a83b18);
  box-shadow: inset -12px -14px 22px rgba(88, 31, 11, 0.2);
  content: "";
}

.dish-art::after {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 13px;
  border-radius: 999px;
  background: rgba(90, 38, 16, 0.22);
  content: "";
}

.menu-card h3 {
  font-size: 31px;
}

.menu-card p {
  min-height: 72px;
  color: var(--muted);
  line-height: 1.55;
}

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

.price {
  font-size: 22px;
  font-weight: 900;
}

.add-button,
.like-button {
  border: 0;
  cursor: pointer;
  font-weight: 900;
}

.add-button {
  position: relative;
  min-height: 44px;
  min-width: 118px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff5de;
  padding: 0 34px 0 16px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 12px 24px rgba(51, 27, 17, 0.14);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.add-button::before {
  position: absolute;
  inset: -40% auto -40% -45%;
  z-index: 0;
  width: 46%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: translateX(-120%) skewX(-18deg);
  pointer-events: none;
  content: "";
}

.add-button::after {
  position: absolute;
  right: 15px;
  top: 50%;
  width: 7px;
  height: 13px;
  border-right: 3px solid #fff5de;
  border-bottom: 3px solid #fff5de;
  opacity: 0;
  transform: translateY(-62%) rotate(35deg) scale(0.7);
  pointer-events: none;
  content: "";
}

.add-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(51, 27, 17, 0.2);
}

.add-button.is-added {
  background: linear-gradient(135deg, var(--green), #1f613b);
  animation: addButtonPop 760ms cubic-bezier(0.18, 0.95, 0.22, 1.2);
}

.add-button.is-added::before {
  animation: addButtonShine 620ms ease;
}

.add-button.is-added::after {
  animation: addButtonCheck 760ms ease both;
}

.like-button {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #fff7e6;
  color: var(--red);
  overflow: visible;
  z-index: 1;
}

.like-button::before,
.like-button::after {
  position: absolute;
  inset: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--red);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.3);
}

.like-button::after {
  width: 100%;
  height: 100%;
  background: transparent;
  box-shadow: inset 0 0 0 2px rgba(216, 67, 34, 0.18);
}

.like-button:not(.liked) {
  color: #c9957d;
}

.heart-icon {
  display: block;
  color: currentColor;
  font-size: 25px;
  line-height: 1;
  transform: translateY(1px);
  transition: transform 180ms ease, color 180ms ease;
}

.like-button:hover .heart-icon,
.like-button.liked .heart-icon {
  transform: translateY(1px) scale(1.14);
}

.like-button.liked {
  background: #ffe8df;
  color: var(--red);
}

.like-button.is-liked-burst {
  animation: favoriteButtonTilt 620ms cubic-bezier(0.2, 0.9, 0.22, 1.2) both;
}

.like-button.is-liked-burst .heart-icon {
  animation: favoriteHeartPop 620ms cubic-bezier(0.2, 0.9, 0.22, 1.2) both;
}

.like-button.is-liked-burst::before {
  animation: favoriteSpark 620ms ease-out both;
}

.like-button.is-liked-burst::after {
  animation: favoriteRing 620ms ease-out both;
}

.delivery {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(280px, 1fr);
  gap: clamp(24px, 6vw, 88px);
  align-items: center;
  background: linear-gradient(135deg, rgba(47, 138, 82, 0.13), rgba(255, 178, 41, 0.2));
}

.delivery-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 28px;
}

.delivery-stats span {
  border-radius: 18px;
  background: rgba(255, 250, 240, 0.72);
  padding: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.delivery-stats strong {
  display: block;
  color: var(--red);
  font-size: 30px;
}

.route-panel {
  padding: 20px;
}

.route-map {
  position: relative;
  min-height: 360px;
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(51, 27, 17, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(51, 27, 17, 0.08) 1px, transparent 1px),
    #f8dfab;
  background-size: 54px 54px;
}

.route-line {
  position: absolute;
  left: 16%;
  top: 46%;
  width: 70%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), var(--amber), var(--green));
  transform: rotate(-18deg);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.3);
}

.pin {
  position: absolute;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: 6px solid #fffaf0;
  border-radius: 50% 50% 50% 0;
  background: var(--red);
  transform: rotate(-45deg);
  box-shadow: 0 12px 22px rgba(95, 42, 16, 0.22);
  animation: pinPop 2.4s ease-in-out infinite;
}

.pin.one {
  left: 19%;
  top: 53%;
}

.pin.two {
  right: 26%;
  top: 26%;
  background: var(--green);
  animation-delay: -0.8s;
}

.pin.three {
  right: 16%;
  bottom: 22%;
  background: var(--amber);
  animation-delay: -1.5s;
}

.route-caption {
  padding: 20px 6px 4px;
}

.route-caption strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
}

.route-caption p {
  margin: 0;
  color: var(--muted);
}

.request-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 0.75fr);
  gap: 20px;
}

.request-form,
.orders-panel {
  padding: clamp(22px, 4vw, 36px);
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffaf0;
  color: var(--ink);
  outline: 0;
  padding: 15px;
}

textarea {
  resize: vertical;
  min-height: 112px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(216, 67, 34, 0.12);
}

.address-field {
  position: relative;
}

.address-suggest {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 75;
  display: none;
  gap: 6px;
  border: 1px solid rgba(110, 61, 34, 0.16);
  border-radius: 18px;
  background: #fffaf0;
  padding: 8px;
  box-shadow: 0 18px 42px rgba(95, 42, 16, 0.16);
}

.address-suggest.show {
  display: grid;
  animation: suggestIn 180ms ease both;
}

.address-option {
  border: 0;
  border-radius: 13px;
  background: #fff2d5;
  color: var(--ink);
  cursor: pointer;
  padding: 11px 12px;
  text-align: left;
  font-size: 13px;
  font-weight: 800;
}

.address-option:hover {
  background: var(--mint);
}

.form-status {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--green);
  font-weight: 800;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.mini-button {
  min-height: 38px;
  border-radius: 12px;
  padding: 0 12px;
  background: var(--green);
  font-weight: 900;
}

.admin-panel-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 16px;
  background: linear-gradient(135deg, var(--green), #174f31);
  color: #fffaf0;
  white-space: nowrap;
  box-shadow: 0 14px 28px rgba(47, 138, 82, 0.2);
}

.request-list,
.cart-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.request-list {
  display: grid;
  gap: 12px;
  max-height: 390px;
  overflow: auto;
}

.request-list li {
  border-radius: 18px;
  background: #fff7e6;
  padding: 16px;
  color: var(--muted);
  line-height: 1.5;
}

.request-list strong {
  display: block;
  color: var(--ink);
}

.cart-drawer {
  position: fixed;
  top: 102px;
  right: 0;
  z-index: 90;
  width: min(460px, 100vw);
  height: calc(100dvh - 118px);
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 26px 0 0 26px;
  background: #fff7e6;
  box-shadow: -24px 0 70px rgba(51, 27, 17, 0.24);
  transform: translateX(105%);
  transition: transform 260ms ease;
  will-change: transform;
  pointer-events: none;
}

.cart-drawer.open {
  transform: translateX(0);
  pointer-events: auto;
}

.cart-drawer.open .cart-item,
.cart-drawer.open .cart-total,
.cart-drawer.open .checkout-form {
  animation: menuRise 420ms ease both;
}

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

.round-button {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 999px;
}

.round-button::before,
.round-button::after {
  position: absolute;
  left: 14px;
  top: 21px;
  width: 16px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  content: "";
}

.round-button::before {
  transform: rotate(45deg);
}

.round-button::after {
  transform: rotate(-45deg);
}

.cart-list {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  border-radius: 18px;
  background: #fffaf0;
  padding: 14px;
}

.cart-item.qty-changed {
  animation: qtyPulse 260ms ease both;
}

.cart-item strong {
  display: block;
}

.cart-item span {
  color: var(--muted);
  font-size: 13px;
}

.cart-empty {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.empty-sticker {
  width: 108px;
  max-width: 48%;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(168, 45, 24, 0.22));
  transform: rotate(-5deg);
}

.cart-empty strong {
  font-family: var(--display);
  font-size: 28px;
}

.cart-empty span {
  max-width: 260px;
  line-height: 1.5;
}

.qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: #fff5de;
  cursor: pointer;
  font-weight: 900;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-weight: 900;
}

.cart-total strong {
  font-size: 28px;
}

.checkout-form {
  display: grid;
  gap: 10px;
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  border: 0;
  background: rgba(51, 27, 17, 0.48);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.scrim.show {
  opacity: 1;
  pointer-events: auto;
}

.scrim.closing {
  opacity: 0;
  pointer-events: auto;
}

.login-modal {
  width: min(500px, calc(100vw - 28px));
  border: 0;
  border-radius: 26px;
  padding: 0;
  background: transparent;
}

.login-modal[open] .login-box {
  animation: modalPop 260ms ease both;
}

.login-modal.closing .login-box {
  animation: modalClose 220ms ease both;
}

.login-modal::backdrop {
  background: rgba(51, 27, 17, 0.52);
}

.login-modal[open]::backdrop {
  animation: backdropFadeIn 220ms ease both;
}

.login-modal.closing::backdrop {
  animation: backdropFadeOut 220ms ease both;
}

.login-box {
  position: relative;
  max-height: min(86dvh, 760px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 26px;
  background: #fff7e6;
  padding: 32px;
  box-shadow: 0 30px 90px rgba(51, 27, 17, 0.25);
  scrollbar-width: none;
}

.login-box::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.login-box p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

.auth-tabs {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 18px 0;
}

.auth-tab {
  min-height: 48px;
  border: 1px solid rgba(216, 67, 34, 0.22);
  border-radius: 16px;
  background: #fffaf0;
  color: var(--red);
  cursor: pointer;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.auth-tab.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--red), var(--amber));
  color: #fffaf0;
  box-shadow: 0 14px 28px rgba(216, 67, 34, 0.2);
}

.bonus-panel {
  position: relative;
  display: grid;
  gap: 12px;
  margin: 22px 0;
  border: 1px solid rgba(47, 138, 82, 0.2);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(47, 138, 82, 0.12), rgba(255, 178, 41, 0.16)),
    #fffaf0;
  padding: 18px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.bonus-panel::before {
  position: absolute;
  right: -42px;
  top: -58px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(255, 178, 41, 0.24);
  content: "";
}

.bonus-head,
.bonus-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.bonus-head span,
.bonus-main span,
.bonus-panel p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.bonus-head strong {
  border-radius: 999px;
  background: var(--ink);
  color: #fff5de;
  padding: 7px 11px;
  font-size: 12px;
}

.bonus-main strong {
  font-family: var(--mono);
  font-size: clamp(34px, 8vw, 54px);
  line-height: 1;
}

.bonus-progress {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(51, 27, 17, 0.12);
  overflow: hidden;
}

.bonus-progress i {
  display: block;
  width: var(--bonus-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--amber), var(--red));
  transition: width 360ms ease;
}

.bonus-panel p {
  position: relative;
  margin: 0;
  line-height: 1.45;
  text-transform: none;
}

.profile-orders {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  border: 1px solid rgba(110, 61, 34, 0.16);
  border-radius: 20px;
  background: #fffaf0;
  padding: 16px;
}

.profile-orders.is-highlighted {
  animation: profileOrdersPulse 900ms ease;
}

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

.profile-orders-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-orders-head strong {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green);
  font-family: var(--mono);
}

.profile-orders ul {
  display: grid;
  gap: 8px;
  max-height: 168px;
  overflow: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-orders li {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #fff2d5;
  padding: 14px 92px 14px 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.profile-orders li strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.profile-order-ribbon {
  position: absolute;
  top: 14px;
  right: -42px;
  width: 136px;
  padding: 6px 0;
  background: var(--amber);
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(38deg);
  transform-origin: center;
  box-shadow: 0 8px 18px rgba(51, 27, 17, 0.16);
}

.profile-order-card.status-new .profile-order-ribbon {
  background: #ffcf69;
  color: #6a3a00;
}

.profile-order-card.status-cooking .profile-order-ribbon {
  background: var(--red);
  color: #fff5de;
}

.profile-order-card.status-done .profile-order-ribbon {
  background: var(--green);
  color: #fffaf0;
}

.profile-order-card.status-picked .profile-order-ribbon {
  background: var(--ink);
  color: #fff5de;
}

.logout-button {
  margin-top: 12px;
  min-height: 52px;
  width: 100%;
  border: 1px solid rgba(168, 45, 24, 0.22);
  border-radius: 18px;
  background: #fffaf0;
  color: var(--red-dark);
  cursor: pointer;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.logout-button:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 45, 24, 0.45);
  background: #fff1df;
}

.close-dialog {
  position: absolute;
  top: 16px;
  right: 16px;
}

.toast-stack {
  position: fixed;
  left: 50%;
  top: 94px;
  z-index: 120;
  width: min(430px, calc(100vw - 28px));
  display: grid;
  gap: 10px;
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  border-radius: 18px;
  background: var(--ink);
  color: #fff5de;
  padding: 15px 18px;
  text-align: left;
  font-weight: 800;
  box-shadow: 0 24px 56px rgba(51, 27, 17, 0.24);
  transform-origin: top center;
  animation: toastDrop 320ms cubic-bezier(0.2, 0.9, 0.22, 1.12) both;
  will-change: opacity, transform;
}

.toast.hiding {
  animation: toastOut 280ms ease both;
}

.toast.success {
  background: linear-gradient(135deg, var(--green), #1f613b);
}

.toast.warn {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.quick-section {
  background: linear-gradient(135deg, rgba(216, 67, 34, 0.12), rgba(47, 138, 82, 0.12));
}

.quick-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(280px, 0.68fr);
  gap: clamp(24px, 6vw, 72px);
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 30px;
  background: rgba(255, 250, 240, 0.9);
  padding: clamp(24px, 5vw, 52px);
  box-shadow: 0 18px 54px rgba(95, 42, 16, 0.12);
}

.quick-card p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.quick-form {
  display: grid;
  gap: 14px;
}

.form-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: #331b11;
  color: #fff5de;
  padding: 14px 16px;
  font-family: var(--mono);
}

.form-title span {
  color: var(--amber);
  font-size: 12px;
  text-transform: uppercase;
}

.send-button {
  min-height: 58px;
  width: 100%;
  border: 0;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  padding: 0 8px 0 22px;
  background: linear-gradient(135deg, #331b11, #d84322);
  color: #fff5de;
  box-shadow: 0 18px 36px rgba(168, 45, 24, 0.24);
  font-family: var(--mono);
  font-weight: 700;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.send-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(168, 45, 24, 0.28);
}

.send-button:not(:has(b)) {
  justify-content: center;
  padding: 0 22px;
}

.send-button b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: #fff5de;
  color: var(--red);
  font-family: var(--body);
  font-size: 22px;
}

.send-button.compact {
  min-height: 52px;
}

.send-button.orders-button {
  background: linear-gradient(135deg, var(--green), #174f31);
  box-shadow: 0 18px 36px rgba(47, 138, 82, 0.26);
}

.send-button.orders-button b {
  color: var(--green);
}

.send-button.orders-button:hover {
  box-shadow: 0 22px 44px rgba(47, 138, 82, 0.3);
}

.admin-section {
  background: linear-gradient(180deg, rgba(51, 27, 17, 0.08), rgba(255, 178, 41, 0.12));
}

body.is-orders-view #home > section:not(#ordersView) {
  display: none !important;
}

body:not(.is-orders-view) #ordersView {
  display: none !important;
}

.orders-view {
  min-height: 100vh;
  padding: 104px 0 0;
}

.orders-view.view-enter {
  animation: inlineViewIn 360ms cubic-bezier(0.2, 0.9, 0.22, 1) both;
}

.orders-frame {
  width: 100%;
  min-height: calc(100vh - 104px);
  display: block;
  border: 0;
  background: transparent;
}

.inline-view-panel,
.orders-content {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: rgba(255, 250, 240, 0.82);
  box-shadow: 0 18px 42px rgba(95, 42, 16, 0.12);
}

.orders-hero {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
  padding: 28px;
}

.orders-hero h2 {
  margin-bottom: 10px;
  font-size: clamp(42px, 6vw, 82px);
}

.orders-hero p:not(.eyebrow),
.access-card p {
  color: var(--muted);
  line-height: 1.6;
}

.access-card {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 28px;
}

.orders-content {
  display: grid;
  gap: 18px;
  padding: 18px;
}

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

.summary-grid article {
  min-height: 120px;
  display: grid;
  align-content: space-between;
  border-radius: 20px;
  background: var(--ink);
  color: #fff5de;
  padding: 18px;
}

.summary-grid span,
.filter-button,
.status-label,
.items-title span,
.order-price-box span,
.phone-box span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.summary-grid span {
  color: rgba(255, 245, 222, 0.68);
}

.summary-grid strong {
  font-family: var(--display);
  font-size: 38px;
  font-weight: 400;
}

.last-status-pill {
  width: max-content;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 178, 41, 0.18);
  color: var(--amber);
  font-family: var(--body) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.filter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-button {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  background: #fffaf0;
  color: var(--ink);
  padding: 0 15px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.filter-button.active {
  background: var(--ink);
  color: #fff5de;
}

.orders-list {
  display: grid;
  gap: 14px;
}

.orders-list.filter-flip .order-card,
.orders-list.filter-flip .empty-state {
  animation: orderFlipIn 420ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.order-card {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  border-radius: 22px;
  background: #fffaf0;
  padding: 18px;
  overflow: hidden;
  cursor: pointer;
}

.status-ribbon {
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: 999px;
  background: rgba(47, 138, 82, 0.12);
  color: var(--green);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
}

.order-open-cell {
  display: grid;
  align-content: start;
  gap: 10px;
}

.order-number {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.order-toggle {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff5de;
  cursor: pointer;
}

.order-toggle span {
  display: block;
  width: 12px;
  height: 12px;
  margin: auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 220ms ease;
}

.order-card.open .order-toggle span {
  transform: rotate(225deg) translate(-2px, -2px);
}

.order-summary {
  min-width: 0;
  padding-right: 92px;
}

.order-price-box,
.items-panel,
.phone-box,
.order-side {
  border-radius: 18px;
  background: #fff7e6;
  padding: 16px;
}

.order-price-box {
  display: grid;
  gap: 8px;
}

.order-price-box strong {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 400;
}

.order-details {
  grid-column: 1 / -1;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 260ms ease;
}

.order-card.open .order-details {
  grid-template-rows: 1fr;
}

.order-details-inner {
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.55fr);
  gap: 14px;
}

.order-card.open .order-details-inner {
  padding-top: 14px;
}

.items-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.order-items {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.order-items li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.order-side-stack {
  display: grid;
  gap: 14px;
}

.progress {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(110, 61, 34, 0.14);
  overflow: hidden;
}

.progress-track i {
  display: block;
  width: 46%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--green), var(--amber));
}

.empty-state {
  border-radius: 20px;
  background: #fffaf0;
  padding: 26px;
  text-align: center;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-stat,
.admin-table {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: rgba(255, 250, 240, 0.9);
  box-shadow: 0 14px 34px rgba(95, 42, 16, 0.1);
}

.admin-stat {
  padding: 22px;
}

.admin-stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-stat strong {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: clamp(28px, 4vw, 46px);
}

.admin-tables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-table {
  padding: 24px;
}

.admin-table h3 {
  margin-bottom: 18px;
}

.admin-table ul {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-table li {
  border-radius: 16px;
  background: #fff7e6;
  padding: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.admin-table strong {
  display: block;
  color: var(--ink);
}

.export-button {
  justify-self: end;
}

@keyframes steamRise {
  0% {
    opacity: 0;
    transform: translateY(18px) scaleX(0.88) scaleY(0.72);
  }
  24% {
    opacity: 0.88;
  }
  62% {
    opacity: 0.64;
    transform: translateY(-18px) scaleX(1.1) scaleY(1.08);
  }
  100% {
    opacity: 0;
    transform: translateY(-48px) scaleX(1.34) scaleY(1.34);
  }
}

@keyframes statusGlow {
  0%,
  100% {
    opacity: 0.42;
    transform: translateY(-50%) scale(0.98);
  }
  50% {
    opacity: 0.58;
    transform: translateY(-50%) scale(1.02);
  }
}

@keyframes tickerMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes pageEnter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pageLeave {
  to {
    opacity: 0;
  }
}

@keyframes qtyPulse {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.018);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes inlineViewIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes orderFlipIn {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes suggestIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pinPop {
  0%,
  100% {
    transform: rotate(-45deg) translateY(0);
  }
  50% {
    transform: rotate(-45deg) translateY(-8px);
  }
}

@keyframes addButtonPop {
  0% {
    transform: translateY(0) scale(1);
  }
  28% {
    transform: translateY(-3px) scale(1.08);
  }
  56% {
    transform: translateY(1px) scale(0.97);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes addButtonShine {
  from {
    transform: translateX(-120%) skewX(-18deg);
  }
  to {
    transform: translateX(420%) skewX(-18deg);
  }
}

@keyframes addButtonCheck {
  0% {
    opacity: 0;
    transform: translateY(-62%) rotate(35deg) scale(0.35);
  }
  35%,
  80% {
    opacity: 1;
    transform: translateY(-62%) rotate(35deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-62%) rotate(35deg) scale(0.75);
  }
}

@keyframes favoriteButtonTilt {
  0%,
  100% {
    transform: rotate(0) scale(1);
  }
  32% {
    transform: rotate(-8deg) scale(1.08);
  }
  64% {
    transform: rotate(5deg) scale(0.98);
  }
}

@keyframes favoriteHeartPop {
  0% {
    transform: translateY(1px) scale(0.72);
  }
  42% {
    transform: translateY(-2px) scale(1.34);
  }
  70% {
    transform: translateY(1px) scale(0.96);
  }
  100% {
    transform: translateY(1px) scale(1.14);
  }
}

@keyframes favoriteSpark {
  0% {
    opacity: 0;
    box-shadow:
      0 0 0 0 rgba(216, 67, 34, 0),
      0 0 0 0 rgba(255, 178, 41, 0);
  }
  34% {
    opacity: 0.9;
    box-shadow:
      -18px -12px 0 -1px rgba(216, 67, 34, 0.84),
      16px -16px 0 -1px rgba(255, 178, 41, 0.92),
      20px 10px 0 -2px rgba(216, 67, 34, 0.62),
      -15px 15px 0 -2px rgba(255, 178, 41, 0.7);
  }
  100% {
    opacity: 0;
    box-shadow:
      -26px -18px 0 -4px rgba(216, 67, 34, 0),
      24px -24px 0 -4px rgba(255, 178, 41, 0),
      30px 16px 0 -5px rgba(216, 67, 34, 0),
      -24px 24px 0 -5px rgba(255, 178, 41, 0);
  }
}

@keyframes favoriteRing {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.78);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.55);
  }
}

@keyframes favoriteCardOut {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(34px) scale(0.96);
  }
}

@keyframes cartBump {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.14) rotate(-4deg);
  }
  70% {
    transform: scale(0.96) rotate(2deg);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes menuRise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes modalClose {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
}

@keyframes mobileSheetIn {
  from {
    opacity: 1;
    transform: translateY(105%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mobileSheetOut {
  to {
    opacity: 1;
    transform: translateY(105%);
  }
}

@keyframes backdropFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes backdropFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes profileOrdersPulse {
  0%,
  100% {
    box-shadow: none;
    transform: scale(1);
  }
  35% {
    box-shadow: 0 0 0 5px rgba(47, 138, 82, 0.12);
    transform: scale(1.01);
  }
}

@keyframes toastDrop {
  from {
    opacity: 0;
    transform: translateY(-86px) scale(0.96);
  }
  58% {
    opacity: 1;
    transform: translateY(6px) scale(1.01);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-86px) scale(0.96);
  }
}

@media (max-width: 1100px) {
  body {
    padding-bottom: 86px;
  }

  .topbar {
    grid-template-columns: 1fr auto;
    will-change: auto;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav {
    position: fixed;
    left: 12px;
    right: 12px;
    top: auto;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 260;
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 22px;
    background: rgba(255, 250, 240, 0.94);
    box-shadow: 0 18px 44px rgba(51, 27, 17, 0.2);
  }

  .nav a {
    flex: 1;
    min-height: 42px;
    display: grid;
    place-items: center;
    padding: 0 8px;
    border-radius: 16px;
    background: rgba(255, 238, 200, 0.72);
    font-size: 12px;
  }

  .nav a:hover {
    transform: none;
  }

  .hero,
  .delivery,
  .request-layout,
  .quick-card,
  .admin-tables,
  .section-head {
    grid-template-columns: 1fr;
  }

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

  .features {
    grid-template-columns: 1fr;
  }

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

  .filters {
    justify-content: start;
  }
}

@media (max-width: 640px) {
  .topbar {
    left: 10px;
    right: 10px;
    top: 10px;
    border-radius: 20px;
  }

  .toast-stack {
    top: 82px;
  }

  .brand small,
  #loginText {
    display: none;
  }

  .chip-button {
    width: 46px;
    padding: 0;
    justify-content: center;
  }

  .admin-panel-link {
    width: 46px;
    min-width: 46px;
    padding: 0;
    font-size: 0;
  }

  .admin-panel-link::before {
    content: "A";
    font-family: var(--mono);
    font-size: 15px;
  }

  .cart-drawer {
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 320;
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
    padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
    transform: translateY(105%);
    transition: transform 320ms cubic-bezier(0.2, 0.9, 0.22, 1);
  }

  .cart-drawer.open {
    transform: translateY(0);
  }

  .login-modal {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border-radius: 0;
  }

  .login-modal[open] {
    display: grid;
    place-items: stretch;
  }

  .login-box {
    width: 100vw;
    max-height: 100dvh;
    min-height: 100dvh;
    border-radius: 0;
    padding: 24px 18px calc(24px + env(safe-area-inset-bottom));
  }

  .login-modal[open] .login-box {
    animation: mobileSheetIn 320ms cubic-bezier(0.2, 0.9, 0.22, 1) both;
  }

  .login-modal.closing .login-box {
    animation: mobileSheetOut 240ms ease both;
  }

  .hero {
    min-height: 92vh;
    padding: 126px 18px 54px;
  }

  .hero-ticket {
    display: none;
  }

  .section {
    padding-inline: 18px;
  }

  .feature {
    min-width: 0;
    overflow: hidden;
    padding: 24px;
  }

  .feature h2 {
    max-width: 100%;
    font-size: clamp(27px, 8.5vw, 34px);
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .delivery-stats,
  .admin-grid,
  .summary-grid,
  .order-details-inner {
    grid-template-columns: 1fr;
  }

  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .menu-card {
    min-height: 300px;
    padding: 16px;
  }

  .menu-card::before {
    right: -54px;
    top: -48px;
  }

  .dish-art {
    width: 88px;
    height: 60px;
    margin-bottom: 16px;
  }

  .menu-card h3 {
    font-size: clamp(20px, 6vw, 24px);
  }

  .menu-card p {
    min-height: 94px;
    font-size: 13px;
    line-height: 1.42;
  }

  .card-bottom {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .price {
    font-size: 18px;
  }

  .add-button {
    min-height: 40px;
    padding: 0 12px;
    font-size: 12px;
  }

  .like-button {
    right: 12px;
    top: 12px;
    width: 38px;
    height: 38px;
  }

  .heart-icon {
    font-size: 23px;
  }

  .order-card {
    grid-template-columns: 1fr;
  }

  .order-summary {
    padding-right: 0;
  }

  .route-map {
    min-height: 260px;
  }

  .steam,
  .pin {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
