:root {
  --ink: #15120f;
  --muted: #756d63;
  --paper: #fffaf1;
  --panel: #ffffff;
  --ember: #e9461a;
  --pepper: #a9001f;
  --leaf: #1f7a4d;
  --smoke: #25201b;
  --line: rgba(21, 18, 15, 0.12);
  --shadow: 0 26px 70px rgba(41, 23, 8, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(169, 0, 31, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(169, 0, 31, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
}

button,
a {
  font: inherit;
}

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

button {
  cursor: pointer;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.announcement-strip {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 42px;
  padding: 8px clamp(14px, 4vw, 34px);
  color: #fff;
  background: #25160f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 28px rgba(41, 23, 8, 0.18);
}

.announcement-window {
  min-width: 0;
  min-height: 22px;
  overflow: hidden;
  color: #fff;
  font-weight: 950;
  text-align: center;
}

#announcementText {
  display: inline-block;
}

#announcementText.is-flipping {
  animation: announcementFlip 420ms ease both;
}

@keyframes announcementFlip {
  0% {
    opacity: 0;
    transform: translateY(18px) rotateX(-70deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}

.platform-page {
  min-height: 100vh;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    #15120f;
  background-size: 42px 42px;
  padding: clamp(14px, 4vw, 42px);
}

.platform-flyer {
  min-height: calc(100vh - clamp(28px, 8vw, 84px));
  max-width: 980px;
  display: grid;
  grid-template-rows: auto minmax(320px, 1fr) auto;
  gap: clamp(18px, 4vw, 34px);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 36px);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(21, 18, 15, 0.92), rgba(37, 32, 27, 0.95)),
    url("assets/suya/suya-grill-hero.webp") center/cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.platform-flyer .brand-wordmark {
  color: #fff;
}

.platform-flyer-brand {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 22px);
}

.platform-flyer-brand .brand-mark {
  width: clamp(82px, 12vw, 126px);
  height: clamp(82px, 12vw, 126px);
}

.platform-flyer-brand .brand-wordmark {
  font-size: clamp(1.25rem, 5vw, 2.4rem);
}

.platform-flyer-image {
  position: relative;
  min-height: 340px;
  display: grid;
  align-items: start;
  justify-items: center;
  overflow: hidden;
  padding: clamp(52px, 7vw, 82px) clamp(18px, 4vw, 36px) clamp(156px, 18vw, 210px);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(21, 18, 15, 0.24), rgba(169, 0, 31, 0.16)),
    var(--smoke);
}

.platform-flyer-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.platform-flyer-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(21, 18, 15, 0.68), rgba(21, 18, 15, 0.1));
}

.platform-flyer-image strong {
  position: relative;
  z-index: 1;
  max-width: 7.5ch;
  color: #fff;
  font-size: clamp(3.4rem, 10.5vw, 8.2rem);
  line-height: 0.82;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 12px 34px rgba(21, 18, 15, 0.42);
}

.platform-offer {
  position: absolute;
  left: clamp(14px, 3vw, 24px);
  bottom: clamp(14px, 3vw, 24px);
  z-index: 1;
  display: grid;
  gap: 2px;
  padding: clamp(12px, 2.2vw, 18px) clamp(14px, 2.8vw, 22px);
  color: #fff;
  background: var(--pepper);
  border-radius: 8px;
  font-weight: 950;
  box-shadow: 0 22px 44px rgba(169, 0, 31, 0.36);
}

.platform-offer b {
  display: block;
  font-size: clamp(2.4rem, 8vw, 5.8rem);
  line-height: 0.84;
}

.platform-offer small {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(0.92rem, 2.3vw, 1.25rem);
  font-weight: 950;
  text-transform: uppercase;
}

.platform-launch-date {
  position: absolute;
  right: clamp(14px, 3vw, 24px);
  top: clamp(14px, 3vw, 24px);
  z-index: 1;
  padding: 10px 14px;
  color: var(--ink);
  background: #fffaf1;
  border-radius: 8px;
  font-weight: 950;
  box-shadow: 0 16px 34px rgba(21, 18, 15, 0.24);
}

.platform-process {
  display: grid;
  gap: 12px;
}

.platform-process > img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #0c0907;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.platform-flyer-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  background:
    linear-gradient(90deg, transparent 0 9%, rgba(255, 255, 255, 0.24) 9% 91%, transparent 91%),
    rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  overflow: hidden;
}

.platform-flyer-steps article {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr;
  justify-items: center;
  gap: 10px;
  min-height: 154px;
  padding: clamp(14px, 2vw, 20px) 12px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.platform-flyer-steps article:last-child {
  border-right: 0;
}

.platform-flyer-steps article::after {
  content: "";
  position: absolute;
  top: 58px;
  right: -8px;
  z-index: 2;
  width: 15px;
  height: 15px;
  border-top: 2px solid rgba(255, 255, 255, 0.42);
  border-right: 2px solid rgba(255, 255, 255, 0.42);
  transform: rotate(45deg);
}

.platform-flyer-steps article:last-child::after {
  display: none;
}

.platform-flyer-steps .step-number {
  display: block;
  color: #ffb06b;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #fff;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 176, 107, 0.85), rgba(169, 0, 31, 0.9)),
    var(--pepper);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  box-shadow: 0 14px 30px rgba(169, 0, 31, 0.34);
}

.step-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.platform-flyer-steps strong {
  display: block;
  font-size: clamp(0.98rem, 2vw, 1.18rem);
  line-height: 1.1;
}

.is-hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

.hero {
  min-height: 94vh;
  padding: 24px clamp(18px, 4vw, 64px) 42px;
  background:
    radial-gradient(circle at 12% 24%, rgba(233, 70, 26, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(255, 250, 241, 0.92), rgba(255, 241, 216, 0.72)),
    var(--hero-bg-image, url("assets/suya/suya-grill-hero.webp")) center/cover;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  background: linear-gradient(180deg, transparent, var(--paper));
  pointer-events: none;
}

.nav,
.brand,
.nav-links,
.hero-actions,
.product-meta,
.panel-toolbar,
.order-top,
.order-actions,
.admin-header {
  display: flex;
  align-items: center;
}

.nav {
  position: relative;
  z-index: 2;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
}

.brand {
  gap: 22px;
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 0.95;
  min-width: 0;
}

.brand > span:last-child {
  min-width: 0;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  justify-content: center;
  font-size: clamp(1.45rem, 3vw, 2.45rem);
  line-height: 0.86;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 126px;
  height: 126px;
  border-radius: 8px;
  color: #fff;
  background: var(--smoke);
  box-shadow: 0 20px 44px rgba(37, 32, 27, 0.2);
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-mark img {
  width: 86%;
  height: 86%;
  object-fit: contain;
}

.nav-links {
  gap: clamp(14px, 2.4vw, 30px);
  color: var(--smoke);
  font-size: 0.95rem;
  font-weight: 750;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.nav-logout {
  padding: 0;
  color: var(--smoke);
  border: 0;
  background: transparent;
  font-weight: 850;
}

.nav-logout:hover {
  color: var(--pepper);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.8fr);
  align-items: center;
  gap: clamp(30px, 6vw, 88px);
  max-width: 1240px;
  margin: 48px auto 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--pepper);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 900;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(4rem, 9vw, 8.3rem);
  line-height: 0.86;
  letter-spacing: 0;
  max-width: 10ch;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-text {
  max-width: 620px;
  color: #443d35;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.primary-action,
.secondary-action,
.order-button,
.order-actions button,
.sound-toggle {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 850;
}

.primary-action,
.order-button {
  color: #fff;
  background: var(--pepper);
  box-shadow: 0 16px 32px rgba(169, 0, 31, 0.22);
}

.order-button:disabled {
  cursor: not-allowed;
  color: rgba(37, 32, 27, 0.55);
  background: #eadfcd;
  box-shadow: none;
}

.secondary-action,
.order-actions button,
.sound-toggle {
  color: var(--smoke);
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--line);
}

.product-stage {
  position: relative;
  min-height: 560px;
}

.photo-frame {
  width: min(100%, 520px);
  aspect-ratio: 0.82;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  background: var(--smoke);
}

.photo-frame img,
.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.signature-card span,
.signature-card small,
.toolbar-label,
.rail-item span,
.metric-strip span,
.admin-metrics span,
.ticket-card span,
.ticket-card small {
  color: var(--muted);
}

.toast-pulse {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--leaf);
  box-shadow: 0 0 0 8px rgba(31, 122, 77, 0.14);
}

.signature-card {
  left: -5%;
  bottom: 8%;
  width: min(330px, 86%);
  padding: 20px;
}

.signature-card strong {
  display: block;
  margin: 6px 0;
  font-size: 1.25rem;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: 1160px;
  margin: -28px auto 0;
  padding: 0 clamp(18px, 4vw, 0px);
  position: relative;
  z-index: 3;
  box-shadow: var(--shadow);
}

.metric-strip article {
  background: var(--smoke);
  color: #fff;
  padding: 22px;
}

.metric-strip article:first-child {
  border-radius: 8px 0 0 8px;
}

.metric-strip article:last-child {
  border-radius: 0 8px 8px 0;
}

.metric-strip span {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
}

.metric-strip strong {
  display: block;
  margin-top: 7px;
  font-size: 1.35rem;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(76px, 9vw, 118px) clamp(18px, 4vw, 24px) 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.product-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.shop-layout.has-cart {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.product-card {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 18px;
  padding: 14px;
  min-height: 252px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(41, 23, 8, 0.08);
}

.featured-product {
  grid-row: span 2;
  grid-template-columns: 1fr;
}

.featured-product img {
  min-height: 300px;
}

.product-card img {
  border-radius: 6px;
}

.product-tag {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.product-card h3 {
  margin-bottom: 10px;
  font-size: 1.45rem;
}

.product-card p,
.flow-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.product-meta {
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
}

.product-meta strong {
  font-size: 1.15rem;
}

.cart-panel {
  position: sticky;
  top: 18px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(41, 23, 8, 0.08);
}

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

.cart-heading,
.cart-total,
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-heading {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.cart-heading h3 {
  margin-bottom: 0;
  font-size: 1.4rem;
}

.cart-heading strong {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #fff;
  background: var(--pepper);
}

.cart-list {
  display: grid;
  gap: 10px;
  padding: 14px 0;
}

.delivery-zone-field {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  color: var(--smoke);
  font-weight: 850;
}

.delivery-zone-field input,
.delivery-zone-field select,
.delivery-zone-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.delivery-zone-field select {
  padding-top: 0;
  padding-bottom: 0;
}

.delivery-zone-field textarea {
  resize: vertical;
}

.detected-delivery-card,
.manual-payment-card {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  background: #fffaf1;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detected-delivery-card span,
.manual-payment-card span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detected-delivery-card strong,
.manual-payment-card strong {
  font-size: 1.1rem;
}

.detected-delivery-card p,
.manual-payment-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 850;
}

.detected-delivery-card[data-state="ready"] {
  border-color: rgba(31, 122, 77, 0.34);
  background: #f0fff5;
}

.detected-delivery-card[data-state="error"] {
  border-color: rgba(169, 0, 31, 0.28);
  background: #fff1f1;
}

.empty-cart {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.empty-state {
  margin: 0;
  padding: 18px;
  color: var(--muted);
  background: #fff;
  font-weight: 750;
  line-height: 1.45;
}

.cart-item {
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf1;
}

.cart-item h4 {
  margin: 0 0 5px;
}

.cart-item p {
  margin: 0;
  color: var(--muted);
}

.cart-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-controls button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 900;
}

.cart-summary {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.cart-total {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 1.1rem;
}

.cart-grand-total {
  color: var(--pepper);
}

.cart-checkout {
  width: 100%;
  margin-top: 14px;
}

.cart-checkout:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
}

.cart-overlay {
  display: none;
}

.site-footer {
  margin-top: clamp(44px, 6vw, 76px);
  color: #fff;
  background: var(--smoke);
}

.footer-mobile-highlights {
  display: none;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  padding: clamp(24px, 4vw, 38px) clamp(18px, 4vw, 24px);
}

.footer-brand {
  width: fit-content;
  margin-bottom: 16px;
}

.footer-brand .brand-mark {
  background: #fff;
}

.site-footer p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.6;
}

.footer-links {
  display: grid;
  gap: 4px;
  min-width: 180px;
}

.footer-links a,
.footer-links span {
  padding: 7px 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 850;
}

.footer-links a:hover {
  color: #fff;
}

.footer-links #footerOrderHelpLink {
  padding: 8px 10px;
  color: #fff;
  background: var(--pepper);
  border-radius: 8px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px clamp(18px, 4vw, 24px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.58);
}

.admin-body {
  background: #f7f1e6;
}

.auth-body {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(37, 32, 27, 0.82), rgba(169, 0, 31, 0.6)),
    url("assets/suya/suya-closeup-portrait.webp") center/cover;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.65fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: clamp(22px, 5vw, 68px);
}

.auth-brand-panel {
  min-height: min(720px, calc(100vh - 80px));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}

.auth-brand-panel .brand {
  width: fit-content;
}

.auth-brand-panel .brand-mark {
  background: #fff;
  color: var(--smoke);
}

.auth-brand-panel .eyebrow {
  color: #ffb59f;
}

.auth-brand-panel h1 {
  max-width: 9ch;
  font-size: clamp(4rem, 9vw, 8rem);
}

.auth-brand-panel .hero-text {
  color: rgba(255, 255, 255, 0.78);
}

.auth-card-stack {
  display: grid;
  gap: 12px;
}

.auth-panel {
  padding: clamp(22px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.auth-back-link {
  justify-self: center;
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(255, 255, 255, 0.7);
}

.confirmation-hero h1 {
  max-width: 8ch;
}

.confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.success-pill {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.success-mark {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #1f7a4d;
}

.success-mark::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.confirmation-panel {
  display: grid;
  gap: 18px;
}

.confirmation-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 0.95;
}

.confirmation-details {
  display: grid;
  gap: 10px;
}

.confirmation-details div {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(37, 32, 27, 0.12);
  border-radius: 8px;
  background: #fffaf1;
}

.confirmation-details span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.confirmation-details strong {
  text-align: right;
}

.confirmation-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px;
  background: #f4eadb;
  border-radius: 8px;
}

.auth-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-weight: 900;
}

.auth-tabs button.is-active {
  color: #fff;
  background: var(--pepper);
}

.google-auth-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  margin-bottom: 14px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 950;
  box-shadow: 0 14px 30px rgba(41, 23, 8, 0.08);
}

.google-auth-button span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #fff;
  background: #15120f;
  border-radius: 50%;
  font-weight: 950;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

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

.auth-form label {
  display: grid;
  gap: 7px;
  color: var(--smoke);
  font-weight: 850;
}

.auth-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.auth-form .legal-check {
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.auth-form .legal-check input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--pepper);
}

.legal-check a,
.legal-inline a {
  color: var(--pepper);
  font-weight: 950;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-inline {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.auth-note {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.auth-note:empty,
.hero-text:empty {
  display: none;
}

.account-body {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(169, 0, 31, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(169, 0, 31, 0.04) 1px, transparent 1px),
    #f7f1e6;
  background-size: 42px 42px;
}

.legal-body {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(169, 0, 31, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(169, 0, 31, 0.04) 1px, transparent 1px),
    #f7f1e6;
  background-size: 42px 42px;
}

.legal-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(16px, 4vw, 34px);
}

.legal-hero {
  display: grid;
  gap: 14px;
  margin: clamp(28px, 7vw, 74px) 0 clamp(18px, 4vw, 34px);
}

.legal-hero h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.3rem, 8vw, 7rem);
  line-height: 0.88;
}

.legal-hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.6;
}

.legal-card {
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin-bottom: clamp(34px, 7vw, 84px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.legal-card section {
  padding: clamp(20px, 4vw, 34px);
  background: rgba(255, 250, 241, 0.94);
}

.legal-card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.2rem, 2.2vw, 1.85rem);
}

.legal-card p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.legal-card p + p {
  margin-top: 10px;
}

.account-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(18px, 4vw, 42px);
}

.account-nav {
  margin-bottom: clamp(28px, 6vw, 70px);
}

.customer-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.45fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: stretch;
  margin-bottom: 18px;
}

.customer-hero h1 {
  max-width: 10ch;
  margin: 0 0 18px;
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 0.86;
}

.account-profile-card,
.account-stats article,
.account-orders-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(41, 23, 8, 0.08);
}

.account-profile-card {
  display: grid;
  gap: 18px;
  align-content: end;
  padding: clamp(20px, 4vw, 34px);
}

.account-avatar {
  width: 82px;
  height: 82px;
  font-size: 1.4rem;
}

.account-profile-card strong {
  display: block;
  margin: 6px 0;
  font-size: 1.8rem;
}

.account-profile-card p {
  margin: 0 0 6px;
  color: var(--muted);
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.account-stats article {
  padding: 18px;
}

.account-stats span {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 900;
}

.account-stats strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
}

.account-orders-panel {
  overflow: hidden;
}

.account-order-list {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.account-order-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: #fff;
}

.account-order-card h3 {
  margin: 8px 0 4px;
}

.account-order-card p {
  margin: 0;
  color: var(--muted);
}

.order-card .order-timestamp,
.account-order-card .order-timestamp {
  margin: 8px 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.account-rider-card {
  margin-top: 14px;
  padding: 12px;
  background: #fffaf1;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.account-rider-card span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.account-rider-card strong {
  display: block;
  margin-top: 4px;
}

.account-rider-card p {
  margin-top: 5px;
}

.checkout-shell {
  max-width: 1240px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(340px, 0.55fr);
  gap: clamp(18px, 4vw, 34px);
  align-items: start;
}

.checkout-panel,
.checkout-summary-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(41, 23, 8, 0.08);
}

.checkout-panel {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 34px);
}

.checkout-panel h1 {
  margin: 0 0 12px;
  font-size: clamp(3.4rem, 8vw, 7rem);
  line-height: 0.88;
}

.checkout-summary-panel {
  overflow: hidden;
  position: sticky;
  top: 24px;
  border: 2px solid rgba(37, 32, 27, 0.18);
  box-shadow: 0 24px 70px rgba(41, 23, 8, 0.14);
}

.checkout-summary-panel .panel-toolbar {
  padding: 22px;
  background: #fff;
}

.security-badge {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid rgba(31, 122, 77, 0.24);
  border-radius: 8px;
  background: #ecf8f0;
  color: #1f7a4d;
  font-size: 0.86rem;
  font-weight: 900;
  white-space: nowrap;
}

.security-shield {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 20px;
  flex: 0 0 auto;
  background: #1f7a4d;
  clip-path: polygon(50% 0, 90% 16%, 84% 64%, 50% 100%, 16% 64%, 10% 16%);
}

.security-shield::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 5px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkout-summary-panel .cart-list {
  gap: 12px;
  padding: 16px;
  background: #fffaf1;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.checkout-summary-panel .cart-item {
  border-color: rgba(37, 32, 27, 0.18);
  background: #fffaf7;
  box-shadow: 0 8px 20px rgba(41, 23, 8, 0.04);
}

.checkout-summary-panel .cart-summary {
  margin-top: 0;
  padding: 8px 18px 18px;
  background: #fff;
}

.checkout-summary-panel .cart-total {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.checkout-summary-panel .cart-grand-total {
  font-size: 1.25rem;
  font-weight: 900;
}

.checkout-summary-panel .promo-total {
  color: var(--leaf);
}

.checkout-summary-panel .promo-total strong {
  color: var(--leaf);
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  z-index: 10;
  align-self: start;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 22px;
  background: #fffaf1;
  color: var(--smoke);
  border-right: 1px solid var(--line);
  box-shadow: 18px 0 54px rgba(41, 23, 8, 0.08);
}

.admin-sidebar .brand {
  align-items: center;
  gap: 14px;
  font-size: 1.3rem;
}

.admin-sidebar .brand-wordmark {
  font-size: 1.2rem;
}

.admin-sidebar .brand-mark {
  width: 74px;
  height: 74px;
  background: #fff;
  color: var(--smoke);
  box-shadow: 0 16px 38px rgba(41, 23, 8, 0.12);
}

.admin-sidebar-section {
  display: grid;
  gap: 12px;
}

.admin-nav {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.admin-nav button {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 8px;
  color: #15120f;
  border: 1px solid var(--line);
  background: #fff;
  text-align: left;
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(41, 23, 8, 0.06);
}

.admin-nav button.is-active,
.admin-nav button:hover {
  color: var(--pepper);
  background: #fff4df;
}

.admin-storefront-link,
.admin-sound {
  justify-content: center;
  color: #15120f !important;
  background: #fff;
}

.admin-main {
  width: min(100%, 1320px);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 52px);
  min-width: 0;
}

.admin-header {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.admin-header h1 {
  margin-bottom: 0;
  font-size: clamp(3rem, 7vw, 6.5rem);
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

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

.admin-metrics article,
.control-rail,
.orders-panel,
.notifications-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(41, 23, 8, 0.08);
}

.admin-metrics article {
  padding: 18px;
}

.admin-metrics strong {
  display: block;
  margin-top: 8px;
  font-size: 2.1rem;
}

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

.analytics-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(41, 23, 8, 0.08);
}

.analytics-filter strong {
  display: block;
  margin-top: 4px;
  font-size: 1.15rem;
}

.analytics-range-controls,
.analytics-custom-range {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.analytics-range-controls button {
  min-height: 40px;
  padding: 0 14px;
  color: var(--smoke);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 850;
}

.analytics-range-controls button.is-active {
  color: #fff;
  background: var(--pepper);
  border-color: var(--pepper);
}

.analytics-custom-range label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
}

.analytics-custom-range input {
  min-height: 40px;
  width: 150px;
  padding: 0 10px;
  color: var(--smoke);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
}

.analytics-card,
.analytics-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(41, 23, 8, 0.08);
}

.analytics-card {
  min-height: 164px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: 18px;
  overflow: hidden;
  position: relative;
}

.analytics-card::after {
  content: "";
  position: absolute;
  inset: auto 14px 14px auto;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ember) 14%, transparent);
}

.analytics-card-hero {
  grid-column: span 2;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(169, 0, 31, 0.92), rgba(37, 32, 27, 0.96)),
    url("assets/suya/suya-closeup.webp") center/cover;
}

.analytics-card span,
.analytics-row span,
.ops-list span {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 900;
}

.analytics-card-hero span,
.analytics-card-hero p {
  color: rgba(255, 255, 255, 0.74);
}

.analytics-card strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.95;
  letter-spacing: 0;
  position: relative;
  z-index: 1;
}

.analytics-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  position: relative;
  z-index: 1;
}

.analytics-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.analytics-panel {
  overflow: hidden;
}

.analytics-list,
.ops-list {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.analytics-row,
.ops-list article {
  background: #fff;
  padding: 16px 18px;
}

.analytics-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) minmax(120px, 0.35fr);
  gap: 14px;
  align-items: center;
}

.analytics-row > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #fff;
  background: var(--smoke);
}

.analytics-row strong,
.ops-list strong {
  display: block;
  font-size: 1.05rem;
}

.analytics-row p {
  margin: 5px 0 0;
  color: var(--muted);
}

.analytics-row meter {
  width: 100%;
  height: 12px;
}

.ops-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.control-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.control-rail {
  padding: 12px;
}

.rail-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  margin-bottom: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
}

.rail-item.is-active {
  background: #fff4df;
  border-color: rgba(233, 70, 26, 0.28);
}

.orders-panel {
  overflow: hidden;
}

.notifications-panel {
  margin-top: 18px;
  padding: 18px;
}

.toolbar-note {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.product-admin-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.5fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.settings-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.45fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.rider-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
  align-items: start;
}

.settings-forms {
  display: grid;
  gap: 18px;
}

.product-editor,
.product-admin-panel,
.customers-panel,
.waitlist-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(41, 23, 8, 0.08);
}

.product-editor {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
  padding: 18px;
}

#businessForm {
  grid-column: 1 / -1;
  position: static;
  grid-template-columns: 1fr;
  align-items: start;
  max-width: 980px;
}

#businessForm > .primary-action,
#businessNote {
  grid-column: 1 / -1;
}

#businessForm .editor-title {
  grid-template-columns: 1fr;
}

.business-info-settings {
  display: grid;
  gap: 16px;
}

.announcement-settings {
  display: grid;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.editor-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 14px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.editor-title strong {
  display: block;
  margin-top: 5px;
  font-size: 1.3rem;
}

.editor-title img {
  width: 92px;
  height: 76px;
  object-fit: cover;
  border-radius: 8px;
  background: #f4eadb;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.product-editor label {
  display: grid;
  gap: 7px;
  color: var(--smoke);
  font-weight: 850;
}

.product-editor .toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-editor .toggle-row input {
  width: 18px;
  min-height: 18px;
}

.product-editor input,
.product-editor textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.product-editor textarea {
  resize: vertical;
}

.hero-image-settings {
  display: grid;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.hero-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero-preview-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.hero-preview-grid img {
  width: 100%;
  height: 130px;
  display: block;
  object-fit: cover;
  background: #f4eadb;
}

.hero-preview-grid figcaption {
  padding: 9px 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.upload-control input {
  padding: 9px;
}

.inline-check {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 10px !important;
}

.inline-check input {
  width: auto;
  min-height: auto;
}

.product-editor-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-admin-panel,
.customers-panel,
.waitlist-panel {
  overflow: hidden;
}

.admin-product-list,
.customer-list,
.waitlist-list {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.admin-product-card,
.customer-card,
.waitlist-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: #fff;
}

.waitlist-panel {
  grid-column: 1 / -1;
}

.waitlist-card {
  grid-template-columns: minmax(0, 1fr) auto;
}

.waitlist-card strong {
  display: block;
  color: var(--ink);
}

.waitlist-card span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.admin-product-card.is-unavailable {
  opacity: 0.58;
}

.admin-product-card img {
  width: 82px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
}

.admin-product-card h3 {
  margin-bottom: 5px;
  font-size: 1.05rem;
}

.admin-product-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.product-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.product-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f4eadb;
  color: var(--smoke);
  font-size: 0.76rem;
  font-weight: 900;
}

.product-badges .is-live {
  color: var(--leaf);
  background: #dcf8e5;
}

.product-badges .is-offline {
  color: #7a4d00;
  background: #fff1bd;
}

.customer-avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  color: #fff;
  background: var(--pepper);
  font-weight: 950;
}

.customer-card {
  grid-template-columns: 58px minmax(0, 1fr) auto;
}

.customer-card h3 {
  margin-bottom: 5px;
  font-size: 1.05rem;
}

.customer-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.customer-spend {
  text-align: right;
  font-weight: 900;
}

.admin-product-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-product-actions button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 850;
}

.panel-toolbar {
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.toolbar-label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 900;
}

.order-list {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.order-card {
  background: #fff;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
}

.order-card.is-new {
  animation: orderFlash 1.2s ease;
}

.order-top {
  gap: 10px;
  flex-wrap: wrap;
}

.order-id {
  font-weight: 900;
}

.status {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.status.New {
  color: var(--pepper);
  background: #ffe3dc;
}

.status.Awaiting {
  color: #7a4d00;
  background: #fff1bd;
}

.status.Ready {
  color: var(--leaf);
  background: #dcf8e5;
}

.status.pending,
.status.available {
  color: #7a4d00;
  background: #fff1bd;
}

.status.approved,
.status.accepted,
.status.delivered {
  color: var(--leaf);
  background: #dcf8e5;
}

.status.suspended,
.status.cancelled {
  color: var(--pepper);
  background: #ffe3dc;
}

.order-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.admin-note-field {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-note-field textarea {
  width: 100%;
  min-height: 74px;
  resize: vertical;
  padding: 10px 12px;
  color: var(--ink);
  background: #fffaf1;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  text-transform: none;
}

.order-actions {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.order-actions .ready-action {
  min-width: 118px;
  color: #fff;
  border-color: var(--pepper);
  background: var(--pepper);
}

.order-actions .ready-action:hover {
  border-color: var(--ember);
  background: var(--ember);
}

.order-actions .ready-action.is-ready,
.order-actions .ready-action:disabled {
  color: #fff;
  border-color: var(--leaf);
  background: var(--leaf);
  cursor: default;
  opacity: 1;
}

.note-action,
.customer-actions button {
  min-height: 38px;
  padding: 0 12px;
  color: var(--smoke);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.note-action:hover,
.customer-actions button:hover {
  border-color: rgba(169, 0, 31, 0.34);
  color: var(--pepper);
}

.notification-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border-radius: 8px;
}

.notification-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: #fff;
}

.notification-card strong {
  display: block;
  margin-bottom: 5px;
}

.notification-card p,
.notification-card span {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.notification-card.sent span {
  color: var(--leaf);
}

.notification-card.failed span {
  color: var(--pepper);
}

.chat-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 25;
}

.chat-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  min-height: 54px;
  padding: 0 20px;
  color: #fff;
  background: var(--pepper);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 18px 44px rgba(169, 0, 31, 0.28);
  cursor: pointer;
}

.chat-bubble span {
  font-weight: 950;
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  display: grid;
  gap: 12px;
  width: min(360px, calc(100vw - 32px));
  padding: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(21, 18, 15, 0.24);
}

.chat-panel[hidden] {
  display: none;
}

.chat-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chat-panel-header strong {
  display: block;
}

.chat-panel-header button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.chat-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.chat-login-gate {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.chat-login-gate[hidden] {
  display: none;
}

.chat-login-gate strong {
  font-size: 1.05rem;
}

.chat-panel input,
.chat-panel textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  resize: vertical;
}

.chat-messages,
.chat-message-log {
  display: grid;
  gap: 8px;
  max-height: 240px;
  overflow: auto;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.chat-message {
  display: grid;
  gap: 4px;
  max-width: 86%;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.chat-message.from-admin {
  justify-self: end;
  color: #fff;
  background: var(--smoke);
  border-color: var(--smoke);
}

.chat-message span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.chat-message.from-admin span {
  color: rgba(255, 255, 255, 0.62);
}

.chat-message p {
  margin: 0;
  color: inherit;
  font-weight: 800;
  line-height: 1.4;
}

.chat-admin-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: 18px;
}

.chat-response-panel {
  align-self: start;
}

.chat-thread-list {
  gap: 10px;
}

.chat-thread-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 10px;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 12px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.chat-thread-card.is-active {
  border-color: var(--pepper);
  box-shadow: 0 0 0 3px rgba(169, 0, 31, 0.08);
}

.chat-thread-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-thread-card i {
  width: 10px;
  height: 10px;
  background: var(--pepper);
  border-radius: 50%;
}

.customer-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.delivery-admin-card {
  grid-template-columns: 58px minmax(0, 1fr) auto;
}

.rider-body {
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(169, 0, 31, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(169, 0, 31, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
}

.rider-auth-page,
.rider-dashboard {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.rider-auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 0;
}

.rider-auth-card {
  width: min(560px, 100%);
  display: grid;
  gap: 20px;
  padding: clamp(20px, 4vw, 34px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.rider-auth-brand {
  align-items: center;
}

.rider-auth-card h1,
.rider-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  line-height: 0.95;
}

.rider-auth-link {
  justify-self: start;
}

.rider-dashboard {
  display: grid;
  gap: 22px;
  padding: 28px 0 48px;
}

.rider-topbar,
.rider-hero,
.rider-job-board,
.rider-status-card,
.rider-metrics article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(41, 23, 8, 0.08);
}

.rider-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
}

.rider-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: end;
  padding: clamp(22px, 5vw, 46px);
}

.rider-status-card,
.rider-metrics article {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.rider-status-card span,
.rider-metrics span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rider-status-card strong,
.rider-metrics strong {
  font-size: 1.55rem;
  text-transform: capitalize;
}

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

.rider-job-board {
  overflow: hidden;
}

.rider-job-list {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.rider-job-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  background: #fff;
}

.rider-job-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.reset-password-result {
  color: var(--pepper) !important;
  font-weight: 900;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  width: min(380px, calc(100vw - 36px));
  padding: 16px;
  color: #fff;
  background: var(--smoke);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(21, 18, 15, 0.28);
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
  transition: 220ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

@keyframes orderFlash {
  0% {
    background: #fff0d2;
  }
  100% {
    background: #fff;
  }
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .mobile-cart-button {
    position: relative;
    display: inline-grid;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(37, 32, 27, 0.12);
    border-radius: 8px;
    color: var(--smoke);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 28px rgba(41, 23, 8, 0.12);
  }

  .mobile-cart-button svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
  }

  .mobile-cart-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    padding: 0 6px;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    background: var(--pepper);
    font-size: 0.72rem;
    font-weight: 950;
    line-height: 1;
  }

  .cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 39;
    display: block;
    background: rgba(21, 18, 15, 0.52);
  }

  .cart-panel.is-mobile-drawer {
    position: fixed;
    inset: auto 12px 12px;
    z-index: 40;
    max-height: min(76vh, 680px);
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 -18px 58px rgba(21, 18, 15, 0.28);
  }

  .cart-close-button {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--smoke);
    background: #fff;
    font-size: 1rem;
    font-weight: 950;
  }

  .hero-grid,
  .shop-layout,
  .product-grid,
  .control-layout,
  .analytics-layout,
  .product-admin-layout,
  .settings-layout,
  .rider-admin-layout,
  .rider-hero,
  .customer-hero,
  .checkout-layout,
  .admin-shell,
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .checkout-summary-panel {
    position: static;
  }

  .admin-sidebar {
    position: static;
    min-height: auto;
    gap: 18px;
    padding: 18px;
  }

  .brand {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .brand-wordmark {
    font-size: clamp(1.2rem, 5.5vw, 1.8rem);
  }

  .brand-mark {
    width: 92px;
    height: 92px;
  }

  .admin-sidebar .brand-mark {
    width: 78px;
    height: 78px;
  }

  .admin-sidebar .brand-wordmark {
    font-size: 1.2rem;
  }

  .admin-nav {
    grid-template-columns: 1fr;
  }

  .admin-metrics,
  .analytics-grid,
  .rider-metrics,
  .account-stats,
  .metric-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .analytics-filter {
    align-items: stretch;
    flex-direction: column;
  }

  .analytics-range-controls,
  .analytics-custom-range {
    justify-content: flex-start;
  }

  .analytics-card-hero {
    grid-column: span 2;
  }

  .product-card {
    grid-template-columns: 150px 1fr;
  }

  .featured-product {
    grid-template-columns: 1fr;
  }

  .product-editor {
    position: static;
  }

  #businessForm {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: auto;
    padding-bottom: 32px;
  }

  .brand {
    gap: 14px;
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .brand-wordmark {
    font-size: clamp(0.95rem, 4.4vw, 1.35rem);
  }

  .brand-mark {
    width: 72px;
    height: 72px;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 5rem);
  }

  h2 {
    font-size: clamp(2rem, 12vw, 3.4rem);
  }

  .platform-page {
    padding: 10px;
  }

  .platform-flyer {
    min-height: calc(100vh - 20px);
    padding: 14px;
    gap: 14px;
  }

  .platform-flyer-brand {
    gap: 12px;
  }

  .platform-flyer-image {
    min-height: 260px;
    padding: 58px 12px 128px;
  }

  .platform-flyer-image strong {
    font-size: clamp(3.2rem, 17vw, 5.2rem);
  }

  .platform-launch-date {
    left: 12px;
    right: auto;
    top: 12px;
    padding: 8px 10px;
    font-size: 0.86rem;
  }

  .platform-offer {
    left: 12px;
    bottom: 12px;
  }

  .platform-flyer-steps {
    grid-template-columns: 1fr;
    background: rgba(255, 255, 255, 0.08);
  }

  .platform-flyer-steps article {
    min-height: auto;
    grid-template-columns: auto auto minmax(0, 1fr);
    grid-template-rows: 1fr;
    justify-items: start;
    align-items: center;
    gap: 12px;
    text-align: left;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .platform-flyer-steps article:last-child {
    border-bottom: 0;
  }

  .platform-flyer-steps article::after {
    top: auto;
    right: auto;
    bottom: -8px;
    left: 38px;
    transform: rotate(135deg);
  }

  .step-icon {
    width: 46px;
    height: 46px;
  }

  .step-icon svg {
    width: 23px;
    height: 23px;
  }

  .platform-flyer-steps strong {
    margin-top: 0;
  }

  .hero-grid {
    margin-top: 28px;
  }

  .product-stage {
    display: grid;
    gap: 12px;
    min-height: auto;
  }

  .photo-frame {
    width: 100%;
    aspect-ratio: 1.08;
    transform: none;
  }

  .floating-card {
    position: static;
    width: 100%;
  }

  .signature-card {
    width: 100%;
    padding: 16px;
  }

  .hero-actions,
  .product-meta,
  .panel-toolbar,
  .order-card,
  .admin-product-card,
  .customer-card,
  .rider-job-card,
  .account-order-card,
  .ops-list article {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action,
  .secondary-action,
  .order-button,
  .order-actions button {
    width: 100%;
  }

  .product-card,
  .shop-layout,
  .account-stats,
  .rider-metrics,
  .form-grid,
  .hero-preview-grid,
  .admin-product-card,
  .customer-card,
  .rider-job-card,
  .waitlist-card,
  .editor-title {
    grid-template-columns: 1fr;
  }

  .cart-panel,
  .product-editor {
    position: static;
  }

  .footer-inner,
  .footer-bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .metric-strip {
    display: none;
  }

  .footer-mobile-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    padding: 12px 12px 0;
  }

  .footer-mobile-highlights article {
    min-width: 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
  }

  .footer-mobile-highlights span {
    display: block;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.76rem;
  }

  .footer-mobile-highlights strong {
    display: block;
    margin-top: 5px;
    color: #fff;
    font-size: 0.98rem;
    line-height: 1.1;
  }

  .chat-widget {
    right: 14px;
    bottom: 14px;
  }

  .chat-bubble {
    min-width: 76px;
    min-height: 48px;
    padding: 0 16px;
  }

  .chat-panel {
    right: 0;
    bottom: 60px;
    max-height: calc(100vh - 92px);
    overflow: auto;
  }

  .chat-admin-layout {
    grid-template-columns: 1fr;
  }

  .metric-strip article:first-child {
    border-radius: 8px 8px 0 0;
  }

  .metric-strip article:last-child {
    border-radius: 0 0 8px 8px;
  }

  .product-card img {
    height: 220px;
  }

  .admin-sidebar {
    gap: 14px;
    padding: 14px;
  }

  .admin-nav {
    grid-template-columns: 1fr;
  }

  .admin-nav button {
    text-align: center;
  }

  .analytics-range-controls button,
  .analytics-custom-range input {
    flex: 1 1 130px;
  }

  .analytics-custom-range label {
    flex: 1 1 130px;
  }

  .admin-header {
    align-items: stretch;
    flex-direction: column;
  }

  .sound-toggle,
  .admin-product-actions {
    width: 100%;
  }

  .admin-product-actions {
    justify-content: stretch;
  }

  .admin-product-actions button {
    flex: 1 1 140px;
  }

  .customer-spend {
    text-align: left;
  }

  .security-badge {
    align-self: flex-start;
  }

  .confirmation-details div,
  .checkout-summary-panel .cart-total,
  .cart-total {
    align-items: flex-start;
    flex-direction: column;
  }

  .metric-strip,
  .admin-metrics,
  .analytics-grid {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .analytics-card-hero {
    grid-column: span 1;
  }

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

  .customer-hero {
    grid-template-columns: 1fr;
  }
}
