:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --ink: #2B2E34;
  --muted: #4A4F57;
  --line: #d6dbe1;
  --accent: #F97316;
  --accent-strong: #FB923C;
  --ok: #1ba975;
  --warn: #c8891e;
  --bad: #C2410C;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.45;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% -20%, rgba(194, 65, 12, 0.5) 0%, transparent 38%),
    radial-gradient(circle at 90% 0%, rgba(251, 146, 60, 0.5) 0%, transparent 44%),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    linear-gradient(to top, #000, #000) 25% 0 / 20% 100% no-repeat,
    linear-gradient(to top, #000, #000) 75% 0 / 20% 100% no-repeat;
  opacity: 0.34;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(
    to top,
    transparent 0%,
    transparent 36%,
    rgba(184, 184, 184, 0.42) 50%,
    transparent 64%,
    transparent 100%
  );
  background-size: 100% 240%;
  -webkit-mask:
    linear-gradient(#000 0 0) 25% 0 / 20% 100% no-repeat,
    linear-gradient(#000 0 0) 75% 0 / 20% 100% no-repeat;
  mask:
    linear-gradient(#000 0 0) 25% 0 / 20% 100% no-repeat,
    linear-gradient(#000 0 0) 75% 0 / 20% 100% no-repeat;
  animation: bgSilverUp 4.6s linear infinite;
}

.topbar {
  --topbar-height: 72px;
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  gap: 0.18rem;
  padding: 0.2rem 0.5rem;
  min-height: var(--topbar-height);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(1.6px);
  -webkit-backdrop-filter: blur(1.6px);
}

.global-maintenance-banner {
  margin-top: 0.2rem;
  border: 1px solid rgba(185, 28, 28, 0.5);
  border-radius: 8px;
  padding: 0.24rem 0.55rem;
  background: rgba(254, 226, 226, 0.95);
  color: #991b1b;
  font-weight: 800;
  text-align: center;
}

.brand-logo-wrap {
  margin: 0;
  line-height: 1;
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-start;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  text-decoration: none;
}

.brand-logo-img {
  display: block;
  height: calc(var(--topbar-height) + 0.7rem);
  width: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

.title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: nowrap;
}

.top-search-inline {
  flex: 1;
  display: flex;
  justify-content: center;
}

.brand-home-link {
  cursor: pointer;
  margin: 0;
  font-size: 0.92rem;
}

.controls {
  display: flex;
  gap: 0.35rem;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
}

.links {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.role-sidebar {
  position: fixed;
  top: calc(var(--topbar-offset, var(--topbar-height, 72px)) + 10px);
  left: 0;
  width: 270px;
  height: calc(100vh - (var(--topbar-offset, var(--topbar-height, 72px)) + 10px));
  overflow: auto;
  border-right: 1px solid var(--line);
  background: #fff;
  padding: 0.95rem;
  z-index: 4;
}

.role-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.role-sidebar-ticket-stream {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}

.role-sidebar-ticket-list {
  max-height: calc(100vh - 220px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.7rem 0.55rem 1.15rem;
  background: #fbfdff;
}

.role-sidebar-ticket-list li {
  margin-bottom: 0.55rem;
}

.role-sidebar-ticket-list li:last-child {
  margin-bottom: 0;
}

.role-sidebar-section {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.role-sidebar-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.role-sidebar-nav a {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  background: #fff;
}

.role-sidebar-nav a.active {
  border-color: var(--accent);
  background: #fff0e2;
}

.sidebar-logout-btn {
  margin-top: 0.7rem;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
  background: #fff;
  color: var(--ink);
}

body.with-sidebar main {
  position: relative;
  z-index: 1;
  margin-left: 280px;
  max-width: calc(1240px - 280px);
}

.top-search-row {
  display: flex;
  justify-content: center;
}

.top-search-input {
  width: min(320px, 42vw);
  border-radius: 999px;
  padding: 0.2rem 0.58rem;
}

body.home-page .topbar,
body.home-page .card,
body.home-page .store-card,
body.home-page .detail-shell,
body.home-page .auth-box,
body.home-page .links a,
body.home-page .top-search-input,
body.home-page .links .nav-logout-btn {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(1.6px);
  -webkit-backdrop-filter: blur(1.6px);
}

.links a {
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 0.2rem 0.52rem;
  background: rgba(43, 46, 52, 0.36);
}

.links .nav-logout-btn {
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 0.2rem 0.52rem;
  background: rgba(43, 46, 52, 0.36);
  color: #fff;
}

.top-cart-link {
  color: #f8fbff;
  border: 1px solid rgba(120, 132, 146, 0.75);
  border-radius: 999px;
  padding: 0.2rem 0.56rem;
  background: linear-gradient(180deg, #8592a0, #6f7c8a);
  font-weight: 700;
}

.top-order-status-link {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 0.2rem 0.56rem;
  background: linear-gradient(180deg, #1f8f6a, #177e5e);
  font-weight: 700;
  max-width: min(52vw, 420px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.top-order-status-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
}

.top-order-status-icon {
  display: inline-grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  background: #fff;
}

.top-order-status-icon.done {
  border-color: rgba(22, 163, 74, 0.6);
  background: rgba(22, 163, 74, 0.12);
}

.top-order-status-icon.current {
  border-color: rgba(249, 115, 22, 0.7);
  background: rgba(249, 115, 22, 0.16);
}

.top-order-status-icon.todo {
  opacity: 0.7;
}

.top-order-status-meta {
  font-size: 0.78rem;
  font-weight: 700;
}

.top-home-btn {
  color: #f8fbff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 0.2rem 0.56rem;
  background: rgba(43, 46, 52, 0.36);
  font-weight: 700;
}

.top-admin-alerts-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 0.2rem 0.56rem;
  background: linear-gradient(180deg, #6b7280, #4b5563);
  font-weight: 700;
}

.top-admin-alerts-btn.has-alert {
  border-color: rgba(255, 223, 183, 0.9);
  background: linear-gradient(180deg, #f59e0b, #d97706);
}

.top-courier-jobs-link {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 0.2rem 0.56rem;
  background: linear-gradient(180deg, #8b96a5, #6b7685);
  font-weight: 700;
  opacity: 1;
  cursor: default;
}

.top-courier-jobs-link.is-available {
  border-color: rgba(255, 255, 255, 0.65);
  background: linear-gradient(180deg, #20b374, #18895a);
}

.top-courier-jobs-link.is-empty {
  border-color: rgba(218, 226, 236, 0.9);
  background: linear-gradient(180deg, #9aa4b2, #7a8593);
}

.top-cart-link.has-items {
  border-color: rgba(52, 112, 230, 0.9);
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  color: #fff;
}

body.courier-role .title-row .controls {
  margin-inline: 0;
  margin-left: auto;
  justify-content: flex-end;
}

body.admin-role .title-row .controls,
body.support-role .title-row .controls {
  margin-inline: 0;
  margin-left: auto;
  justify-content: flex-end;
}

body.checkout-page .title-row .controls {
  margin-inline: 0;
  margin-left: auto;
  justify-content: flex-end;
}

.links a.active {
  border-color: var(--accent);
  background: #fff0e2;
}

.auth-box {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.1rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  position: relative;
}

.ghost-btn {
  border: none;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.account-icon-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  display: grid;
  place-items: center;
  padding: 0;
}

.account-icon-btn span {
  width: 15px;
  height: 15px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  position: relative;
  display: block;
}

.account-icon-btn span::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -8px;
  width: 16px;
  height: 7px;
  border: 2px solid var(--ink);
  border-top: none;
  border-radius: 0 0 999px 999px;
}

.auth-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  z-index: 20;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(118, 64, 28, 0.18);
  padding: 0.6rem;
  display: grid;
  gap: 0.35rem;
}

.auth-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(20, 16, 24, 0.38);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.auth-modal-card {
  width: min(430px, 96vw);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(43, 35, 50, 0.22);
  padding: 1rem;
  display: grid;
  gap: 0.5rem;
}

.auth-modal-actions {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.2rem;
}

.auth-modal-links {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
}

.auth-modal-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.auth-dropdown a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

main {
  flex: 1;
  max-width: 1240px;
  margin: 1.4rem auto;
  padding: 0 1.25rem 2.4rem;
}

body.admin-role main,
body.support-role main {
  max-width: 1480px;
}

.global-footer {
  margin-top: auto;
}

.global-links-panel {
  max-width: 1240px;
  margin: 0 auto;
  border: 1px solid #b6bec8;
  border-radius: 12px;
  background: linear-gradient(180deg, #d6dbe1, #c4ccd6);
  padding: 0.95rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.global-links-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.global-links-brand h4 {
  margin: 0;
}

.global-links-logo {
  width: 140px;
  height: auto;
  display: block;
}

.global-links-nav {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.global-links-nav a {
  text-decoration: none;
  color: #1f2a36;
  border: 1px solid rgba(41, 54, 68, 0.28);
  border-radius: 999px;
  padding: 0.22rem 0.58rem;
  background: rgba(255, 255, 255, 0.62);
  font-weight: 600;
}

.global-footer-byline {
  margin-top: 0.55rem;
  text-align: center;
  color: #2f3a46;
  font-weight: 700;
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  padding: 1.1rem;
  box-shadow: 0 8px 20px rgba(186, 120, 76, 0.12);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  animation: fadeUp 500ms ease;
}

.hero-card {
  min-height: 170px;
  background: linear-gradient(140deg, #fff, #fff0e2);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-size: 0.78rem;
}

.store-section {
  margin-top: 1.15rem;
}

.store-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.cuisine-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.cuisine-filters button {
  border-radius: 999px;
}

.cuisine-filters button.active {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

.zone-select-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.store-grid {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.store-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  background: #fff;
  transition: transform 180ms ease, border-color 180ms ease;
}

.store-card.selected-store {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

.store-open-btn {
  all: unset;
  display: block;
  width: 100%;
  cursor: pointer;
}

.store-detail,
.cart-panel {
  margin-top: 1rem;
}

.detail-shell {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.9rem;
}

.menu-category {
  margin-top: 0.8rem;
}

.menu-item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.7rem;
}

.menu-item-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffaf5;
  padding: 0.7rem;
  display: grid;
  gap: 0.45rem;
}

.menu-category.is-closed,
.menu-item-card.is-closed {
  opacity: 0.62;
}

.menu-item-card.is-closed {
  background: #f2f4f6;
}

.menu-item-card.is-closed .menu-item-head img {
  filter: grayscale(1);
}

.menu-item-head {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 0.6rem;
  align-items: center;
}

.menu-item-head img {
  width: 95px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.menu-option-group {
  display: grid;
  gap: 0.25rem;
}

.cart-totals {
  border-top: 1px solid var(--line);
  margin-top: 0.6rem;
  padding-top: 0.5rem;
  display: grid;
  gap: 0.25rem;
}

.checkout-option-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.45rem;
  flex-wrap: wrap;
}

.checkout-option-row label {
  margin: 0;
}

#checkoutTipInput {
  width: 120px;
}

.coupon-empty-indicator {
  margin-top: 0.2rem;
  width: 38px;
  height: 38px;
  border: 1px dashed var(--line);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff;
}

.coupon-empty-icon {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1;
}

.store-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-strong);
}

.store-card.closed-store {
  opacity: 0.75;
}

.store-card.closed-store img {
  filter: grayscale(1);
}

.store-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1rem;
  align-items: center;
}

.store-row img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
}

.restaurant-nav-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  width: 100%;
  margin-left: auto;
  justify-content: flex-end;
}

.restaurant-page .title-row .controls {
  margin-inline: 0;
  margin-left: auto;
  justify-content: flex-end;
}

.courier-order-row {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.55rem;
  margin-bottom: 0.45rem;
  background: #fff;
}

.courier-order-row.is-selected {
  border-color: rgba(30, 121, 98, 0.45);
  background: #effaf6;
}

.courier-map-frame {
  width: 100%;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f5f7fb;
}

.support-layout-grid {
  display: grid;
  grid-template-columns: 320px 1fr 320px;
  gap: 0.7rem;
  align-items: start;
}

.support-left-col,
.support-center-col,
.support-right-col {
  min-height: 220px;
}

@media (max-width: 1100px) {
  .support-layout-grid {
    grid-template-columns: 1fr;
  }
}

.meta-line {
  color: var(--muted);
  font-size: 0.9rem;
}

.badge {
  display: inline-block;
  margin-top: 0.45rem;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--line);
}

.badge.open {
  border-color: var(--ok);
  color: var(--ok);
}

.badge.closed {
  border-color: var(--bad);
  color: var(--bad);
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

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

button {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: linear-gradient(180deg, #fff3e8, #ffe7d1);
  padding: 0.4rem 0.65rem;
  cursor: pointer;
}

button:hover {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

textarea {
  width: 100%;
  min-height: 90px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem;
  color: var(--ink);
  background: #fff;
}

select,
input {
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0.35rem 0.45rem;
}

.feedback {
  margin-top: 0.8rem;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  background: #fff8f0;
  color: var(--ink);
}

.feedback.ok {
  border-left-color: var(--ok);
}

.feedback.warn {
  border-left-color: var(--warn);
}

.feedback.bad {
  border-left-color: var(--bad);
}

.module-shell-card {
  display: grid;
  gap: 0.8rem;
}

.module-top-content {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffaf5;
  padding: 0.55rem;
}

.inner-section {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffaf5;
  padding: 0.35rem 0.55rem;
}

.inner-section > summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  padding: 0.2rem 0;
}

.inner-section > summary::-webkit-details-marker {
  display: none;
}

.inner-section > summary::after {
  content: "+";
  float: right;
  color: var(--accent);
}

.inner-section[open] > summary::after {
  content: "-";
}

.inner-section-body {
  padding-top: 0.45rem;
}

.inline-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(43, 35, 50, 0.45);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.inline-modal-card {
  width: min(720px, 96vw);
  max-height: 88vh;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 1rem;
  display: grid;
  gap: 0.6rem;
}

.inline-add-row {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: 1fr 160px auto;
  align-items: center;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  background: #fffaf5;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.tag-chip button {
  border: none;
  background: transparent;
  padding: 0;
  line-height: 1;
}

.upload-preview {
  width: 170px;
  height: 120px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(43, 35, 50, 0.45);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.legal-modal-card {
  width: min(760px, 96vw);
  max-height: 90vh;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 30px rgba(43, 35, 50, 0.25);
  padding: 1rem;
}

.top-order-modal-card {
  width: min(980px, 96vw);
}

.top-order-courier-map {
  width: 100%;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #f6f8fb;
}

.top-order-progress-list {
  display: grid;
  gap: 0.35rem;
}

.top-order-progress-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.38rem 0.5rem;
}

.top-order-progress-list li.done {
  border-color: rgba(27, 169, 117, 0.55);
  background: rgba(27, 169, 117, 0.09);
}

.top-order-progress-list li.current {
  border-color: rgba(249, 115, 22, 0.65);
  background: rgba(249, 115, 22, 0.12);
}

.top-order-progress-list li.todo {
  opacity: 0.8;
}

.top-order-progress-list .step-no {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 700;
}

.legal-scroll {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf5;
  padding: 0.65rem;
  max-height: 180px;
  overflow: auto;
  white-space: pre-wrap;
  margin-bottom: 0.6rem;
}

.qr-image {
  width: 220px;
  height: 220px;
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 0.45rem 0 0.6rem;
}

.list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  max-height: 220px;
  overflow: auto;
}

.complaint-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  border: 1px solid rgba(53, 108, 222, 0.9);
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 999;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

.complaint-fab svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.complaint-fab.active {
  background: linear-gradient(180deg, #1d4ed8, #1e40af);
}

.complaint-panel {
  position: fixed;
  right: 1rem;
  bottom: 4.9rem;
  width: min(460px, calc(100vw - 2rem));
  max-height: min(74vh, 780px);
  overflow: auto;
  z-index: 998;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(43, 35, 50, 0.24);
  padding: 0.9rem;
}

.complaint-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

@media (max-width: 760px) {
  .topbar {
    --topbar-height: 56px;
  }

  .title-row,
  .controls {
    flex-wrap: wrap;
  }

  .top-order-status-link {
    max-width: min(92vw, 560px);
  }

  .top-search-inline {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .top-search-input {
    width: min(560px, 92vw);
  }

  .role-sidebar {
    position: static;
    width: auto;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
    margin: 0.35rem 0.6rem 0;
  }

  body.with-sidebar main {
    margin-left: auto;
    max-width: 1240px;
  }

  .title-row {
    flex-direction: column;
    align-items: center;
  }

  .brand-logo-img {
    height: calc(var(--topbar-height) + 0.5rem);
  }

  .store-row {
    grid-template-columns: 1fr;
  }

  .global-links-panel {
    border-radius: 10px;
    margin: 0 0.65rem;
    padding: 0.8rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .global-links-logo {
    width: 118px;
  }

  .global-links-nav {
    justify-content: flex-start;
  }

  .complaint-panel {
    right: 0.6rem;
    left: 0.6rem;
    width: auto;
    bottom: 4.6rem;
  }

  .complaint-fab {
    right: 0.7rem;
    bottom: 0.7rem;
  }
}

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

@keyframes bgSilverUp {
  0% {
    background-position: 0 125%;
  }
  100% {
    background-position: 0 -30%;
  }
}
