[hidden] {
  display: none !important;
}

:root {
  --green-50: #edf8f5;
  --green-100: #c9f2e7;
  --green-300: #72d9c3;
  --green-500: #13c9a3;
  --green-600: #07947c;
  --green-700: #066c5e;
  --green-900: #071114;
  --ink: #10171b;
  --muted: #627073;
  --line: #d8e3df;
  --panel: #ffffff;
  --panel-soft: #f5f8f6;
  --danger: #d92d20;
  --warning: #f59e0b;
  --blue: #1f6feb;
  --accent-warm: #e9943a;
  --shadow: 0 16px 38px rgba(8, 18, 22, 0.18);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #edf2f1;

  /* BoxMarket Design System v1: shared client tokens */
  --ds-primary: #55b982;
  --ds-primary-dark: #3d9b6d;
  --ds-ink: #172325;
  --ds-muted: #627073;
  --ds-surface: #ffffff;
  --ds-soft: #f4f8f6;
  --ds-line: #e2ebe6;
  --ds-danger: #d94a4a;
  --ds-danger-soft: #fff0f0;
  --ds-success-soft: #e6f5eb;
  --ds-focus-ring: rgba(85, 185, 130, .2);
  --ds-space-1: 4px;
  --ds-space-2: 8px;
  --ds-space-3: 12px;
  --ds-space-4: 16px;
  --ds-space-5: 24px;
  --ds-space-6: 32px;
  --ds-radius-sm: 10px;
  --ds-radius-md: 16px;
  --ds-radius-lg: 24px;
  --ds-radius-pill: 999px;
  --ds-shadow-card: 0 8px 24px rgba(27, 67, 54, .08);
  --ds-shadow-float: 0 14px 32px rgba(27, 67, 54, .16);
  --ds-touch-target: 48px;

  /* Admin form composition: one spacing and control scale. */
  --admin-space-micro: 4px;
  --admin-space-small: 8px;
  --admin-space-normal: 12px;
  --admin-space-field: 16px;
  --admin-space-section: 24px;
  --admin-space-block: 32px;
  --admin-control-height: 46px;
  --admin-control-radius: 12px;
  --admin-control-padding-x: 14px;
}


.client-main.pattern-bg {
  color: var(--ds-ink);
  background: var(--ds-soft);
}

.client-main.pattern-bg::before { display: none; }

.ds-page { max-width: 760px; margin: 0 auto; padding: 20px 16px 116px; }
.ds-home { max-width: 760px; margin: 0 auto; padding: 24px 16px 116px; }
.ds-home-hero { padding: 28px 24px; border-radius: var(--ds-radius-lg); color: var(--ds-ink); background: linear-gradient(145deg, #eaf8ef, #fff); box-shadow: var(--ds-shadow-card); }
.ds-home-hero h1 { max-width: 430px; margin: 10px 0; font-size: clamp(30px, 8vw, 48px); line-height: 1.02; letter-spacing: -.04em; }
.ds-home-hero p { max-width: 420px; margin: 0 0 24px; color: var(--ds-muted); font-size: 16px; line-height: 1.5; }
.ds-home-actions { display: grid; gap: 10px; max-width: 340px; }
.ds-local-cta { min-width: 190px; }
.ds-local-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--ds-primary-dark); border: 1px solid rgba(61, 155, 109, .2); background: #fff; }
.ds-local-qr { width: 22px; height: 22px; display: grid; place-items: center; border: 2px solid currentColor; border-radius: 4px; font-size: 15px; font-weight: 950; line-height: 1; }
.ds-welcome { display: grid; gap: 5px; margin: 24px 4px 0; color: var(--ds-muted); }
.ds-welcome strong { color: var(--ds-ink); font-size: 20px; }
.ds-eyebrow { color: var(--ds-primary-dark); font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.ds-button { min-height: 44px; padding: 0 18px; border-radius: var(--ds-radius-pill); color: var(--ds-ink); background: var(--ds-soft); font-weight: 800; }
.ds-button.primary { color: #fff; background: var(--ds-primary); box-shadow: 0 6px 14px rgba(85, 185, 130, .25); }
.ds-button:disabled { cursor: not-allowed; opacity: .5; }
.ds-field { display: grid; gap: 6px; }
.ds-field span { color: var(--ds-muted); font-size: 12px; font-weight: 750; }
.ds-input { width: 100%; min-height: 48px; padding: 0 16px; border: 1px solid var(--ds-line); border-radius: var(--ds-radius-pill); outline: 0; color: var(--ds-ink); background: var(--ds-surface); box-shadow: var(--ds-shadow-card); }
.ds-input:focus { border-color: var(--ds-primary); box-shadow: 0 0 0 3px rgba(85, 185, 130, .16); }
.ds-catalog { display: grid; gap: 18px; }
.ds-catalog-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.ds-catalog-head h2 { margin: 6px 0 0; font-size: 28px; letter-spacing: -.03em; }
.ds-count { color: var(--ds-muted); font-size: 12px; font-weight: 750; }
.ds-category-row { display: flex; gap: 10px; overflow-x: auto; padding: 2px 1px 6px; scrollbar-width: none; }
.ds-category-row::-webkit-scrollbar { display: none; }
.ds-category-card { min-width: 74px; display: grid; gap: 6px; justify-items: center; color: var(--ds-muted); background: transparent; }
.ds-category-card span { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; color: var(--ds-primary-dark); background: #e6f5eb; font-size: 12px; font-weight: 850; }
.ds-category-card strong { max-width: 82px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.ds-category-card.active span { color: #fff; background: var(--ds-primary); }
.ds-category-card.active strong { color: var(--ds-primary-dark); }
.ds-product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ds-product-card { min-width: 0; display: grid; gap: 10px; padding: 12px; border: 1px solid var(--ds-line); border-radius: var(--ds-radius-md); background: var(--ds-surface); box-shadow: var(--ds-shadow-card); }
.ds-product-image { aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border-radius: var(--ds-radius-sm); color: var(--ds-primary-dark); background: #edf7f0; font-size: 24px; font-weight: 900; }
.ds-product-image img { width: 100%; height: 100%; object-fit: contain; }
.ds-product-info h3 { margin: 3px 0; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.ds-product-info p { margin: 0; color: var(--ds-muted); font-size: 12px; }
.ds-product-info em { display: inline-block; margin-top: 5px; color: var(--ds-primary-dark); font-size: 10px; font-style: normal; font-weight: 800; }
.ds-product-action { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ds-product-action > strong { font-size: 16px; }
.ds-add-button { min-height: 34px; padding: 0 10px; border-radius: var(--ds-radius-pill); color: #fff; background: var(--ds-primary); font-size: 11px; font-weight: 850; }
.ds-add-button:disabled { color: var(--ds-muted); background: #e8eeeb; }
.ds-quantity { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 3px 6px; border-radius: var(--ds-radius-pill); background: #edf7f0; }
.ds-quantity button { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: var(--ds-primary-dark); background: #fff; font-size: 17px; }
.ds-quantity strong { min-width: 20px; color: var(--ds-ink); text-align: center; font-size: 14px; font-weight: 900; line-height: 25px; }
.ds-product-card.is-unavailable { opacity: .72; }
.ds-catalog-limit { margin: 12px 4px 0; color: var(--ds-muted); font-size: 12px; line-height: 1.4; text-align: center; }
.delivery-results-meta { display: flex; justify-content: flex-end; margin: -4px 4px 0; color: var(--ds-muted); font-size: 12px; font-weight: 750; }
.ds-cart-bar { position: fixed; left: 50%; bottom: calc(78px + env(safe-area-inset-bottom)); z-index: 40; width: min(600px, calc(100% - 24px)); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--ds-line); border-radius: var(--ds-radius-md); transform: translateX(-50%); background: #fff; box-shadow: var(--ds-shadow-float); }
.ds-cart-bar div { display: grid; gap: 2px; }
.ds-cart-bar span { color: var(--ds-primary-dark); font-size: 14px; font-weight: 850; }
.ds-state { display: grid; justify-items: center; gap: 8px; padding: 42px 18px; border: 1px dashed var(--ds-line); border-radius: var(--ds-radius-md); text-align: center; background: #fff; }
.ds-state-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--ds-primary-dark); background: #e6f5eb; font-size: 23px; font-weight: 900; }
.ds-state h2, .ds-state p { margin: 0; }
.ds-state p { color: var(--ds-muted); font-size: 14px; }
.ds-bottom-nav { position: fixed; left: 50%; bottom: max(8px, env(safe-area-inset-bottom)); z-index: 42; width: min(456px, calc(100% - 18px)); min-height: 68px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; padding: 7px; border: 1px solid var(--ds-line); border-radius: var(--ds-radius-lg); transform: translateX(-50%); background: rgba(255, 255, 255, .96); box-shadow: var(--ds-shadow-float); backdrop-filter: blur(18px); }
.ds-bottom-nav button { min-width: 0; min-height: 52px; display: grid; place-items: center; gap: 3px; color: var(--ds-muted); background: transparent; font-size: 10px; font-weight: 800; }
.ds-bottom-nav button.active { color: var(--ds-primary-dark); }
.ds-bottom-nav button span { min-height: 23px; display: grid; place-items: center; font-size: 18px; }
.ds-bottom-nav svg { width: 22px; height: 22px; }
.ds-bottom-nav strong { font-size: 9px; }
.ds-bottom-nav .ds-bottom-scan { width: 72px; height: 72px; min-height: 72px; justify-self: center; margin-top: -32px; padding: 9px; border: 5px solid var(--ds-soft); border-radius: 20px; color: #fff; background: var(--ds-ink); box-shadow: var(--ds-shadow-float); }
.ds-bottom-nav .ds-bottom-scan img { width: 100%; height: 100%; display: block; border-radius: 10px; background: #fff; object-fit: contain; }
@media (min-width: 640px) { .ds-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
}

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

button {
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
}

.app-shell {
  min-height: 100vh;
}

.auth-page,
.client-shell,
.owner-shell {
  min-height: 100vh;
}

.pattern-bg {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, rgba(19, 201, 163, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(19, 201, 163, 0.16), rgba(7, 17, 20, 0.34)),
    var(--green-900);
}

.pattern-bg::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image: url("./assets/boxmarket-grocery-pattern.svg");
  background-position: center top;
  background-size: 260px 260px;
  opacity: 0.58;
  pointer-events: none;
}

.screen-content {
  position: relative;
  z-index: 1;
}

.auth-page {
  display: grid;
  place-items: center;
  padding: 28px;
}

.first-run-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 22% 18%, rgba(0, 216, 151, 0.08), transparent 30%),
    linear-gradient(180deg, #ffffff, #f4f8f7);
}

.onboarding-skip {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: 16px;
  z-index: 2;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(16, 24, 25, 0.08);
  border-radius: 999px;
  color: #526263;
  background: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 850;
  backdrop-filter: blur(12px);
}

.onboarding-card {
  width: min(100%, 360px);
  max-width: calc(100vw - 36px);
  min-height: calc(100svh - 42px);
  display: grid;
  grid-template-rows: auto minmax(250px, 1fr) auto auto auto;
  align-items: center;
  justify-items: center;
  gap: 18px;
  padding: 34px 8px 106px;
  text-align: center;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.onboarding-logo {
  width: 152px;
  height: 76px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.onboarding-illustration {
  width: min(330px, 100%);
  display: grid;
  place-items: center;
  align-self: end;
  touch-action: manipulation;
}

.onboarding-illustration svg {
  width: min(330px, 100%);
  height: auto;
  display: block;
  filter: drop-shadow(0 16px 24px rgba(16, 24, 40, 0.08));
}

.onboarding-copy {
  align-self: start;
}

.onboarding-copy h1 {
  margin: 0;
  color: #101819;
  font-size: 34px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
}

.onboarding-copy p {
  max-width: 330px;
  margin: 12px auto 0;
  color: #202b2d;
  font-size: 18px;
  line-height: 1.32;
  font-weight: 650;
}

.onboarding-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 18px;
}

.onboarding-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c7cdcb;
  transition: width 160ms ease, background 160ms ease;
}

.onboarding-dots span.active {
  width: 24px;
  border-radius: 999px;
  background: var(--green-500);
}

.onboarding-controls {
  position: fixed;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 3;
  width: min(300px, calc(100vw - 48px));
  min-height: 80px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  justify-content: center;
  gap: 16px;
  transform: translateX(-50%);
  touch-action: manipulation;
}

.onboarding-arrow {
  width: 72px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 2px solid #101819;
  border-radius: 18px;
  color: white;
  background: #5d6567;
  box-shadow: 0 8px 0 rgba(16, 24, 25, 0.14);
  font-size: 46px;
  font-weight: 950;
  line-height: 1;
  touch-action: manipulation;
}

.onboarding-arrow span {
  display: block;
  transform: translateY(-2px);
}

.onboarding-arrow.next {
  justify-self: end;
  background: linear-gradient(135deg, var(--green-500), #64f0ca);
  color: #071012;
}

.onboarding-arrow:disabled {
  opacity: 0.26;
  cursor: default;
}

.onboarding-finish {
  min-width: 0;
  width: min(176px, 100%);
  min-height: 58px;
  justify-self: end;
  margin-left: 0;
  padding: 0 24px;
  border-radius: var(--radius);
  color: #071012;
  background: linear-gradient(135deg, var(--green-500), #64f0ca);
  box-shadow: 0 14px 28px rgba(0, 181, 129, 0.24);
  font-size: 18px;
  font-weight: 900;
  touch-action: manipulation;
}

.how-to-buy-page {
  position: relative;
  min-height: calc(100svh - 92px);
  display: grid;
  place-items: center;
  padding: 16px 16px calc(104px + env(safe-area-inset-bottom));
}

.how-to-buy-page .onboarding-skip {
  position: absolute;
  top: 14px;
  right: 16px;
}

.how-to-buy-page .onboarding-card {
  min-height: calc(100svh - 156px);
  grid-template-rows: auto minmax(210px, 1fr) auto auto auto;
  gap: 14px;
  padding: 24px 10px 18px;
  border: 1px solid rgba(0, 125, 97, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(0, 20, 16, 0.18);
}

.how-to-buy-page .onboarding-illustration {
  width: min(286px, 100%);
}

.how-to-buy-page .onboarding-copy h1 {
  font-size: 31px;
}

.how-to-buy-page .onboarding-copy p {
  font-size: 17px;
}

.how-to-buy-page .onboarding-controls {
  position: static;
  width: min(236px, 100%);
  min-height: 50px;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  transform: none;
}

.how-to-buy-page .onboarding-arrow {
  width: 52px;
  height: 46px;
  border-width: 1.5px;
  border-radius: 14px;
  box-shadow: 0 5px 0 rgba(16, 24, 25, 0.12);
  font-size: 34px;
}

.how-to-buy-page .onboarding-finish {
  min-height: 46px;
  padding: 0 16px;
  font-size: 15px;
  box-shadow: 0 10px 20px rgba(0, 181, 129, 0.18);
}

.install-guide-page {
  padding-bottom: max(18px, env(safe-area-inset-bottom));
}

.install-card {
  width: min(100%, 390px);
  max-width: calc(100vw - 32px);
  min-height: calc(100svh - 42px);
  display: grid;
  grid-template-rows: auto auto auto auto auto;
  align-items: center;
  justify-items: center;
  gap: 18px;
  padding: 34px 10px 28px;
  text-align: center;
}

.install-phone-visual {
  position: relative;
  width: min(250px, 76vw);
  height: 250px;
  display: grid;
  place-items: center;
}

.install-phone-visual::before {
  position: absolute;
  inset: auto 0 18px;
  height: 92px;
  border-radius: 999px;
  content: "";
  background: #d8dddc;
}

.install-phone-frame {
  position: relative;
  z-index: 1;
  width: 138px;
  height: 220px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 16px;
  padding: 20px 13px;
  border: 9px solid #101819;
  border-radius: 30px;
  background: linear-gradient(180deg, #f8fffc, #dff9f0);
  box-shadow: 0 18px 28px rgba(16, 24, 25, 0.16);
}

.install-phone-frame > span {
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: #101819;
}

.install-phone-logo {
  width: 94px;
  height: 56px;
  object-fit: contain;
  background: transparent;
}

.install-phone-button {
  width: 82px;
  height: 34px;
  border-radius: 8px;
  background: var(--green-500);
}

.install-phone-button.short {
  width: 62px;
  background: var(--green-900);
}

.install-badge {
  position: absolute;
  right: 12px;
  top: 46px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 3px solid white;
  border-radius: 18px;
  color: #071012;
  background: linear-gradient(135deg, var(--green-500), #64f0ca);
  box-shadow: 0 14px 30px rgba(0, 125, 97, 0.2);
  font-weight: 950;
}

.install-copy h1 {
  font-size: 31px;
}

.install-steps {
  width: 100%;
  display: grid;
  gap: 10px;
}

.install-steps div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid rgba(16, 24, 25, 0.08);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 8px 20px rgba(16, 24, 25, 0.06);
  text-align: left;
}

.install-steps strong {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #071012;
  background: var(--green-500);
  font-weight: 950;
}

.install-steps span {
  color: #202b2d;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.25;
}

.install-note {
  margin: -2px 0 0;
  color: #5d686a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.install-actions {
  width: 100%;
  display: grid;
  gap: 10px;
}

.install-primary {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.install-secondary {
  min-height: 50px;
  background: white;
}

.install-client-page {
  padding-bottom: 28px;
}

.install-card-in-app {
  width: 100%;
  max-width: 520px;
  min-height: 0;
  margin: 0 auto;
  padding: 24px 18px;
}

.install-card-in-app .onboarding-logo {
  width: 132px;
  height: 66px;
}

.install-card-in-app .install-phone-visual {
  height: 190px;
}

.install-card-in-app .install-phone-frame {
  width: 112px;
  height: 176px;
  gap: 12px;
  padding: 16px 10px;
  border-width: 7px;
  border-radius: 24px;
}

.install-card-in-app .install-phone-logo {
  width: 78px;
  height: 46px;
}

.install-card-in-app .install-phone-button {
  width: 68px;
  height: 28px;
}

.install-card-in-app .install-phone-button.short {
  width: 50px;
}

.install-card-in-app .install-badge {
  right: 42px;
  top: 34px;
}

.auth-card {
  width: min(100%, 960px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.auth-hero {
  min-height: 640px;
  padding: 42px;
  color: white;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-logo,
.header-logo,
.owner-logo {
  display: block;
  object-fit: cover;
  border: 1px solid rgba(0, 216, 151, 0.32);
  border-radius: var(--radius);
  background: #0b1214;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 18px 42px rgba(0, 0, 0, 0.28);
}

.brand-logo-large {
  width: 100%;
  max-width: 250px;
  aspect-ratio: 620 / 330;
  margin: 0 auto;
}

.header-logo {
  width: 150px;
  height: 72px;
  margin: 0 auto;
}

.owner-logo {
  width: 190px;
  aspect-ratio: 620 / 330;
}

.barcode {
  display: block;
  width: 128px;
  height: 14px;
  margin-top: -4px;
  background: repeating-linear-gradient(90deg, currentColor 0 3px, transparent 3px 6px);
  opacity: 0.9;
}

.auth-hero-copy {
  margin-top: 110px;
}

.auth-hero h1 {
  max-width: 460px;
  margin: 0 0 18px;
  font-size: 54px;
  line-height: 0.95;
  letter-spacing: 0;
}

.auth-hero p {
  max-width: 440px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
  line-height: 1.5;
}

.auth-form {
  padding: 42px;
  align-self: center;
}

.auth-tabs,
.role-switch,
.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.auth-tabs button,
.role-switch button,
.segmented button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
}

.auth-tabs button.active,
.role-switch button.active,
.segmented button.active {
  color: var(--green-900);
  background: white;
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.08);
}

.auth-form h2 {
  margin: 28px 0 10px;
  font-size: 32px;
  letter-spacing: 0;
}

.auth-form p {
  margin: 0 0 26px;
  color: var(--muted);
  line-height: 1.5;
}

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

.field {
  display: grid;
  gap: 6px;
}

.field span {
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.input,
.select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  outline: none;
}

.input:focus,
.select:focus,
textarea:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(32, 198, 90, 0.14);
}

.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: var(--radius);
  background: var(--green-500);
  color: white;
  font-size: 15px;
  font-weight: 820;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(32, 198, 90, 0.22);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
  box-shadow: none;
}

.btn.secondary {
  color: var(--green-900);
  background: var(--green-50);
}

.btn.ghost {
  color: var(--green-900);
  background: transparent;
  border: 1px solid var(--line);
}

.btn.compact {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 12px;
}

.btn.dark {
  background: var(--green-900);
}

.btn.danger {
  background: var(--danger);
}

.btn.full {
  width: 100%;
}

.tiny-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.client-shell {
  max-width: 480px;
  margin: 0 auto;
  background: #071114;
  box-shadow: 0 0 0 1px rgba(16, 24, 40, 0.08);
}

.client-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 92px;
  padding: calc(env(safe-area-inset-top) + 12px) 18px 14px;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 10px;
  background:
    linear-gradient(180deg, rgba(10, 21, 26, 0.98), rgba(5, 10, 12, 0.98)),
    #071114;
  color: white;
  border-bottom: 1px solid rgba(114, 217, 195, 0.28);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

.header-title {
  text-align: center;
}

.header-title strong {
  display: block;
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
}

.header-title .barcode {
  width: 118px;
  height: 10px;
  margin: 3px auto 0;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: rgba(0, 216, 151, 0.12);
  font-size: 24px;
  line-height: 1;
}

.icon-btn:empty {
  visibility: hidden;
}

.avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  color: white;
  background:
    linear-gradient(135deg, rgba(0, 216, 151, 0.35), rgba(6, 36, 20, 0.05)),
    #102324;
  font-size: 15px;
  font-weight: 900;
}

.client-main {
  min-height: calc(100vh - 92px);
  color: white;
}

.client-shell.with-bottom-nav .client-page {
  padding-bottom: calc(120px + env(safe-area-inset-bottom));
}

.client-shell.with-active-delivery-notice.with-bottom-nav .client-page {
  padding-bottom: calc(204px + env(safe-area-inset-bottom));
}

.welcome-screen {
  position: relative;
  min-height: calc(100svh - 116px);
  padding: 46px 22px 136px;
  display: grid;
  align-content: space-between;
  gap: 28px;
  overflow: hidden;
}

.welcome-screen::before,
.welcome-screen::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.welcome-screen::before {
  background: transparent;
  opacity: 0;
}

.welcome-screen::after {
  background:
    linear-gradient(180deg, rgba(7, 17, 20, 0.06), rgba(7, 17, 20, 0.42) 58%, rgba(7, 17, 20, 0.82)),
    radial-gradient(circle at 50% 44%, rgba(0, 216, 151, 0.18), transparent 42%);
}

.welcome-copy,
.bottom-action {
  position: relative;
  z-index: 1;
}

.welcome-copy {
  margin-top: 20vh;
  text-align: center;
}

.welcome-copy h1 {
  margin: 0 0 10px;
  font-size: 38px;
  line-height: 1;
  letter-spacing: 0;
}

.welcome-copy p {
  margin: 0 auto;
  max-width: 380px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.35;
}

.down-cue {
  margin-top: 24vh;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  font-size: 17px;
}

.bottom-action {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 2;
  width: min(480px, 100%);
  padding: 12px 14px max(12px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: rgba(5, 25, 22, 0.88);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.scan-button {
  width: 100%;
  min-height: 58px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--green-500), #06f5b4);
  color: white;
  box-shadow: 0 0 0 6px rgba(0, 216, 151, 0.12), 0 12px 28px rgba(0, 0, 0, 0.22);
  font-size: 18px;
  font-weight: 850;
}

.qr-dot {
  width: 22px;
  height: 22px;
  display: inline-block;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 7px 7px no-repeat,
    linear-gradient(currentColor, currentColor) 15px 0 / 7px 7px no-repeat,
    linear-gradient(currentColor, currentColor) 0 15px / 7px 7px no-repeat,
    linear-gradient(currentColor, currentColor) 10px 10px / 4px 4px no-repeat,
    linear-gradient(currentColor, currentColor) 16px 12px / 6px 4px no-repeat,
    linear-gradient(currentColor, currentColor) 9px 17px / 4px 5px no-repeat;
  color: currentColor;
  vertical-align: -4px;
}

.barcode-icon {
  width: 38px;
  height: 28px;
  display: inline-block;
  background:
    linear-gradient(
      90deg,
      currentColor 0 3px,
      transparent 3px 6px,
      currentColor 6px 8px,
      transparent 8px 12px,
      currentColor 12px 16px,
      transparent 16px 19px,
      currentColor 19px 21px,
      transparent 21px 25px,
      currentColor 25px 31px,
      transparent 31px 34px,
      currentColor 34px 38px
    );
  color: currentColor;
  vertical-align: -5px;
}

.client-header.home-header {
  min-height: 70px;
  grid-template-columns: 1fr 44px;
  padding: calc(env(safe-area-inset-top) + 9px) 18px 10px;
  background:
    linear-gradient(180deg, rgba(13, 28, 31, 0.98), rgba(7, 17, 20, 0.98));
  border-bottom: 1px solid rgba(114, 217, 195, 0.14);
  box-shadow: none;
}

.home-user-chip {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: white;
  background: transparent;
  text-align: left;
}

.mini-avatar {
  width: 30px;
  height: 30px;
  border-width: 1.5px;
  font-size: 10px;
}

.home-user-chip strong {
  min-width: 0;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-menu-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
  font-size: 23px;
  line-height: 1;
}

.home-dashboard {
  min-height: calc(100svh - 70px);
  padding: 12px 12px calc(140px + env(safe-area-inset-bottom));
  color: #14191a;
  background:
    linear-gradient(180deg, rgba(7, 17, 20, 0.04), rgba(7, 17, 20, 0.18));
}

.home-choice-dashboard {
  display: grid;
  align-content: center;
  min-height: calc(100svh - 150px);
}

.home-choice-card {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(114, 217, 195, 0.24);
  border-radius: var(--radius);
  color: white;
  background:
    linear-gradient(135deg, rgba(19, 201, 163, 0.18), rgba(11, 18, 20, 0.74)),
    linear-gradient(180deg, #101a1f, #071114);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
}

.home-choice-card::after {
  position: absolute;
  right: -70px;
  top: 40px;
  width: 210px;
  height: 64px;
  content: "";
  border: 1px solid rgba(114, 217, 195, 0.16);
  background: linear-gradient(90deg, transparent, rgba(19, 201, 163, 0.12), transparent);
  transform: rotate(-24deg);
  pointer-events: none;
}

.home-choice-card > * {
  position: relative;
  z-index: 1;
}

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

.home-choice-copy h1 {
  margin: 0;
  max-width: 340px;
  color: white;
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
}

.home-choice-copy p {
  max-width: 360px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
}

.home-choice-actions {
  display: grid;
  gap: 12px;
}

.home-choice-btn {
  min-height: 96px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  text-align: left;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.home-choice-btn.local {
  color: #031614;
  background: linear-gradient(135deg, #d7fff4, #11d1a4);
}

.home-choice-btn.delivery {
  color: white;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
    #0b1214;
}

.home-choice-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 950;
}

.home-choice-btn.local .home-choice-icon {
  color: #d8fff4;
  background: #071114;
}

.home-choice-btn.delivery .home-choice-icon {
  color: #061815;
  background: #bfffee;
}

.home-choice-btn strong,
.home-choice-btn small {
  display: block;
}

.home-choice-btn strong {
  font-size: 22px;
  line-height: 1;
  font-weight: 950;
}

.home-choice-btn small {
  margin-top: 7px;
  max-width: 260px;
  color: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
  opacity: 0.72;
}

.home-hero-card {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 16px;
  overflow: hidden;
  border-radius: var(--radius);
  color: white;
  background:
    linear-gradient(135deg, rgba(19, 201, 163, 0.2), rgba(31, 111, 235, 0.08) 48%, rgba(233, 148, 58, 0.12)),
    linear-gradient(180deg, #101a1f, #071114);
  box-shadow: 0 18px 36px rgba(8, 18, 22, 0.22);
}

.home-hero-card::after {
  position: absolute;
  right: -52px;
  top: 26px;
  width: 184px;
  height: 54px;
  content: "";
  border: 1px solid rgba(114, 217, 195, 0.18);
  background: linear-gradient(90deg, transparent, rgba(19, 201, 163, 0.14), transparent);
  transform: rotate(-24deg);
  pointer-events: none;
}

.home-hero-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-kicker,
.home-status-pill,
.home-metrics span,
.shortcut-btn small {
  display: block;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.home-kicker {
  color: rgba(199, 255, 238, 0.86);
}

.home-status-pill {
  max-width: 150px;
  padding: 7px 9px;
  overflow: hidden;
  border: 1px solid rgba(99, 244, 200, 0.26);
  border-radius: 999px;
  color: var(--green-100);
  background: rgba(0, 216, 151, 0.08);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-hero-card h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 25px;
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: 0;
}

.home-hero-card p {
  position: relative;
  z-index: 1;
  max-width: 300px;
  margin: -6px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.35;
}

.home-hero-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 10px;
}

.home-hero-actions.single {
  grid-template-columns: 1fr;
}

.home-primary-action,
.home-secondary-action {
  min-width: 0;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 13px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 900;
}

.home-primary-action {
  color: #031614;
  background: linear-gradient(135deg, #d7fff4, var(--green-500));
  box-shadow: 0 10px 24px rgba(19, 201, 163, 0.2);
}

.home-primary-action .qr-dot {
  width: 18px;
  height: 18px;
}

.home-secondary-action {
  color: white;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.home-secondary-action span {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #041715;
  background: var(--green-100);
  font-size: 12px;
  font-weight: 950;
}

.home-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0;
}

.home-metrics.single-metric {
  grid-template-columns: 1fr;
}

.home-metrics article,
.home-metric-card {
  min-width: 0;
  min-height: 78px;
  padding: 10px;
  border: 1px solid rgba(6, 108, 94, 0.1);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(8, 18, 22, 0.12);
  backdrop-filter: blur(10px);
}

.home-metric-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  text-align: left;
}

.home-metrics span {
  color: var(--muted);
}

.home-metrics strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  font-size: 20px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-metric-card .metric-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #d8fff4;
  background: linear-gradient(180deg, #0c171b, #071114);
  font-size: 11px;
  font-weight: 950;
}

.home-metric-card .metric-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.home-metric-card .metric-copy strong {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}

.home-metric-card .metric-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.2;
}

.home-shortcuts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 12px;
}

.shortcut-btn {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(6, 108, 94, 0.1);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
  text-align: left;
  box-shadow: 0 12px 28px rgba(8, 18, 22, 0.12);
  backdrop-filter: blur(10px);
}

.shortcut-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  grid-row: 1 / span 2;
  border-radius: var(--radius);
  color: #d8fff4;
  background: linear-gradient(180deg, #0c171b, #071114);
  font-size: 11px;
  font-weight: 950;
}

.shortcut-btn.promo-shortcut .shortcut-icon {
  color: #221405;
  background: linear-gradient(135deg, #ffd79c, var(--accent-warm));
}

.shortcut-btn.promo-shortcut {
  position: relative;
  grid-column: 1 / -1;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  padding: 12px;
  border-color: rgba(233, 148, 58, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 246, 227, 0.98), rgba(219, 255, 246, 0.96)),
    #fffaf0;
  box-shadow: 0 16px 34px rgba(233, 148, 58, 0.2), 0 10px 24px rgba(8, 18, 22, 0.12);
}

.shortcut-btn.promo-shortcut::after {
  content: "Ver";
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  padding: 7px 10px;
  border-radius: 999px;
  color: #06231d;
  background: #13c9a3;
  font-size: 11px;
  font-weight: 950;
}

.shortcut-btn.promo-shortcut .shortcut-icon {
  width: 46px;
  height: 46px;
  font-size: 12px;
}

.shortcut-btn.promo-shortcut strong {
  font-size: 16px;
}

.shortcut-btn.promo-shortcut small {
  max-width: 100%;
  color: #48575b;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
}

.shortcut-btn strong {
  display: block;
  grid-column: 2;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shortcut-btn small {
  grid-column: 2;
  margin-top: 2px;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}

.home-panel {
  margin: 0 0 12px;
  padding: 14px;
  border: 1px solid rgba(6, 108, 94, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(8, 18, 22, 0.14);
  backdrop-filter: blur(10px);
}

.promotions-page {
  display: grid;
  gap: 12px;
}

.promo-hero-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(233, 148, 58, 0.26);
  border-radius: var(--radius);
  color: #10171b;
  background:
    linear-gradient(135deg, rgba(255, 215, 156, 0.78), rgba(255, 250, 240, 0.94) 55%, rgba(201, 242, 231, 0.86)),
    #fffaf0;
  box-shadow: 0 14px 30px rgba(8, 18, 22, 0.16);
}

.promo-hero-card::after {
  position: absolute;
  right: -34px;
  top: 24px;
  width: 154px;
  height: 44px;
  content: "";
  border: 1px solid rgba(7, 17, 20, 0.08);
  background: rgba(255, 255, 255, 0.26);
  transform: rotate(-22deg);
}

.promo-hero-card span {
  display: block;
  color: #7a430c;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.promo-hero-card h2 {
  max-width: 270px;
  margin: 6px 0;
  font-size: 26px;
  line-height: 1.04;
  font-weight: 950;
}

.promo-hero-card p {
  max-width: 330px;
  margin: 0;
  color: #556366;
  font-size: 14px;
  line-height: 1.38;
}

.promo-list {
  display: grid;
  gap: 10px;
}

.promo-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(6, 108, 94, 0.12);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 24px rgba(8, 18, 22, 0.08);
}

.promo-product-visual {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  color: #081216;
  background: linear-gradient(135deg, #e9fff7, #c9f2e7);
  font-size: 12px;
  font-weight: 950;
}

.promo-card div {
  min-width: 0;
}

.promo-card span,
.promo-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.promo-card strong {
  display: block;
  min-width: 0;
  margin: 2px 0;
  overflow: hidden;
  font-size: 16px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promo-card em {
  grid-column: 1 / -1;
  justify-self: start;
  max-width: 100%;
  padding: 6px 10px;
  overflow: hidden;
  border: 1px solid rgba(233, 148, 58, 0.24);
  border-radius: 999px;
  color: #7a430c;
  background: #fff3df;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
}

.panel-title-row h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
}

.panel-title-row button,
.purchase-summary-row button {
  color: var(--green-700);
  background: transparent;
  font-weight: 850;
}

.home-panel-badge {
  padding: 6px 10px;
  border-radius: 999px;
  color: #041715;
  background: var(--green-100);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.purchase-summary-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.purchase-ok {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid var(--green-500);
  border-radius: 50%;
  color: var(--green-700);
  font-size: 18px;
  font-weight: 900;
}

.purchase-ok.warn {
  border-color: #f59e0b;
  color: #92400e;
  background: #fffbeb;
  font-size: 13px;
}

.purchase-ok.danger {
  border-color: var(--danger);
  color: var(--danger);
  background: #fff5f3;
}

.purchase-summary-row strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.purchase-summary-row p,
.empty-panel-text {
  margin: 4px 0 0;
  color: #606a6b;
  font-size: 14px;
}

.purchase-total {
  white-space: nowrap;
  font-size: 16px;
  text-align: right;
}

.whatsapp-float {
  position: fixed;
  right: max(22px, calc((100vw - 480px) / 2 + 22px));
  bottom: calc(env(safe-area-inset-bottom) + 100px);
  z-index: 28;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #25d366;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.28);
  font-size: 24px;
  text-decoration: none;
}

.home-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: max(8px, env(safe-area-inset-bottom));
  z-index: 42;
  width: min(456px, calc(100% - 18px));
  min-height: 74px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  gap: 2px;
  padding: 8px;
  border: 1px solid rgba(6, 108, 94, 0.12);
  border-radius: var(--radius);
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 14px 38px rgba(8, 18, 22, 0.2);
  backdrop-filter: blur(18px);
}

.home-bottom-nav button {
  min-width: 0;
  min-height: 52px;
  display: grid;
  place-items: center;
  gap: 4px;
  color: #646b6d;
  background: transparent;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.home-bottom-nav button.active {
  color: var(--green-700);
}

.home-bottom-nav span {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: inherit;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.home-bottom-nav .nav-home-icon svg {
  width: 23px;
  height: 23px;
  display: block;
}

.home-bottom-nav .nav-cart-icon svg,
.home-bottom-nav .nav-whatsapp-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.home-bottom-nav .nav-whatsapp-icon {
  color: #12b886;
}

.home-bottom-nav strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-bottom-nav .nav-scan {
  width: 66px;
  height: 66px;
  min-height: 66px;
  align-self: center;
  justify-self: center;
  margin-top: -34px;
  border: 6px solid #edf2f1;
  border-radius: 20px;
  color: white;
  background: linear-gradient(135deg, #071114, #123037);
  box-shadow: 0 12px 24px rgba(8, 18, 22, 0.28);
}

.home-bottom-nav .nav-scan span {
  width: 20px;
  height: 20px;
  min-width: 20px;
}

.nav-qr-image {
  width: 40px;
  height: 40px;
  display: block;
  border-radius: 10px;
  object-fit: contain;
}

.active-delivery-notice {
  position: fixed;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom));
  z-index: 41;
  width: min(456px, calc(100% - 18px));
  transform: translateX(-50%);
}

.active-delivery-card {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(0, 216, 151, 0.28);
  border-radius: var(--radius);
  color: #071114;
  background:
    linear-gradient(135deg, rgba(231, 255, 247, 0.98), rgba(255, 255, 255, 0.98)),
    white;
  box-shadow: 0 18px 44px rgba(8, 18, 22, 0.24);
  text-align: left;
}

.active-delivery-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #c8fff0;
  background: linear-gradient(135deg, #071114, #143037);
  font-size: 13px;
  font-weight: 950;
}

.active-delivery-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.active-delivery-copy small {
  color: var(--green-700);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.active-delivery-copy strong {
  overflow: hidden;
  font-size: 18px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.active-delivery-copy em {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.active-delivery-meta {
  display: grid;
  gap: 2px;
  justify-items: end;
  white-space: nowrap;
}

.active-delivery-meta b {
  font-size: 16px;
  font-weight: 950;
}

.active-delivery-meta i {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.active-delivery-notice.status-ready .active-delivery-card,
.active-delivery-notice.status-out_for_delivery .active-delivery-card {
  border-color: rgba(0, 181, 129, 0.48);
  background: linear-gradient(135deg, #caffef, #ffffff);
}

.client-page {
  min-height: calc(100vh - 92px);
  padding: 16px;
}

.panel-card,
.product-card,
.menu-profile,
.cart-bar,
.scanner-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.scanner-card {
  padding: 16px;
}

.camera-box {
  position: relative;
  aspect-ratio: 4 / 5;
  contain: layout paint;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.35);
}

.camera-box video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: cover;
  transition: none;
}

.camera-box.camera-ready video {
  opacity: 1;
}

.qr-scanner .camera-box {
  width: 100%;
  aspect-ratio: 4 / 5;
}

.scan-frame {
  position: absolute;
  inset: 20%;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.28);
}

.barcode-scanner .scan-frame {
  inset: 38% 7%;
  border-radius: 4px;
}

.scan-help {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  font-size: 14px;
}

.manual-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 14px;
}

.manual-row .input {
  min-height: 48px;
  color: var(--ink);
}

.scan-label-row {
  display: grid;
  grid-template-columns: 42px 1fr 36px;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  margin: 12px -16px -2px;
  padding: 0 12px;
  color: white;
  background: rgba(86, 95, 96, 0.95);
}

.scan-label-row .barcode-icon {
  width: 28px;
  height: 22px;
}

.sound-dot {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  justify-self: end;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0;
}

.sound-dot::before {
  width: 10px;
  height: 10px;
  content: "";
  border-radius: 50%;
  background: var(--green-300);
  box-shadow: 0 0 0 6px rgba(0, 216, 151, 0.16), 0 0 16px rgba(0, 216, 151, 0.8);
}

.product-scan-page {
  min-height: calc(100svh - 92px);
  padding: 8px 10px 96px;
  color: white;
  background:
    radial-gradient(circle at 50% -10%, rgba(0, 216, 151, 0.2), transparent 42%),
    linear-gradient(180deg, rgba(6, 14, 16, 0.08), rgba(6, 14, 16, 0.72));
}

.client-shell.with-bottom-nav .product-scan-page {
  padding-bottom: calc(202px + env(safe-area-inset-bottom));
}

.product-scan-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid rgba(0, 216, 151, 0.26);
  border-radius: var(--radius);
  background: rgba(5, 15, 16, 0.74);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.product-scan-hero span,
.scan-cart-head span,
.scan-last-product span {
  display: block;
  color: rgba(147, 255, 223, 0.88);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-scan-hero h2 {
  margin: 3px 0 3px;
  font-size: 20px;
  line-height: 1.05;
  letter-spacing: 0;
}

.product-scan-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.25;
}

.scan-live-counter {
  min-height: 64px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: var(--radius);
  color: #021412;
  background: linear-gradient(135deg, #95ffe2, var(--green-500));
}

.scan-live-counter strong {
  font-size: 25px;
  line-height: 1;
}

.scan-live-counter span {
  color: rgba(2, 20, 18, 0.72);
  font-size: 10px;
}

.product-scanner {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 216, 151, 0.26);
  border-radius: var(--radius);
  background: rgba(4, 13, 15, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.product-scanner .camera-box {
  min-height: 102px;
  max-height: 128px;
  aspect-ratio: 16 / 4.7;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(0, 216, 151, 0.18), rgba(0, 0, 0, 0.18)),
    #182426;
}

.product-scanner .camera-box::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.36));
  pointer-events: none;
}

.product-scanner .scan-frame {
  inset: 31% 12%;
  z-index: 2;
  border: 2px solid rgba(147, 255, 223, 0.95);
  border-radius: 6px;
  box-shadow:
    0 0 0 1px rgba(2, 20, 18, 0.5),
    0 0 0 999px rgba(0, 0, 0, 0.18);
}

.scan-laser {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 50%;
  z-index: 3;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #13ffc0 18%, white 50%, #13ffc0 82%, transparent);
  box-shadow: 0 0 14px rgba(19, 255, 192, 0.78);
  transform: translateY(-50%);
  pointer-events: none;
}

.product-scanner .scan-label-row {
  grid-template-columns: 38px 1fr 28px;
  margin: 0;
  padding: 10px 12px;
  color: white;
  background: rgba(9, 20, 22, 0.96);
  border-bottom: 1px solid rgba(0, 216, 151, 0.22);
}

.product-scanner .scan-label-row .barcode-icon {
  width: 28px;
  height: 20px;
  color: var(--green-300);
}

.scan-label-row div {
  min-width: 0;
}

.scan-label-row small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.product-scanner .scan-help {
  margin: 0;
  padding: 10px 12px 12px;
  color: rgba(255, 255, 255, 0.72);
  text-align: left;
  font-size: 13px;
}

.scanner-resume-button {
  width: calc(100% - 24px);
  margin: 10px 12px 0;
  touch-action: manipulation;
}

.scanner-card.decoder-paused .scan-laser {
  display: none;
}

.scanner-card.decoder-paused .sound-dot::before {
  background: #f6c453;
  box-shadow: 0 0 0 6px rgba(246, 196, 83, 0.15);
}

.scan-last-product {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 0 12px 12px;
  padding: 10px;
  border: 1px solid rgba(147, 255, 223, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.scan-last-product strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: white;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scan-last-product em {
  color: var(--green-100);
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.scan-cart-panel {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid rgba(0, 216, 151, 0.18);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
}

.scan-cart-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.scan-cart-head span {
  color: var(--green-700);
}

.scan-cart-head strong {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scan-cart-total-chip {
  padding: 7px 9px;
  border-radius: 999px;
  color: var(--green-900);
  background: var(--green-100);
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.scan-clear-link {
  min-height: 32px;
  padding: 0 9px;
  border-radius: 999px;
  color: #7a180f;
  background: #fee4e2;
  font-size: 12px;
  font-weight: 900;
}

.scan-clear-link:disabled {
  opacity: 0.45;
  cursor: default;
}

.scan-add-confirm {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 10px 0 0;
  padding: 10px;
  border: 1px solid rgba(0, 181, 129, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 216, 151, 0.16), rgba(255, 255, 255, 0.96)),
    #f7fffc;
  box-shadow: 0 10px 22px rgba(0, 181, 129, 0.12);
}

.scan-added-check {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green-600);
  font-size: 20px;
  font-weight: 950;
}

.scan-add-confirm span {
  display: block;
  color: var(--green-700);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.scan-add-confirm strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scan-add-confirm em {
  color: var(--green-900);
  font-size: 14px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.scan-cart-list {
  display: grid;
  gap: 7px;
  max-height: min(42svh, 360px);
  overflow-y: auto;
  padding-top: 9px;
  padding-right: 2px;
}

.scan-cart-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 9px;
  color: #111617;
  border: 1px solid #eef3f1;
  border-radius: var(--radius);
  background: #fbfdfc;
}

.scan-cart-item.is-latest {
  border-color: rgba(0, 181, 129, 0.56);
  background: #f1fff9;
  box-shadow: inset 4px 0 0 var(--green-500), 0 8px 18px rgba(0, 181, 129, 0.12);
}

.scan-product-visual {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--green-900);
  background:
    linear-gradient(135deg, rgba(0, 216, 151, 0.18), rgba(0, 216, 151, 0.04)),
    var(--green-50);
  font-size: 12px;
  font-weight: 900;
}

.scan-product-visual.has-image,
.product-visual.has-image,
.stock-product-id.has-image,
.product-preview-token.has-image,
.delivery-product-visual.has-image,
.promo-product-visual.has-image,
.receipt-product-visual.has-image,
.owner-sale-product-visual.has-image {
  overflow: hidden;
  background: #ffffff;
}

.scan-product-visual img,
.product-visual img,
.stock-product-id img,
.product-preview-token img,
.delivery-product-visual img,
.promo-product-visual img,
.receipt-product-visual img,
.owner-sale-product-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.scan-product-main {
  min-width: 0;
}

.scan-product-main strong {
  display: block;
  margin-bottom: 4px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scan-product-main span,
.scan-product-main em {
  display: block;
  color: #5c6968;
  font-size: 12px;
  font-style: normal;
}

.scan-product-main s,
.cart-item s {
  color: #7b8a88;
  text-decoration-thickness: 2px;
}

.ds-price-with-promo {
  display: grid;
  gap: 2px;
}

.ds-price-with-promo s {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.product-price-promo {
  display: grid;
  gap: 2px;
}

.product-price-promo s {
  color: var(--muted);
  font-size: 12px;
}

.product-image-placeholder {
  font-size: 24px;
  line-height: 1;
}

.line-saving {
  color: var(--green-700) !important;
  font-weight: 950;
}

.scan-product-main em {
  margin-top: 3px;
  color: #b55b15;
  font-weight: 800;
}

.scan-product-side {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.scan-qty-controls {
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 8px;
}

.scan-qty-controls button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  box-shadow: none;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.ds-scan-cart-panel .scan-qty-controls button:disabled {
  opacity: .45;
  cursor: default;
}

.scan-qty-controls strong {
  min-width: 18px;
  text-align: center;
  font-size: 16px;
}

.scan-minus {
  background: white;
}

.scan-plus {
  border-color: rgba(0, 216, 151, 0.4);
  color: #021412;
  background: var(--green-100);
}

.scan-line-total {
  color: #111617;
  font-size: 16px;
  white-space: nowrap;
}

.scan-empty-state {
  min-height: 220px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 14px;
  padding: 18px 18px 8px;
  text-align: center;
}

.scan-example-illustration {
  position: relative;
  width: 190px;
  height: 154px;
}

.scan-example-product {
  position: absolute;
  left: 0;
  top: 24px;
  width: 92px;
  height: 116px;
  border: 2px solid #d9e5e1;
  border-radius: 14px;
  background: linear-gradient(155deg, #ffffff 0 64%, #d9f7e9 64%);
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.12);
}

.scan-example-product::before {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 16px;
  height: 34px;
  content: "BOX";
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--green-600);
  font-size: 12px;
  font-weight: 950;
}

.scan-example-product span {
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 18px;
  height: 26px;
  background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 5px, #111 5px 8px, transparent 8px 11px);
}

.scan-phone-illustration {
  position: absolute;
  right: 0;
  top: 4px;
  width: 112px;
  height: 146px;
  border: 6px solid #11191a;
  border-radius: 24px;
  background:
    linear-gradient(135deg, #e8f7ff 0 50%, #57d99e 50%),
    white;
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.12);
}

.scan-phone-illustration::before {
  position: absolute;
  left: 21px;
  right: 21px;
  top: 63px;
  height: 24px;
  content: "";
  border-radius: 4px;
  background:
    linear-gradient(90deg, #111 0 4px, transparent 4px 8px, #111 8px 12px, transparent 12px 17px, #111 17px 21px, transparent 21px 25px, #111 25px 30px, transparent 30px 35px, #111 35px 39px, transparent 39px 43px, #111 43px 47px, transparent 47px);
  box-shadow: 0 0 0 5px white;
}

.scan-phone-illustration::after {
  position: absolute;
  inset: 46px 14px 44px;
  content: "";
  border: 4px solid #ef3044;
  border-radius: 7px;
}

.scan-empty-state h2 {
  max-width: 330px;
  margin: 0;
  color: #0f1314;
  font-size: 20px;
  line-height: 1.18;
}

.scan-empty-state p {
  margin: -8px 0 0;
  color: #596467;
  font-size: 14px;
}

.product-scanner .manual-row {
  margin: 0 18px 14px;
}

.scan-cart-actions {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 25;
  width: min(480px, 100%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "cancel total checkout";
  gap: 8px;
  align-items: center;
  padding: 8px 10px max(8px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  border-top: 1px solid rgba(0, 216, 151, 0.18);
  background: rgba(4, 13, 15, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 -12px 28px rgba(0, 0, 0, 0.28);
}

.scan-cancel-purchase {
  grid-area: cancel;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 900;
}

.scan-cancel-purchase:focus-visible {
  outline: 3px solid rgba(147, 255, 223, 0.7);
  outline-offset: 2px;
}

.client-shell.with-bottom-nav .scan-cart-actions {
  bottom: calc(108px + env(safe-area-inset-bottom));
}

.bag-icon {
  grid-area: bag;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(147, 255, 223, 0.35);
  border-radius: 50%;
  color: #021412;
  background: var(--green-300);
  font-size: 16px;
  font-weight: 950;
}

.scan-subtotal {
  grid-area: total;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2px;
  min-width: 0;
  color: white;
}

.scan-subtotal span {
  color: rgba(147, 255, 223, 0.86);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.scan-subtotal strong {
  font-size: 17px;
}

.danger-pill,
.checkout-pill {
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius);
  color: #021412;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(0, 216, 151, 0.18);
}

.danger-pill {
  grid-area: cancel;
  background: #e9162b;
}

.checkout-pill {
  grid-area: checkout;
  background: linear-gradient(135deg, var(--green-500), #67f3cc);
}

.checkout-pill:disabled {
  color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.compact-input {
  min-width: 132px;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 12px;
}

.section-title h2 {
  margin: 0;
  color: inherit;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: 0;
}

.section-title p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.store-status {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px;
  margin-bottom: 14px;
  border-radius: var(--radius);
  color: var(--green-900);
  background: var(--green-50);
}

.status-pill {
  align-self: start;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--green-900);
  background: white;
  font-size: 12px;
  font-weight: 900;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.action-tile {
  min-height: 72px;
  padding: 12px;
  border-radius: var(--radius);
  color: white;
  background: rgba(255, 255, 255, 0.12);
  text-align: left;
}

.action-tile strong {
  display: block;
  margin-top: 8px;
  font-size: 14px;
}

.catalog-grid {
  display: grid;
  gap: 9px;
  padding-bottom: 88px;
}

.product-card {
  padding: 12px;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px;
  align-items: center;
}

.product-visual {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.18);
  font-size: 22px;
  font-weight: 900;
}

.product-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.product-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.price {
  font-weight: 950;
}

.promo-hint {
  display: block;
  margin: 3px 0 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-weight: 850;
  text-align: right;
}

.promo {
  display: inline-flex;
  margin-top: 6px;
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--green-900);
  background: var(--green-100);
  font-size: 11px;
  font-weight: 900;
}

.cart-bar {
  position: fixed;
  left: 50%;
  bottom: 10px;
  z-index: 20;
  width: min(444px, calc(100% - 20px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  color: var(--green-900);
  background: white;
  box-shadow: var(--shadow);
}

.cart-bar span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.cart-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.cart-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
}

.cart-product-visual {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--green-900);
  background: rgba(255, 255, 255, 0.18);
  font-size: 11px;
  font-weight: 950;
}

.cart-product-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.cart-item span,
.cart-item em {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.cart-item .line-saving {
  margin-top: 3px;
  color: #b8fff0 !important;
}

.qty-controls {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 8px;
}

.qty-controls button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--green-900);
  background: white;
  font-weight: 900;
}

.checkout-box {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
}

.payment-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

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

.payment-option {
  display: grid;
  grid-template-columns: 18px 44px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  cursor: pointer;
}

.payment-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--green-500);
}

.payment-option span:last-child {
  min-width: 0;
}

.payment-option small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.payment-option-main {
  border-color: rgba(0, 176, 139, 0.35);
}

.payment-logo {
  display: grid;
  width: 44px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 950;
}

.mp-logo {
  color: #052e28;
  background: linear-gradient(135deg, #00d9b2, #72f2d5);
}

.card-logo {
  color: white;
  background: #111820;
}

.payment-option:has(input:checked) {
  border-color: var(--green-500);
  background: var(--green-50);
  box-shadow: 0 0 0 2px rgba(0, 176, 139, 0.1);
}

.profile-payment-list {
  display: grid;
  gap: 10px;
}

.payment-method-summary {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
}

.payment-method-summary.preferred {
  border-color: rgba(0, 176, 139, 0.35);
  background: var(--green-50);
}

.payment-method-summary small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.payment-state-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel-soft);
  font-size: 13px;
}

.payment-state-card.is-pending {
  color: #6f4a00;
  background: #fff8e7;
  border-color: #f2d28c;
}

.payment-state-card.is-failed {
  color: #7f1d1d;
  background: #fff0f0;
  border-color: #fecaca;
}

.payment-state-card.is-approved {
  color: #065f46;
  background: #e9fff7;
  border-color: rgba(0, 176, 139, 0.35);
}

.payment-state-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: #0f766e;
  font-size: 16px;
  font-weight: 950;
}

.payment-state-card.is-pending .payment-state-icon {
  background: #f59e0b;
}

.payment-state-card.is-failed .payment-state-icon {
  background: #dc2626;
}

.payment-state-card.is-approved .payment-state-icon {
  background: var(--green-600);
}

.payment-state-card strong,
.payment-state-card span,
.payment-state-card small {
  display: block;
}

.payment-state-card span {
  margin-top: 2px;
  color: #52605d;
  font-weight: 760;
  line-height: 1.35;
}

.payment-state-card small {
  margin-top: 5px;
  color: #6c7774;
  font-weight: 850;
}

.payment-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.payment-pending-panel {
  margin-bottom: 14px;
}

.payment-pending-panel .payment-state-card {
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  font-size: 15px;
  box-shadow: 0 14px 34px rgba(0, 20, 16, 0.12);
}

.payment-pending-panel .payment-state-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.payment-pending-panel .payment-state-card strong {
  font-size: 20px;
}

.payment-pending-panel .payment-state-actions .btn {
  min-height: 42px;
}

.checkout-total {
  display: grid;
  gap: 0;
  padding: 8px 0 0;
}

.cart-warning {
  display: block;
  margin-top: 5px;
  color: #fff2d6;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.cart-warning.block {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: #7a4100;
  background: #fff2d6;
}

.menu-screen {
  min-height: calc(100vh - 92px);
  padding: 18px 16px calc(178px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 50% 0%, rgba(19, 201, 163, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(3, 11, 13, 0.56), rgba(3, 11, 13, 0.84));
}

.menu-screen.pattern-bg::before {
  opacity: 0.22;
}

.menu-screen .screen-content {
  display: grid;
  gap: 14px;
}

.menu-profile {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  color: white;
  background:
    linear-gradient(135deg, rgba(19, 201, 163, 0.18), rgba(255, 255, 255, 0.07)),
    rgba(4, 15, 17, 0.86);
  border-color: rgba(114, 217, 195, 0.36);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.menu-profile .avatar {
  width: 54px;
  height: 54px;
  font-size: 19px;
}

.menu-profile h2 {
  margin: 0 0 4px;
  font-size: 23px;
  line-height: 1.05;
}

.menu-profile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  word-break: normal;
}

.menu-group {
  margin: 4px 0 0;
}

.menu-group-title {
  margin: 0 0 9px 2px;
  color: rgba(137, 243, 220, 0.92);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.menu-list {
  display: grid;
  gap: 8px;
}

.menu-item {
  min-height: 56px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: white;
  border: 1px solid rgba(194, 252, 239, 0.15);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(4, 15, 17, 0.76);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
  text-align: left;
  font-size: 16px;
  font-weight: 780;
  backdrop-filter: blur(14px);
}

.menu-item > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-item > span:last-child {
  color: rgba(197, 255, 242, 0.86);
  font-size: 24px;
  line-height: 1;
  text-align: right;
}

.menu-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 950;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.22);
}

.profile-grid {
  display: grid;
  gap: 14px;
}

.legal-page {
  display: grid;
  gap: 12px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
}

.white-card {
  padding: 14px;
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
}

.white-card h3 {
  margin: 0 0 10px;
}

.data-row {
  display: grid;
  grid-template-columns: minmax(90px, 0.8fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.data-row:first-of-type {
  border-top: 0;
}

.data-row span {
  color: var(--muted);
}

.data-row strong {
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
}

.profile-card {
  overflow: hidden;
}

.profile-card-head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.profile-avatar {
  width: 58px;
  height: 58px;
  border: 2px solid rgba(0, 176, 139, 0.25);
  color: white;
  background: linear-gradient(135deg, #0b4d40, #047a66);
  font-size: 20px;
}

.profile-card-head h3 {
  margin: 2px 0 3px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.profile-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.profile-eyebrow {
  color: var(--green-700);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.profile-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.profile-data-list {
  display: grid;
  gap: 0;
}

.profile-data-row {
  display: grid;
  grid-template-columns: minmax(86px, 0.52fr) minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.profile-data-row:last-child {
  border-bottom: 0;
}

.profile-data-row span {
  color: var(--muted);
  font-weight: 850;
}

.profile-data-row strong {
  min-width: 0;
  text-align: right;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  max-width: 100%;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--green-900);
  background: var(--green-100);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}

.badge.warn {
  color: #7a4100;
  background: #fff2d6;
}

.badge.danger {
  color: #7a180f;
  background: #fee4e2;
}

.badge.muted {
  color: #506164;
  background: #edf4f2;
}

.account-blocked-card {
  display: grid;
  gap: 14px;
  text-align: center;
}

.account-blocked-card h2,
.account-blocked-card p {
  margin: 0;
}

.account-blocked-card p {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
}

.blocked-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 18px;
  color: #7a180f;
  background: #fee4e2;
  font-size: 30px;
  font-weight: 950;
}

.blocked-reason {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--panel-soft);
  text-align: left;
}

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

.blocked-actions {
  display: grid;
  gap: 9px;
}

.history-list {
  display: grid;
  gap: 9px;
}

.purchases-page {
  gap: 12px;
}

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

.purchases-head-card h3,
.purchase-detail-hero h2 {
  margin: 2px 0 4px;
}

.purchases-head-card p,
.purchase-detail-hero p {
  margin: 0;
  color: var(--muted);
}

.section-kicker {
  display: block;
  color: var(--green-700);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-hero-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(0, 125, 97, 0.12);
  box-shadow: 0 12px 28px rgba(0, 20, 16, 0.1);
}

.legal-hero-card h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.05;
}

.legal-hero-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

.legal-meta-row {
  display: grid;
  gap: 6px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.legal-meta-row span,
.legal-meta-row strong {
  font-size: 12px;
  line-height: 1.35;
}

.legal-meta-row span {
  color: var(--muted);
  font-weight: 850;
}

.legal-meta-row strong {
  color: #7a4100;
}

.legal-alert-card {
  border: 1px solid #ffe0a3;
  background: #fff9ec;
}

.legal-alert-card strong {
  display: block;
  margin-bottom: 4px;
}

.legal-alert-card p {
  margin: 0;
  color: #5d4b2a;
  font-size: 14px;
  line-height: 1.4;
}

.legal-section-list {
  display: grid;
  gap: 10px;
}

.legal-section-card {
  border: 1px solid rgba(0, 125, 97, 0.1);
}

.legal-section-card h3 {
  margin: 0 0 9px;
  color: var(--green-900);
  font-size: 17px;
  line-height: 1.2;
}

.legal-section-card p {
  margin: 0;
  color: #344244;
  font-size: 14px;
  line-height: 1.5;
}

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

.history-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.purchase-card {
  display: grid;
  gap: 12px;
  background: white;
}

.purchase-card-top {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.purchase-card-id {
  min-width: 0;
}

.purchase-card-id span,
.purchase-card-body span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.purchase-card-id strong {
  display: block;
  margin-top: 2px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.15;
}

.purchase-card-id p {
  margin: 4px 0 0;
  color: #71807e;
  font-size: 12px;
  font-weight: 750;
}

.purchase-card-total {
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
}

.purchase-card-body {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: var(--radius);
  background: #f7fbfa;
}

.purchase-card-body strong,
.purchase-card-body small {
  display: block;
  margin-top: 3px;
  color: #526361;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.3;
}

.purchase-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.history-item > strong {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.receipt-lines {
  display: grid;
  gap: 6px;
  margin: 10px 0;
}

.receipt-lines div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.purchase-detail-page {
  gap: 12px;
}

.purchase-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.purchase-detail-status {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.purchase-ok.large {
  width: 44px;
  height: 44px;
  background: var(--green-50);
  font-size: 24px;
}

.purchase-detail-total {
  font-size: 28px;
  white-space: nowrap;
}

.receipt-card {
  display: grid;
  gap: 14px;
}

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

.receipt-card-head span,
.receipt-meta-grid span,
.receipt-total-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.receipt-card-head strong {
  display: block;
  margin-top: 3px;
}

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

.receipt-meta-grid div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbfa;
}

.receipt-meta-grid strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.receipt-lines-detailed {
  margin: 0;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.receipt-lines-detailed div {
  padding: 4px 0;
  color: var(--ink);
}

.receipt-lines .receipt-product-line {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
}

.receipt-product-visual {
  width: 34px;
  height: 34px;
  display: grid;
  grid-template-columns: none;
  place-items: center;
  gap: 0;
  padding: 0;
  border: 1px solid rgba(0, 125, 97, 0.16);
  border-radius: var(--radius);
  color: var(--green-900);
  background: var(--green-50);
  font-size: 10px;
  font-weight: 950;
}

.receipt-lines .receipt-product-visual {
  grid-template-columns: none;
  gap: 0;
  padding: 0;
}

.receipt-lines-detailed em {
  color: var(--muted);
  font-style: normal;
  font-weight: 850;
}

.receipt-product-line small {
  display: block;
  margin-top: 2px;
  color: var(--green-700);
  font-size: 11px;
  font-weight: 900;
}

.receipt-total-row {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.receipt-total-row strong {
  font-size: 22px;
}

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

.adult-card {
  display: grid;
  gap: 14px;
}

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

.kyc-steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
}

.kyc-steps b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green-500);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: min(380px, calc(100vw - 36px));
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 216, 151, 0.28);
  border-left: 5px solid var(--green-500);
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink);
  box-shadow: 0 18px 38px rgba(0, 20, 16, 0.26);
  font-weight: 850;
}

.access-notice {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 12, 13, 0.38);
  backdrop-filter: blur(4px);
}

.access-notice-passive {
  inset: calc(env(safe-area-inset-top, 0px) + 14px) 14px auto;
  display: flex;
  justify-content: center;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
}

.access-notice-card {
  position: relative;
  width: min(360px, 100%);
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 24px 20px 22px;
  border: 1px solid rgba(0, 216, 151, 0.18);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 20, 16, 0.32);
}

.access-notice-passive .access-notice-card {
  width: min(380px, calc(100vw - 28px));
  grid-template-columns: 46px 1fr;
  justify-items: start;
  align-items: center;
  gap: 3px 12px;
  padding: 13px 16px;
  border-color: rgba(0, 216, 151, 0.35);
  border-radius: 18px;
  background: rgba(236, 255, 249, 0.98);
  text-align: left;
  box-shadow: 0 16px 34px rgba(0, 20, 16, 0.24);
  animation: accessNoticeDrop 180ms ease-out;
}

.access-notice-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(8, 18, 18, 0.06);
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
}

.access-notice-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--green-400), var(--green-600));
  color: white;
  font-size: 38px;
  font-weight: 950;
  box-shadow: 0 12px 24px rgba(0, 181, 129, 0.28);
}

.access-notice-passive .access-notice-icon {
  grid-row: 1 / span 3;
  width: 44px;
  height: 44px;
  font-size: 25px;
  box-shadow: 0 8px 16px rgba(0, 181, 129, 0.22);
}

.access-notice-error .access-notice-icon {
  background: linear-gradient(145deg, #ff615e, #cf2727);
  box-shadow: 0 12px 24px rgba(207, 39, 39, 0.2);
}

.access-notice-card h2 {
  margin: 6px 0 0;
  font-size: 26px;
  line-height: 1.05;
  font-weight: 950;
}

.access-notice-passive .access-notice-card h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
}

.access-notice-card p {
  margin: 0;
  max-width: 290px;
  color: #334244;
  font-size: 17px;
  line-height: 1.28;
  font-weight: 760;
}

.access-notice-passive .access-notice-card p {
  max-width: none;
  color: #223639;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
}

.access-notice-card small {
  max-width: 290px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.entry-validation-overlay {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 12, 13, 0.44);
  backdrop-filter: blur(5px);
}

.entry-validation-card {
  width: min(340px, 100%);
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 28px 22px;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-lg);
  color: var(--ds-ink);
  background: var(--ds-surface);
  box-shadow: var(--ds-shadow-float);
  text-align: center;
}

.entry-validation-card strong {
  font-size: 22px;
}

.entry-validation-card small {
  color: var(--ds-muted);
  font-size: 14px;
}

.entry-validation-spinner {
  width: 46px;
  height: 46px;
  border: 5px solid var(--ds-soft);
  border-top-color: var(--ds-primary);
  border-radius: 50%;
  animation: entryValidationSpin 700ms linear infinite;
}

@keyframes entryValidationSpin {
  to { transform: rotate(360deg); }
}

.scanned-product-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom));
  background: rgba(3, 12, 13, 0.58);
  backdrop-filter: blur(7px);
}

.scanned-product-modal {
  width: min(390px, 100%);
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-lg);
  color: var(--ds-ink);
  background: var(--ds-surface);
  box-shadow: 0 28px 70px rgba(0, 20, 16, 0.38);
}

.scanned-product-image {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-md);
  color: var(--ds-primary-dark);
  background: var(--ds-soft);
  font-size: 20px;
  font-weight: 950;
}

.scanned-product-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.scanned-product-copy {
  min-width: 0;
}

.scanned-product-copy > span {
  color: var(--ds-primary-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.scanned-product-copy h2 {
  margin: 5px 0 6px;
  font-size: 22px;
  line-height: 1.12;
}

.scanned-product-copy p {
  margin: 0;
  color: var(--ds-muted);
  font-size: 15px;
  font-weight: 800;
}

.scanned-product-quantity {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-md);
  background: var(--ds-soft);
}

.scanned-product-quantity button {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ds-line);
  border-radius: 50%;
  color: var(--ds-ink);
  background: var(--ds-surface);
  font-size: 28px;
  font-weight: 900;
}

.scanned-product-quantity button:disabled {
  opacity: .4;
}

.scanned-product-quantity div {
  display: grid;
  justify-items: center;
}

.scanned-product-quantity small {
  color: var(--ds-muted);
  font-size: 12px;
  font-weight: 800;
}

.scanned-product-quantity strong {
  font-size: 28px;
  line-height: 1;
}

.scanned-product-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.scanned-product-actions .btn {
  min-height: 50px;
}

body.client-modal-open {
  overflow: hidden;
}

.client-shell.route-scan-product ~ .toast {
  bottom: calc(78px + env(safe-area-inset-bottom));
}

@media (prefers-reduced-motion: reduce) {
  .entry-validation-spinner { animation-duration: 1400ms; }
}

.access-notice-passive .access-notice-card small {
  max-width: none;
  color: #58706d;
  font-size: 12px;
}

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

.update-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: min(420px, calc(100vw - 36px));
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(0, 216, 151, 0.34);
  border-radius: var(--radius);
  color: white;
  background: rgba(5, 8, 9, 0.94);
  box-shadow: var(--shadow);
}

.update-banner strong,
.update-banner span {
  display: block;
}

.update-banner strong {
  font-size: 14px;
}

.update-banner span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.35;
}

.owner-shell {
  display: grid;
  grid-template-columns: 264px 1fr;
  background: #eef5f0;
}

.owner-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  padding: 22px;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(180deg, rgba(11, 18, 20, 0.94), rgba(5, 9, 10, 0.98)),
    url("./assets/boxmarket-store.jpg") center / cover;
  border-right: 1px solid rgba(0, 216, 151, 0.24);
}

.owner-brand {
  flex: 0 0 auto;
  margin-bottom: 28px;
}

.owner-nav {
  display: grid;
  flex: 1;
  align-content: start;
  gap: 7px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.owner-nav button {
  min-height: 46px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.74);
  background: transparent;
  text-align: left;
  font-weight: 800;
}

.owner-nav button.active,
.owner-nav button:hover {
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

.owner-main {
  min-width: 0;
  padding: 28px;
}

.owner-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.owner-topbar h1 {
  margin: 0 0 5px;
  font-size: 32px;
  letter-spacing: 0;
}

.owner-topbar p {
  margin: 0;
  color: var(--muted);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.checkout-health-card {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
  border-color: rgba(15, 136, 118, 0.18);
  background:
    linear-gradient(135deg, rgba(232, 255, 247, 0.96), rgba(255, 255, 255, 0.98)),
    white;
}

.checkout-health-card.warn {
  border-color: rgba(242, 166, 77, 0.48);
  background:
    linear-gradient(135deg, rgba(255, 247, 231, 0.98), rgba(255, 255, 255, 0.98)),
    white;
}

.checkout-health-card.danger {
  border-color: rgba(218, 75, 75, 0.48);
  background:
    linear-gradient(135deg, rgba(255, 238, 236, 0.98), rgba(255, 255, 255, 0.98)),
    white;
}

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

.checkout-health-main h2 {
  margin: 4px 0 5px;
}

.checkout-health-main p {
  margin: 0;
  color: var(--muted);
}

.checkout-health-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.checkout-health-metric {
  min-height: 66px;
  padding: 12px;
  border: 1px solid rgba(15, 136, 118, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.checkout-health-metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.checkout-health-metric strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}

.checkout-health-metric.warn {
  border-color: rgba(242, 166, 77, 0.42);
}

.checkout-health-metric.danger {
  border-color: rgba(218, 75, 75, 0.42);
}

.dashboard-filter-card {
  margin-bottom: 18px;
}

.dashboard-filter-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.dashboard-filter-head h2 {
  margin-bottom: 4px;
}

.dashboard-filter-head p {
  margin: 0;
  color: var(--muted);
}

.dashboard-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.dashboard-filters label {
  display: grid;
  gap: 6px;
}

.dashboard-filters label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.compact-metrics {
  margin-top: 18px;
}

.metric-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.metric-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.metric-card strong {
  display: block;
  margin-top: 9px;
  font-size: 30px;
}

.operational-alerts-card {
  margin-bottom: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 176, 74, 0.13), transparent 28%),
    white;
}

.alert-summary-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.operational-alerts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.operational-alert {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.operational-alert.warn {
  border-color: rgba(245, 158, 11, 0.28);
  background: #fffaf0;
}

.operational-alert.danger {
  border-color: rgba(220, 38, 38, 0.22);
  background: #fff6f5;
}

.operational-alert-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.operational-alert-top span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.operational-alert-top strong {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--green-900);
  background: var(--green-100);
  font-size: 20px;
}

.operational-alert.danger .operational-alert-top strong {
  color: #7a180f;
  background: #fee4e2;
}

.operational-alert h3 {
  margin: 0;
  font-size: 16px;
}

.operational-alert p {
  min-height: 36px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 740;
  line-height: 1.35;
}

.operational-alert .btn {
  width: fit-content;
}

.owner-notifications-card {
  margin-bottom: 18px;
}

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

.owner-notification-list {
  display: grid;
  gap: 10px;
}

.owner-notification-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(199, 255, 238, 0.62), #fff 44%);
}

.owner-notification-item.is-unread {
  border-color: rgba(0, 154, 125, 0.34);
  box-shadow: 0 12px 28px rgba(0, 110, 90, 0.09);
}

.checkout-review-card {
  margin-bottom: 18px;
}

.checkout-review-list {
  display: grid;
  gap: 12px;
}

.checkout-review-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 14px;
  border: 1px solid #f0c6c2;
  border-radius: var(--radius);
  background: #fff9f8;
}

.checkout-review-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.checkout-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.checkout-review-grid span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.checkout-review-grid small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.checkout-review-grid strong {
  overflow-wrap: anywhere;
  font-size: 12px;
}

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

.owner-notification-item.is-read {
  background: #fff;
}

.owner-notification-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--green-900);
  background: var(--green-100);
  font-size: 13px;
  font-weight: 950;
}

.owner-notification-item strong {
  display: block;
  font-size: 15px;
}

.inventory-movements-card {
  margin-top: 18px;
}

.inventory-movement-list {
  display: grid;
  gap: 10px;
}

.inventory-movement-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.inventory-movement-item.is-in {
  border-color: rgba(0, 154, 125, 0.26);
  background: linear-gradient(135deg, rgba(199, 255, 238, 0.66), #fff 48%);
}

.inventory-movement-item.is-out {
  border-color: rgba(238, 169, 79, 0.32);
  background: linear-gradient(135deg, rgba(255, 246, 226, 0.82), #fff 48%);
}

.inventory-movement-delta {
  min-width: 54px;
  min-height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--green-900);
  background: var(--green-100);
  font-size: 18px;
  font-weight: 950;
}

.inventory-movement-item.is-out .inventory-movement-delta {
  color: #6a4310;
  background: #fff0d6;
}

.inventory-movement-main {
  min-width: 0;
}

.inventory-movement-main strong,
.inventory-movement-main span,
.inventory-movement-main small,
.inventory-movement-meta strong,
.inventory-movement-meta span {
  display: block;
}

.inventory-movement-main strong {
  color: var(--ink);
  font-size: 15px;
}

.inventory-movement-main span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.inventory-movement-main small {
  color: var(--muted);
  font-size: 12px;
}

.inventory-movement-meta {
  min-width: 110px;
  text-align: right;
}

.inventory-movement-meta strong {
  color: var(--ink);
  font-size: 14px;
}

.inventory-movement-meta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.owner-notification-item p {
  margin: 3px 0 4px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
}

.owner-notification-item small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.owner-notification-side {
  display: grid;
  justify-items: end;
  gap: 8px;
}

@media (max-width: 720px) {
  .owner-notification-item {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .owner-notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .owner-notification-side {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
  }
}

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

.admin-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.admin-card h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

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

.settings-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 12px;
  align-items: end;
}

.settings-switch {
  min-height: 42px;
  margin: 0;
}

.textarea-input {
  min-height: 88px;
  padding-top: 10px;
  padding-bottom: 10px;
  resize: vertical;
  line-height: 1.4;
}

.settings-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.admin-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.admin-card-head h2 {
  margin-bottom: 4px;
}

.admin-card-head p {
  margin: 0;
  color: var(--muted);
}

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

.small-btn {
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--radius);
  font-size: 12px;
}

.table-wrap {
  overflow: auto;
}

.client-metrics {
  margin-top: 0;
}

.clients-owner-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  align-items: start;
}

.client-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 190px;
  gap: 12px;
  margin-bottom: 14px;
}

.client-tools label {
  display: grid;
  gap: 6px;
}

.client-tools label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.sales-filter-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 216, 151, 0.12), transparent 28%),
    white;
}

.entry-filter-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 125, 97, 0.12), transparent 28%),
    white;
}

.closing-filter-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 176, 74, 0.18), transparent 28%),
    white;
}

.sales-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 12px;
  align-items: end;
}

.sales-tools label {
  display: grid;
  gap: 6px;
}

.sales-tools label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.sales-search-field {
  min-width: 0;
  grid-column: span 2;
}

.closing-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 12px;
  align-items: end;
}

.closing-tools label {
  display: grid;
  gap: 6px;
}

.closing-tools label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.closing-shortcuts,
.sales-shortcuts {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

.closing-shortcuts > span,
.sales-shortcuts > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.closing-day-actions,
.sales-day-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
}

.closing-day-actions .btn,
.sales-day-actions .btn {
  min-width: 74px;
}

.btn.active-soft {
  border-color: rgba(0, 181, 129, 0.28);
  color: var(--green-900);
  background: var(--green-50);
}

.sales-metrics {
  margin-top: 0;
}

.sales-owner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.55fr);
  gap: 18px;
  align-items: start;
}

.sales-table-wrap {
  max-height: min(62vh, 680px);
}

.owner-sales-table {
  min-width: 980px;
}

.owner-sales-table th,
.owner-sales-table td {
  vertical-align: middle;
}

.owner-sale-row td:first-child {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.owner-entry-row td:first-child {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.sale-product-summary {
  display: block;
  max-width: 280px;
  overflow: hidden;
  color: #314240;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-sales-detail-panel {
  position: sticky;
  top: 18px;
}

.owner-sale-operations {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.owner-sale-operations h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.door-control-panel {
  margin-top: 18px;
}

.owner-sale-operation-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.owner-sale-operation-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.owner-sale-operation-row strong {
  text-align: right;
}

.owner-receipt-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.owner-sale-danger-zone {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid rgba(217, 45, 32, 0.22);
  border-radius: var(--radius);
  background: #fff5f3;
}

.owner-sale-danger-zone strong,
.owner-sale-danger-zone span {
  display: block;
}

.owner-sale-danger-zone strong {
  font-size: 14px;
}

.owner-sale-danger-zone span {
  margin-top: 3px;
  color: #7a271a;
  font-size: 12px;
  font-weight: 750;
}

.owner-sale-danger-zone.is-disabled {
  border-color: var(--line);
  background: #f7faf9;
}

.owner-sale-danger-zone.is-disabled span {
  color: var(--muted);
}

.owner-sale-danger-zone .btn {
  justify-self: start;
  min-width: 220px;
}

.owner-cancel-reason {
  display: grid;
  gap: 6px;
}

.owner-cancel-reason > span,
.owner-sale-cancel-note > span {
  color: #7a271a;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.owner-cancel-textarea {
  min-height: 82px;
  resize: vertical;
}

.owner-sale-cancel-note {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(217, 45, 32, 0.18);
  border-radius: var(--radius);
  background: #fff8f6;
}

.owner-sale-cancel-note strong {
  color: #451a12;
  overflow-wrap: anywhere;
}

.payment-chip-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.payment-chip {
  min-height: 92px;
  display: grid;
  gap: 5px;
  align-content: center;
  padding: 14px;
  border: 1px solid rgba(0, 125, 97, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 216, 151, 0.12), rgba(255, 255, 255, 0)),
    var(--panel-soft);
}

.payment-chip span {
  color: var(--green-900);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.payment-chip strong {
  font-size: 23px;
}

.payment-chip small {
  color: var(--muted);
  font-weight: 800;
}

.closing-grid {
  margin-bottom: 18px;
}

.closing-total {
  font-size: 24px;
  white-space: nowrap;
}

.closing-breakdown {
  display: grid;
  gap: 9px;
}

.closing-breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.closing-breakdown-row strong {
  display: block;
  color: var(--ink);
}

.closing-breakdown-row span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.closing-breakdown-row b {
  color: var(--green-900);
  font-size: 18px;
  text-align: right;
}

.closing-ticket-list {
  display: grid;
  gap: 10px;
}

.closing-ticket-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 216, 151, 0.08), rgba(255, 255, 255, 0)),
    var(--panel-soft);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.closing-ticket-row:hover,
.closing-ticket-row:focus-visible {
  border-color: rgba(0, 181, 129, 0.35);
  box-shadow: 0 12px 28px rgba(0, 43, 32, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.closing-ticket-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.closing-ticket-main strong {
  overflow-wrap: anywhere;
}

.closing-ticket-main small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.closing-ticket-side {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.closing-ticket-side b {
  color: var(--green-900);
  font-size: 17px;
}

.closing-ticket-side b.muted-total {
  color: var(--muted);
  text-decoration: line-through;
}

.stock-metrics {
  margin-top: 0;
}

.stock-head {
  align-items: center;
}

.owner-stock-card > .stock-head {
  margin-bottom: 14px;
}

.owner-stock-action-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.owner-stock-action-group {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, #ffffff, #f7faf8);
}

.owner-stock-action-group-main {
  grid-column: 1 / -1;
  grid-template-columns: minmax(210px, 0.7fr) minmax(0, 1.3fr);
  grid-template-rows: auto;
  align-items: center;
  border-color: rgba(18, 201, 155, 0.24);
  background:
    radial-gradient(circle at 92% 0%, rgba(18, 201, 155, 0.12), transparent 34%),
    linear-gradient(145deg, #ffffff, #f1fbf7);
}

.owner-stock-action-copy {
  min-width: 0;
}

.owner-stock-action-copy h3,
.owner-stock-action-copy p {
  margin: 0;
}

.owner-stock-action-copy h3 {
  margin-top: 4px;
  font-size: 16px;
}

.owner-stock-action-copy p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
  line-height: 1.4;
}

.owner-stock-action-kicker {
  color: var(--green-700);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.owner-stock-action-buttons {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.owner-stock-action-buttons .btn {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 12px;
}

.owner-stock-primary-action {
  box-shadow: 0 10px 22px rgba(18, 201, 155, 0.2);
}

.owner-stock-system-group {
  background: #fbfcfc;
}

.owner-stock-refresh-action {
  color: var(--muted);
  background: transparent;
}

.owner-stock-save-action.is-idle:disabled {
  color: #71807d;
  border: 1px solid #e1e8e6;
  background: #eef2f1;
  box-shadow: none;
  opacity: 0.56;
}

.owner-stock-save-action.has-changes {
  color: #ffffff;
  background: linear-gradient(135deg, #087d65, #055e51);
  box-shadow: 0 10px 22px rgba(5, 94, 81, 0.2);
}

.stock-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 170px 150px auto auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.owner-permission-banner {
  display: grid;
  gap: 4px;
  margin: -2px 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 176, 74, 0.28);
  border-radius: var(--radius);
  color: #33210a;
  background: #fff7e8;
}

.owner-permission-banner strong {
  font-size: 14px;
}

.owner-permission-banner span {
  color: #6f4d1b;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.35;
}

.stock-toolbar label {
  display: grid;
  gap: 6px;
}

.stock-toolbar label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.stock-category-count {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--green-900);
  font-size: 18px;
  font-weight: 950;
}

.stock-table th,
.stock-table td {
  vertical-align: middle;
}

.stock-product-cell {
  min-width: 420px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.stock-product-id {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--green-900);
  background: linear-gradient(135deg, var(--green-100), #f3fffb);
  border: 1px solid rgba(0, 125, 97, 0.18);
  font-size: 12px;
  font-weight: 950;
}

.stock-product-summary {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.stock-product-summary strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.stock-product-meta span {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--panel-soft);
}

.stock-promo-tag,
.stock-open-badge {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--green-900);
  background: var(--green-100);
  font-size: 11px;
  font-weight: 950;
}

.stock-open-badge {
  color: #4b5b5d;
  background: #edf4f2;
}

.stock-number {
  font-size: 16px;
  font-weight: 950;
  white-space: nowrap;
}

.stock-missing-cost {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  color: #8a4b00;
  background: #fff3dc;
  font-size: 11px;
  font-weight: 950;
}

.stock-min-note {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.stock-row-paused {
  opacity: 0.68;
}

.stock-row-paused .stock-product-summary strong {
  color: #526164;
}

.stock-actions {
  display: flex;
  gap: 7px;
  justify-content: flex-end;
}

.icon-action {
  min-height: 32px;
  padding: 0 10px;
  border-radius: var(--radius);
  color: var(--green-900);
  background: var(--green-50);
  font-size: 12px;
  font-weight: 900;
}

.icon-action.danger {
  color: #7a180f;
  background: #fee4e2;
}

.owner-save-state.dirty {
  color: #7a4100;
}

.owner-selection-state {
  align-self: end;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius);
  color: var(--green-900);
  background: var(--green-50);
  font-size: 12px;
  font-weight: 950;
}

.business-table {
  min-width: 920px;
}

.business-table td > strong,
.business-table td > span {
  display: block;
}

.business-note {
  max-width: 260px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.compact-modal {
  width: min(760px, 100%);
}

.single-column-modal {
  grid-template-columns: 1fr;
}

.business-hint {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(0, 125, 97, 0.18);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.business-hint strong {
  color: var(--green-900);
  font-size: 14px;
}

.business-hint span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.product-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding:
    max(24px, env(safe-area-inset-top))
    max(24px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(24px, env(safe-area-inset-left));
  background: rgba(4, 12, 13, 0.62);
  backdrop-filter: blur(8px);
  overscroll-behavior: contain;
  overflow: hidden;
}

body.owner-modal-open {
  overflow: hidden;
}

.product-modal {
  min-width: 0;
  width: min(940px, 100%);
  max-height: min(88vh, 820px);
  max-height: min(88dvh, 820px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(0, 125, 97, 0.24);
  border-radius: 16px;
  background: white;
  box-shadow: 0 24px 80px rgba(0, 20, 16, 0.35);
}

.product-modal-head {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(0, 216, 151, 0.12), rgba(255, 255, 255, 0)),
    white;
}

.product-modal-head h3 {
  margin: 3px 0 4px;
  font-size: 28px;
}

.product-modal-head > div {
  min-width: 0;
}

.product-modal-head p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.modal-kicker {
  color: var(--green-700);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.owner-modal-close {
  flex: 0 0 auto;
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(0, 74, 57, 0.22);
  border-radius: 999px;
  color: var(--green-900);
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 52, 40, 0.12);
  font: inherit;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.owner-modal-close span {
  transform: translateY(-1px);
}

.owner-modal-close:hover:not(:disabled) {
  border-color: var(--green-700);
  background: var(--panel-soft);
  box-shadow: 0 6px 18px rgba(0, 52, 40, 0.18);
  transform: translateY(-1px);
}

.owner-modal-close:focus-visible {
  outline: 3px solid rgba(0, 166, 122, 0.34);
  outline-offset: 3px;
}

.owner-modal-close:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
}

.owner-modal-confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 12, 13, 0.7);
  backdrop-filter: blur(7px);
}

.owner-modal-confirm {
  width: min(440px, 100%);
  padding: 26px;
  border: 1px solid rgba(0, 125, 97, 0.24);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 28px 90px rgba(0, 20, 16, 0.4);
}

.owner-modal-confirm h3 {
  margin: 0 0 8px;
  color: var(--green-900);
  font-size: 24px;
}

.owner-modal-confirm p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.owner-modal-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.product-modal-body {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  padding: 22px 24px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.inventory-operation-modal {
  width: min(860px, 100%);
}

.inventory-operation-modal-body {
  align-content: start;
}

.owner-submodal {
  width: min(620px, 100%);
  border-color: rgba(0, 125, 97, 0.38);
  box-shadow: 0 30px 100px rgba(0, 20, 16, 0.48);
}

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

.owner-modal-section {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.owner-modal-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.owner-modal-section h4,
.owner-modal-section-heading {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--green-700);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.owner-modal-field-wide,
.owner-modal-section [data-owner-stock-receipt-lines],
.owner-modal-section .business-hint {
  grid-column: 1 / -1;
}

.owner-modal-section-lots > .small-btn {
  justify-self: start;
}

.product-modal-grid .field:first-child,
.product-modal-grid .owner-switch,
.product-image-upload {
  grid-column: 1 / -1;
}

.product-modal-grid .input[readonly] {
  color: var(--muted);
  background: var(--panel-soft);
}

.owner-switch {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.owner-switch input {
  width: 20px;
  height: 20px;
  accent-color: var(--green-600);
}

.owner-switch span {
  display: grid;
  gap: 2px;
}

.owner-switch small {
  color: var(--muted);
  font-weight: 700;
}

.product-image-upload {
  min-height: 116px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 16px;
  border: 1px dashed rgba(0, 125, 97, 0.32);
  border-radius: var(--radius);
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(0, 216, 151, 0.08), rgba(255, 255, 255, 0)),
    #f8fbfa;
  cursor: pointer;
}

.product-image-upload input[type="file"] {
  width: 100%;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.product-image-upload span {
  color: var(--green-700);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.product-image-upload strong {
  font-size: 18px;
}

.product-image-upload small {
  color: var(--muted);
  font-weight: 750;
}

.product-preview {
  align-self: start;
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(0, 125, 97, 0.18);
  border-radius: 14px;
  background:
    radial-gradient(circle at 90% 0%, rgba(0, 216, 151, 0.18), transparent 34%),
    var(--panel-soft);
}

.product-preview-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.product-preview-token {
  width: 64px;
  height: 64px;
}

.product-preview strong {
  font-size: 19px;
  line-height: 1.15;
}

.product-preview small {
  color: var(--muted);
  font-weight: 800;
}

.product-preview-price {
  color: var(--green-900);
  font-size: 26px;
  font-weight: 950;
}

.product-preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-modal-actions {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 24px 24px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.purchase-insights-grid {
  margin-top: 18px;
}

.compact-head {
  margin-bottom: 12px;
}

.insight-list {
  display: grid;
  gap: 12px;
}

.insight-row {
  display: grid;
  gap: 8px;
}

.insight-row strong,
.insight-row span {
  display: block;
}

.insight-row strong {
  font-size: 14px;
}

.insight-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.insight-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7f1ee;
}

.insight-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-700), var(--green-500));
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.clients-table td {
  vertical-align: top;
}

.client-row {
  cursor: pointer;
  outline: none;
}

.client-row:hover,
.client-row:focus,
.client-row.active {
  background: var(--panel-soft);
}

.client-row.active {
  box-shadow: inset 3px 0 0 var(--green-500);
}

.client-row td:first-child strong,
.clients-table td strong {
  display: block;
}

.client-muted {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: normal;
}

.client-detail-panel {
  position: sticky;
  top: 18px;
}

.client-profile-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.client-profile-head h2 {
  margin: 0 0 4px;
}

.client-profile-head p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.client-avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(145deg, var(--green-700), var(--green-900));
  font-size: 20px;
  font-weight: 950;
  border: 2px solid rgba(0, 216, 151, 0.35);
}

.client-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.client-summary-grid div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.client-summary-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.client-summary-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
}

.client-detail-list {
  margin-bottom: 16px;
}

.client-management-actions {
  display: grid;
  gap: 9px;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf0;
}

.client-management-actions p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.client-document-box {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.client-document-box img,
.client-document-placeholder {
  width: 74px;
  aspect-ratio: 1.58;
  border-radius: 6px;
  object-fit: cover;
}

.client-document-placeholder {
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, var(--ink), #263133);
  font-size: 16px;
  font-weight: 950;
  letter-spacing: 0;
}

.client-document-box strong,
.client-document-box p,
.client-document-box span {
  display: block;
}

.client-document-box p {
  margin: 4px 0;
  font-weight: 850;
}

.client-document-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.client-section-title h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.compact-log .log-item {
  padding: 10px;
}

td .input {
  width: 110px;
  min-height: 36px;
}

.stock-low {
  color: var(--danger);
  font-weight: 900;
}

.chart {
  height: 220px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 9px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.chart-bar {
  min-height: 18px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--green-500), var(--green-700));
}

.log-list {
  display: grid;
  gap: 10px;
}

.log-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.sale-log-button {
  width: 100%;
  border: 1px solid transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.sale-log-button.active {
  border-color: rgba(0, 181, 129, 0.34);
  background: #f1fff9;
  box-shadow: inset 4px 0 0 var(--green-500);
}

.sale-log-button:focus-visible {
  outline: 3px solid rgba(0, 181, 129, 0.24);
  outline-offset: 2px;
}

.log-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.sale-log-item small {
  display: block;
  margin-top: 6px;
  color: #758382;
  font-size: 12px;
  font-weight: 750;
}

.owner-sale-detail {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

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

.owner-sale-detail-head h3 {
  margin: 2px 0 3px;
  font-size: 18px;
}

.owner-sale-detail-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.owner-sale-detail-head > strong {
  font-size: 22px;
  white-space: nowrap;
}

.owner-sale-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.owner-sale-summary-grid div {
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbfa;
}

.owner-sale-summary-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.owner-sale-summary-grid strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.owner-sale-lines {
  display: grid;
  gap: 8px;
}

.owner-sale-lines > div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.owner-sale-product-visual {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 125, 97, 0.16);
  border-radius: var(--radius);
  color: var(--green-900);
  background: var(--green-50);
  font-size: 11px;
  font-weight: 950;
}

.owner-sale-lines small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

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

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

.owner-save-state {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.owner-state-card {
  min-height: 280px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
}

.owner-state-card p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.system-hero-card {
  margin-bottom: 18px;
}

.system-score {
  min-width: 112px;
  padding: 12px 14px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid rgba(8, 211, 161, 0.28);
  background: rgba(8, 211, 161, 0.12);
}

.system-score strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.system-score span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.system-score.warn {
  border-color: rgba(242, 160, 82, 0.36);
  background: rgba(242, 160, 82, 0.14);
}

.system-score.danger {
  border-color: rgba(229, 57, 53, 0.32);
  background: rgba(229, 57, 53, 0.1);
}

.system-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.system-checklist-card {
  margin-bottom: 18px;
}

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

.system-check {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 94px;
  padding: 13px;
  border: 1px solid rgba(8, 211, 161, 0.24);
  border-radius: var(--radius);
  background: rgba(8, 211, 161, 0.08);
}

.system-check.warn {
  border-color: rgba(242, 160, 82, 0.34);
  background: rgba(242, 160, 82, 0.12);
}

.system-check.danger {
  border-color: rgba(229, 57, 53, 0.26);
  background: rgba(229, 57, 53, 0.08);
}

.system-check-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #063f35;
  background: #bdfff0;
  font-size: 20px;
  font-weight: 950;
}

.system-check.warn .system-check-icon {
  color: #563707;
  background: #ffe2b7;
}

.system-check.danger .system-check-icon {
  color: #5f1111;
  background: #ffd2d2;
}

.system-check strong {
  display: block;
  margin-bottom: 3px;
}

.system-check p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.system-check small {
  display: inline-flex;
  margin-top: 7px;
  color: var(--green-700);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.system-check.warn small {
  color: #9a641b;
}

.system-check.danger small {
  color: var(--danger);
}

.system-detail-grid {
  align-items: start;
  margin-bottom: 18px;
}

.system-detail-list {
  display: grid;
  gap: 0;
}

.system-detail-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.7fr) minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.system-detail-row:first-child {
  border-top: 0;
}

.system-detail-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.system-detail-row strong {
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
}

.system-detail-row.ok strong {
  color: var(--green-700);
}

.system-detail-row.warn strong {
  color: #a5671e;
}

.system-detail-row.danger strong {
  color: var(--danger);
}

.system-event-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.system-event-list li {
  display: grid;
  gap: 4px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 18, 17, 0.03);
}

.system-event-list li > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.system-event-list span,
.system-event-list small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.chart-column {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  gap: 8px;
}

.chart-column small {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.chart-column .chart-bar {
  width: 100%;
}

.product-name-input {
  width: 190px;
}

.owner-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
}

.empty-state {
  padding: 28px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.mobile-owner-link {
  display: none;
}

@media (max-width: 860px) {
  .auth-card {
    grid-template-columns: 1fr;
  }

  .auth-hero {
    min-height: 380px;
  }

  .auth-hero-copy {
    margin-top: 76px;
  }

  .auth-form {
    padding: 28px;
  }

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

  .admin-auth-hero {
    min-height: 360px;
    padding: calc(env(safe-area-inset-top) + 34px) 26px 32px;
  }

  .admin-auth-panel {
    padding: 22px;
  }

  .owner-shell {
    grid-template-columns: 1fr;
    min-height: 100svh;
    background: #eef5f0;
  }

  .owner-sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: block;
    height: auto;
    max-height: none;
    min-width: 0;
    max-width: 100vw;
    padding: calc(env(safe-area-inset-top) + 10px) 12px 10px;
    overflow: hidden;
    border-right: 0;
    border-bottom: 1px solid rgba(0, 216, 151, 0.22);
    background:
      linear-gradient(180deg, rgba(7, 17, 20, 0.98), rgba(7, 17, 20, 0.92)),
      url("./assets/boxmarket-store.jpg") center / cover;
    box-shadow: 0 12px 26px rgba(8, 18, 22, 0.12);
  }

  .owner-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
  }

  .owner-brand .owner-logo {
    width: 132px;
    max-width: 42vw;
  }

  .owner-brand::after {
    content: "Admin";
    padding: 6px 10px;
    border: 1px solid rgba(157, 244, 220, 0.32);
    border-radius: 999px;
    color: #b8ffe8;
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .owner-nav {
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    max-width: 100%;
    min-width: 0;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .owner-nav::-webkit-scrollbar {
    display: none;
  }

  .owner-nav button {
    flex: 0 0 auto;
    min-height: 38px;
    min-width: max-content;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .owner-nav button.active,
  .owner-nav button:hover {
    color: #06231e;
    background: #b8ffe8;
    border-color: #b8ffe8;
  }

  .owner-main {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    padding: 14px 12px calc(env(safe-area-inset-bottom) + 18px);
  }

  .owner-topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid rgba(216, 227, 223, 0.86);
    border-radius: var(--radius);
    background: white;
  }

  .owner-topbar h1 {
    font-size: 24px;
  }

  .owner-notification-item {
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
  }

  .owner-notification-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .owner-notification-side {
    grid-column: 2;
    justify-items: start;
    grid-auto-flow: column;
    align-items: center;
  }

  .owner-topbar p {
    font-size: 13px;
    line-height: 1.32;
  }

  .owner-topbar .role-switch {
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .owner-topbar .role-switch button {
    min-height: 38px;
  }

  .admin-card {
    padding: 14px;
    border-radius: 10px;
  }

  .admin-card-head {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .client-head-actions {
    justify-content: stretch;
  }

  .client-head-actions .btn,
  .admin-card-head .btn {
    width: 100%;
  }

  .metric-grid,
  .owner-grid,
  .owner-orders-summary-grid,
  .owner-order-detail-summary {
    grid-template-columns: 1fr;
  }

  .settings-inline {
    grid-template-columns: 1fr;
  }

  .system-check-grid {
    grid-template-columns: 1fr;
  }

  .system-check {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .system-check .btn {
    grid-column: 2;
    width: fit-content;
  }

  .system-score {
    width: fit-content;
  }

  .system-event-list li > div {
    flex-direction: column;
    gap: 2px;
  }

  .dashboard-filter-head {
    flex-direction: column;
  }

  .dashboard-filters {
    grid-template-columns: 1fr;
  }

  .clients-owner-grid,
  .client-tools,
  .closing-tools,
  .sales-owner-grid,
  .sales-tools,
  .stock-toolbar {
    grid-template-columns: 1fr;
  }

  .closing-day-actions {
    justify-content: flex-start;
  }

  .sales-search-field {
    grid-column: auto;
  }

  .closing-shortcuts,
  .sales-shortcuts {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .closing-ticket-side {
    justify-items: start;
  }

  .client-detail-panel,
  .owner-sales-detail-panel,
  .owner-order-detail-panel {
    position: static;
  }

  .owner-order-status-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .owner-order-status-chip {
    min-width: max-content;
  }

  .owner-order-whatsapp-card {
    align-items: stretch;
    flex-direction: column;
  }

  .stock-head {
    align-items: flex-start;
  }

  .owner-stock-action-panel {
    grid-template-columns: 1fr;
  }

  .owner-stock-action-group-main {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .owner-stock-action-group {
    gap: 12px;
    padding: 14px;
  }

  .owner-stock-action-buttons .btn {
    min-height: 46px;
  }

  .stock-product-cell {
    min-width: 300px;
  }

  .table-wrap {
    margin-right: -4px;
    margin-left: -4px;
    padding: 0 4px 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-wrap table {
    min-width: 680px;
  }

  .owner-sales-table {
    min-width: 760px;
  }

  .stock-table {
    min-width: 720px;
  }

  .clients-table {
    min-width: 720px;
  }

  .sales-table-wrap {
    max-height: none;
  }

  .stock-actions {
    justify-content: flex-start;
  }

  .product-modal-backdrop {
    align-items: end;
    padding:
      max(10px, env(safe-area-inset-top))
      max(10px, env(safe-area-inset-right))
      max(10px, env(safe-area-inset-bottom))
      max(10px, env(safe-area-inset-left));
  }

  .product-modal {
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - max(20px, env(safe-area-inset-top)) - max(20px, env(safe-area-inset-bottom)));
    border-radius: 14px;
  }

  .product-modal-head,
  .product-modal-body,
  .product-modal-actions {
    padding-left: 16px;
    padding-right: 16px;
  }

  .product-modal-body,
  .product-modal-grid,
  .owner-modal-section {
    grid-template-columns: 1fr;
  }

  .product-modal-actions {
    flex-direction: column-reverse;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }

  .product-modal-actions .btn {
    width: 100%;
    min-height: 46px;
  }

  .product-modal-head h3 {
    font-size: 23px;
  }

  .owner-modal-close {
    width: 48px;
    height: 48px;
  }

  .owner-modal-confirm {
    padding: 22px 18px 18px;
  }

  .owner-modal-confirm-actions {
    flex-direction: column-reverse;
  }

  .owner-modal-confirm-actions .btn {
    width: 100%;
    min-height: 46px;
  }

  .owner-sale-danger-zone {
    grid-template-columns: 1fr;
  }

  .owner-sale-danger-zone .btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .auth-page {
    display: block;
    padding: 0;
    background: white;
  }

  .auth-card {
    min-height: 100vh;
    border-radius: 0;
  }

  .auth-hero {
    min-height: 300px;
    padding: calc(env(safe-area-inset-top) + 28px) 26px 26px;
  }

  .auth-hero h1 {
    font-size: 42px;
  }

  .auth-hero p {
    font-size: 17px;
  }

	  .auth-form {
	    padding: 26px;
	  }

	  .purchase-card,
	  .purchase-detail-hero,
	  .purchase-detail-actions {
	    grid-template-columns: 1fr;
	  }

	  .purchase-card-actions {
      grid-template-columns: 1fr;
	    justify-items: stretch;
	  }

    .purchase-card-actions .badge {
      justify-content: center;
    }

	  .receipt-meta-grid,
	  .owner-sale-summary-grid {
	    grid-template-columns: 1fr;
	  }

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

	  .purchase-detail-total {
	    font-size: 24px;
	  }

	  .admin-auth-page {
	    min-height: 100svh;
	    background: white;
  }

  .admin-auth-hero {
    min-height: 330px;
  }

  .admin-auth-hero h1 {
    font-size: 38px;
  }

  .admin-auth-panel {
    padding: 0;
  }

  .admin-auth-card {
    min-height: calc(100svh - 330px);
    width: 100%;
    border-radius: 0;
    box-shadow: none;
  }

  .owner-main {
    padding-right: 10px;
    padding-left: 10px;
  }

  .owner-topbar h1 {
    font-size: 22px;
  }

  .owner-nav button {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }

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

  .metric-card {
    min-width: 0;
    padding: 12px;
  }

  .metric-card span {
    font-size: 11px;
    line-height: 1.2;
  }

  .metric-card strong {
    margin-top: 7px;
    font-size: 24px;
    line-height: 1.05;
  }

  .dashboard-filter-card {
    padding: 14px;
  }

  .dashboard-filters {
    gap: 10px;
  }

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

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

  .mobile-owner-link {
    display: inline-flex;
  }

  .toast {
    bottom: 116px;
  }

  .update-banner {
    right: 12px;
    bottom: calc(env(safe-area-inset-bottom) + 12px);
    width: calc(100vw - 24px);
    grid-template-columns: 1fr;
  }

  .update-banner .btn {
    width: 100%;
  }
}

/* Client design system completion: menu, checkout and payment return */
.ds-catalog-head h2,
.ds-catalog-head .ds-count {
  color: var(--ds-ink) !important;
}

.menu-screen.pattern-bg {
  min-height: calc(100vh - 92px);
  color: var(--ds-ink);
  background: var(--ds-soft) !important;
}

.menu-screen.pattern-bg::before {
  display: none;
}

.menu-screen .menu-profile {
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-lg);
  color: var(--ds-ink);
  background: linear-gradient(145deg, #eaf8ef, #ffffff) !important;
  box-shadow: var(--ds-shadow-card);
}

.menu-screen .menu-profile .avatar {
  color: #fff;
  background: var(--ds-primary);
  box-shadow: none;
}

.menu-screen .menu-profile p {
  color: var(--ds-muted);
}

.menu-screen .menu-group-title {
  color: var(--ds-primary-dark);
  text-shadow: none;
}

.menu-screen .menu-item {
  min-height: 60px;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-md);
  color: var(--ds-ink);
  background: var(--ds-surface);
  box-shadow: var(--ds-shadow-card);
}

.menu-screen .menu-item > span:last-child {
  color: var(--ds-primary-dark);
}

.menu-screen .menu-icon {
  border: 0;
  border-radius: var(--ds-radius-sm);
  color: var(--ds-primary-dark);
  background: #e6f5eb;
}

.cart-page .section-title h2,
.cart-page .section-title p,
.cart-detail-head,
.cart-detail-head strong {
  color: var(--ds-ink) !important;
}

.cart-page .section-title p {
  opacity: 1;
}

.cart-page .checkout-box,
.cart-page .payment-pending-panel .payment-state-card,
.cart-page .white-card {
  border-color: var(--ds-line);
  border-radius: var(--ds-radius-md);
  background: var(--ds-surface);
  box-shadow: var(--ds-shadow-card);
}

.cart-page .checkout-box h3,
.cart-page .checkout-box .tiny-note,
.cart-page .checkout-box .data-row,
.cart-page .checkout-box .data-row strong,
.cart-page .checkout-box .data-row span {
  color: var(--ds-ink);
}

.cart-page .payment-option {
  border-color: var(--ds-line);
  border-radius: var(--ds-radius-md);
  background: var(--ds-soft);
}

.cart-page .payment-option:has(input:checked) {
  border-color: var(--ds-primary);
  background: #eaf8ef;
  box-shadow: 0 0 0 2px rgba(85, 185, 130, .14);
}

.cart-page .payment-option small,
.cart-page .payment-state-card span,
.cart-page .payment-state-card small {
  color: var(--ds-muted);
}

.payment-return-card {
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-lg);
  color: var(--ds-ink);
  background: var(--ds-surface);
  box-shadow: var(--ds-shadow-float);
}

.payment-return-card .quick-login-copy h1,
.payment-return-card .quick-login-copy p {
  color: var(--ds-ink);
}

.payment-return-card .quick-login-copy p,
.payment-return-card .tiny-note {
  color: var(--ds-muted);
}

.payment-return-card .payment-return-note {
  border-color: var(--ds-line);
  border-radius: var(--ds-radius-md);
  background: var(--ds-soft);
}

.payment-return-card .payment-return-note strong,
.payment-return-card .payment-return-note span {
  color: var(--ds-ink);
}

.payment-return-card .payment-return-icon.is-approved {
  background: var(--ds-primary);
}

/* Product cards: clean white image area and readable details */
.ds-product-image,
.ds-product-image.no-image {
  background: #ffffff !important;
}

.ds-product-image img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 8px;
  object-fit: contain;
  background: #ffffff;
}

.ds-product-info .ds-eyebrow,
.ds-product-info h3,
.ds-product-info p {
  color: var(--ds-ink) !important;
}

.ds-product-info h3 {
  font-weight: 850;
}

/* Client sign-in: use the same light BoxMarket visual language */
.quick-auth-page {
  padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
  color: var(--ds-ink);
  background: var(--ds-soft) !important;
}

.quick-auth-page .quick-login-card {
  width: min(100%, 440px);
  min-height: auto;
  padding: 28px 24px 24px;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-lg);
  color: var(--ds-ink);
  background: var(--ds-surface) !important;
  box-shadow: var(--ds-shadow-float);
  backdrop-filter: none;
}

.quick-auth-page .language-chip {
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  color: var(--ds-primary-dark);
  background: var(--ds-soft);
}

.quick-auth-page .quick-login-brand img,
.quick-auth-page .quick-login-brand svg {
  max-width: 170px;
}

.quick-auth-page .quick-login-copy {
  margin: 20px 0 22px;
}

.quick-auth-page .quick-login-copy h1,
.quick-auth-page .quick-login-copy p {
  color: var(--ds-ink);
}

.quick-auth-page .quick-login-copy h1 {
  font-size: 30px;
  font-weight: 900;
}

.quick-auth-page .quick-login-copy p {
  color: var(--ds-muted);
  font-size: 15px;
}

.quick-auth-page .social-stack {
  gap: 10px;
}

.quick-auth-page .social-btn {
  width: 100%;
  min-height: 54px;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-md);
  box-shadow: var(--ds-shadow-card);
}

.quick-auth-page .social-btn.apple,
.quick-auth-page .social-btn.quick {
  color: #ffffff;
  background: var(--ds-ink) !important;
}

.quick-auth-page .social-btn.google {
  color: var(--ds-ink);
  background: var(--ds-surface) !important;
}

.quick-auth-page .social-text {
  padding: 0 12px;
}

.quick-auth-page .social-text strong {
  font-size: 14px;
  font-weight: 850;
}

.quick-auth-page .social-text small,
.quick-auth-page .social-btn.google .social-text small {
  color: var(--ds-muted);
}

.quick-auth-page .social-btn.apple .social-text small,
.quick-auth-page .social-btn.quick .social-text small {
  color: rgba(255, 255, 255, .72);
}

.quick-auth-page .auth-last-chip {
  color: var(--ds-primary-dark);
  background: #e6f5eb;
}

.quick-auth-page .login-help-action {
  margin-top: 20px;
  color: var(--ds-primary-dark);
  background: transparent;
  box-shadow: none;
}

.quick-auth-page .installed-auth-note,
.quick-auth-page .tiny-note {
  color: var(--ds-muted);
}

.quick-auth-page .quick-auth-form {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--ds-line);
}

.quick-auth-page .quick-auth-form h2,
.quick-auth-page .quick-auth-form p,
.quick-auth-page .quick-auth-form .field span {
  color: var(--ds-ink);
}

.quick-auth-page .quick-auth-form p {
  color: var(--ds-muted);
}

.quick-auth-page .quick-auth-form .input {
  color: var(--ds-ink);
  border-color: var(--ds-line);
  border-radius: var(--ds-radius-md);
  background: var(--ds-surface);
}

.quick-auth-page .quick-auth-form .btn,
.quick-auth-page .quick-auth-form .btn.full {
  color: #ffffff;
  border-radius: var(--ds-radius-pill);
  background: var(--ds-primary);
}

/* Cart composition aligned with the new grocery-app reference */
.ds-cart-page {
  max-width: 760px;
  padding-top: 20px;
  color: var(--ds-ink);
}

.ds-cart-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.ds-cart-header h1 {
  margin: 5px 0 4px;
  color: var(--ds-ink);
  font-size: clamp(30px, 7vw, 40px);
  letter-spacing: -.04em;
}

.ds-cart-header p {
  margin: 0;
  color: var(--ds-muted);
  font-size: 14px;
}

.ds-cart-count {
  padding: 8px 12px;
  border-radius: var(--ds-radius-pill);
  color: var(--ds-primary-dark);
  background: #e6f5eb;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.ds-cart-section {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

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

.ds-cart-section-heading h2,
.ds-cart-section-heading strong {
  margin: 0;
  color: var(--ds-ink) !important;
}

.ds-cart-section-heading h2 { font-size: 20px; }
.ds-cart-section-heading strong { color: var(--ds-muted) !important; font-size: 12px; }

.ds-cart-items {
  display: grid;
  gap: 10px;
}

.ds-cart-item {
  min-height: 92px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--ds-line) !important;
  border-radius: var(--ds-radius-md) !important;
  color: var(--ds-ink) !important;
  background: var(--ds-surface) !important;
  box-shadow: var(--ds-shadow-card) !important;
}

.ds-cart-image {
  width: 64px;
  height: 64px;
  border-radius: var(--ds-radius-sm) !important;
  background: #fff !important;
}

.ds-cart-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ds-cart-copy,
.ds-cart-line-end {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.ds-cart-copy > strong,
.ds-cart-line-end > strong {
  color: var(--ds-ink) !important;
  font-size: 15px;
  font-weight: 850;
}

.ds-cart-copy [data-cart-line-meta] span {
  color: var(--ds-muted) !important;
  font-size: 12px;
}

.ds-cart-line-end {
  justify-items: end;
}

.ds-cart-line-end .cart-quantity {
  margin: 0;
}

.ds-checkout-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--ds-line) !important;
  border-radius: var(--ds-radius-lg) !important;
  background: var(--ds-surface) !important;
  box-shadow: var(--ds-shadow-card) !important;
}

.ds-checkout-heading h2 {
  margin: 5px 0 0;
  color: var(--ds-ink);
  font-size: 24px;
}

.ds-checkout-card .payment-options { gap: 10px; }
.ds-checkout-card .payment-option { border-radius: var(--ds-radius-md); }
.ds-checkout-total { padding-top: 4px; }
.ds-checkout-button { min-height: 52px; border-radius: var(--ds-radius-pill); }

@media (max-width: 420px) {
  .ds-cart-item { grid-template-columns: 54px minmax(0, 1fr); }
  .ds-cart-image { width: 54px; height: 54px; }
  .ds-cart-line-end { grid-column: 2; grid-template-columns: 1fr auto; align-items: center; justify-items: start; }
  .ds-cart-line-end > strong { justify-self: end; }
}

/* In-store purchase flow aligned with the new client design system */
.ds-scan-page {
  color: var(--ds-ink);
  background: var(--ds-soft);
}

.ds-scan-page > .section-title h2,
.ds-scan-page > .section-title p {
  color: var(--ds-ink) !important;
}

.ds-scan-page > .section-title p {
  color: var(--ds-muted) !important;
}

.ds-scan-page .scanner-card {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-surface);
  box-shadow: var(--ds-shadow-card);
}

.ds-scan-page .scan-label-row {
  margin: 0;
  padding: 16px;
  color: #fff;
  background: var(--ds-ink);
}

.ds-scan-page .scan-label-row strong,
.ds-scan-page .scan-label-row small {
  color: #fff;
}

.ds-scan-page .scan-label-row small { opacity: .72; }
.ds-scan-page .camera-box { margin: 0; border-radius: 0; background: #20363a; }
.ds-scan-page .scan-frame { border-color: var(--ds-primary); box-shadow: 0 0 0 999px rgba(8, 24, 26, .42); }
.ds-scan-page .manual-row { padding: 14px; margin: 0; background: var(--ds-surface); }
.ds-scan-page .manual-row .input { border-color: var(--ds-line); border-radius: var(--ds-radius-pill); }
.ds-scan-page .manual-row .btn { border-radius: var(--ds-radius-pill); color: #fff; background: var(--ds-primary); }

.ds-scan-cart-panel {
  margin-top: 14px;
  border: 1px solid var(--ds-line) !important;
  border-radius: var(--ds-radius-lg) !important;
  color: var(--ds-ink);
  background: var(--ds-surface) !important;
  box-shadow: var(--ds-shadow-card) !important;
}

.ds-scan-cart-panel .scan-cart-head {
  color: var(--ds-ink);
}

.ds-scan-cart-panel .scan-cart-head span,
.ds-scan-cart-panel .scan-cart-head strong,
.ds-scan-cart-panel .scan-subtotal span,
.ds-scan-cart-panel .scan-subtotal strong {
  color: var(--ds-ink) !important;
}

.ds-scan-cart-panel .scan-cart-total-chip,
.ds-scan-cart-panel .scan-add-confirm,
.ds-scan-cart-panel .scan-cart-item {
  border-color: var(--ds-line);
  border-radius: var(--ds-radius-md);
  background: var(--ds-soft);
}

.ds-scan-cart-panel .scan-product-main strong,
.ds-scan-cart-panel .scan-product-main span,
.ds-scan-cart-panel .scan-product-side strong {
  color: var(--ds-ink);
}

.ds-scan-cart-panel .scan-product-main span { color: var(--ds-muted); }
.ds-scan-cart-panel .scan-qty-controls { color: var(--ds-ink); }
.ds-scan-cart-panel .scan-plus,
.ds-scan-cart-panel .scan-minus { border-radius: 50%; }

.ds-scan-page .scan-cart-actions {
  border-radius: var(--ds-radius-lg);
  background: var(--ds-ink);
  box-shadow: var(--ds-shadow-float);
}

.ds-scan-page .checkout-pill {
  color: #fff;
  border-radius: var(--ds-radius-pill);
  background: var(--ds-primary);
}

.ds-scan-page .checkout-pill:disabled {
  color: rgba(255, 255, 255, .56);
  background: rgba(255, 255, 255, .14);
}

.quick-auth-page {
  min-height: 100svh;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(5, 8, 9, 0.58), rgba(5, 8, 9, 0.92)),
    url("./assets/boxmarket-store.jpg") center / cover fixed;
  color: white;
}

.quick-login-card {
  position: relative;
  width: min(100%, 440px);
  min-height: min(780px, calc(100svh - 40px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(env(safe-area-inset-top) + 22px) 18px calc(env(safe-area-inset-bottom) + 18px);
  border: 1px solid rgba(0, 216, 151, 0.28);
  border-radius: var(--radius);
  background: rgba(8, 13, 15, 0.72);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(14px);
}

.language-chip {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 12px);
  right: 8px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: rgba(8, 13, 15, 0.42);
  font-size: 24px;
  font-weight: 900;
}

.quick-login-brand {
  text-align: center;
}

.quick-login-copy {
  margin: 24px 0 18px;
  text-align: center;
}

.quick-login-copy h1 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.05;
}

.quick-login-copy p {
  max-width: 390px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  line-height: 1.28;
}

.public-app-page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px;
  color: white;
}

.public-app-page::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 50% 24%, rgba(16, 217, 167, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(5, 8, 9, 0.14), rgba(5, 8, 9, 0.76));
  pointer-events: none;
}

.public-app-card {
  width: min(100%, 520px);
  display: grid;
  gap: 24px;
  padding: 32px 24px;
  border: 1px solid rgba(16, 217, 167, 0.32);
  border-radius: var(--radius);
  background: rgba(6, 13, 15, 0.82);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
}

.public-app-brand {
  display: grid;
  justify-items: center;
}

.public-app-logo {
  width: min(100%, 330px);
  aspect-ratio: 620 / 330;
  object-fit: cover;
  border: 1px solid rgba(16, 217, 167, 0.38);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
}

.public-app-copy {
  display: grid;
  gap: 8px;
  text-align: center;
}

.public-app-copy span {
  color: #9df4dc;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.public-app-copy h1 {
  margin: 0;
  font-size: clamp(34px, 7vw, 54px);
  line-height: 0.95;
  letter-spacing: 0;
}

.public-app-copy p {
  max-width: 430px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.35;
}

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

.store-download-badge {
  min-height: 62px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: white;
  background: #040708;
  text-align: left;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.store-download-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}

.store-download-icon svg {
  width: 30px;
  height: 30px;
}

.play-store-icon svg {
  width: 32px;
  height: 32px;
}

.store-download-badge small,
.store-download-badge strong {
  display: block;
}

.store-download-badge small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.store-download-badge strong {
  margin-top: 4px;
  color: white;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.payment-return-card {
  align-items: stretch;
  gap: 14px;
}

.payment-return-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin: 16px auto 0;
  border-radius: 24px;
  color: white;
  font-size: 34px;
  font-weight: 950;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.payment-return-icon.is-approved {
  background: linear-gradient(135deg, #10d9a7, #08a879);
}

.payment-return-icon.is-pending {
  background: linear-gradient(135deg, #f5b84c, #d97706);
}

.payment-return-icon.is-failed {
  background: linear-gradient(135deg, #fb7185, #be123c);
}

.payment-return-note {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid rgba(16, 217, 167, 0.24);
  border-radius: var(--radius);
  background: rgba(234, 255, 248, 0.08);
}

.payment-return-note strong {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9df4dc;
}

.payment-return-note span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.36;
}

.social-stack {
  display: grid;
  gap: 9px;
}

.social-btn {
  min-height: 48px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 0;
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  text-align: left;
  border: 1px solid rgba(0, 216, 151, 0.18);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.24);
}

.social-btn strong {
  font-size: 16px;
  font-weight: 750;
  white-space: normal;
}

.social-text {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 0 12px;
}

.social-text small {
  min-width: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  font-weight: 760;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-last-chip {
  margin-right: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #06231e;
  background: #b8ffe8;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.social-btn.last-used {
  border-color: rgba(184, 255, 232, 0.7);
  box-shadow: 0 0 0 1px rgba(184, 255, 232, 0.2), 0 8px 18px rgba(0, 0, 0, 0.26);
}

.social-btn.apple,
.social-btn.quick {
  color: white;
  background: #050809;
}

.social-btn.google {
  color: #344446;
  background: white;
}

.social-btn.google .social-text small {
  color: rgba(52, 68, 70, 0.66);
}

.social-btn.google .auth-last-chip {
  color: #006a52;
  background: #dffbf2;
}

.login-help-action {
  width: max-content;
  display: grid;
  justify-items: center;
  gap: 5px;
  margin: 24px auto 0;
  padding: 0;
  border: 0;
  color: #23d366;
  background: transparent;
  box-shadow: none;
}

.login-help-action span:last-child {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 850;
}

.login-whatsapp-icon {
  display: grid;
  place-items: center;
  color: #23d366;
}

.login-whatsapp-icon svg {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.26));
}

.installed-auth-note {
  margin: 10px 2px 0;
  padding: 10px 12px;
  border: 1px solid rgba(0, 216, 151, 0.22);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.82);
  background: rgba(8, 13, 15, 0.48);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.35;
}

.social-icon {
  height: 48px;
  display: grid;
  place-items: center;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 950;
}

.brand-social-icon {
  color: inherit;
}

.brand-social-icon svg {
  display: block;
  width: 25px;
  height: 25px;
}

.apple-brand {
  color: white;
  background: #020304;
}

.apple-brand svg {
  width: 24px;
  height: 27px;
}

.google-brand {
  background: white;
}

.quick-mark {
  color: white;
  background: #050809;
}

.quick-auth-form {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(0, 216, 151, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
}

.quick-auth-form h2 {
  margin: 14px 0 6px;
  color: white;
  font-size: 19px;
}

.quick-auth-form p {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.quick-auth-form .auth-tabs {
  width: 100%;
  grid-template-columns: 1fr 1fr;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
}

.quick-auth-form .auth-tabs button {
  color: rgba(255, 255, 255, 0.74);
}

.quick-auth-form .auth-tabs button.active {
  color: var(--green-900);
}

.quick-auth-form .field span {
  color: rgba(255, 255, 255, 0.78);
}

.quick-auth-form .btn.ghost {
  color: white;
  border-color: rgba(255, 255, 255, 0.28);
}

.quick-auth-form .tiny-note {
  color: rgba(255, 255, 255, 0.64);
}

.admin-auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(380px, 1.05fr);
  background: #eef5f0;
}

.admin-auth-hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 48px;
  color: white;
  background:
    linear-gradient(180deg, rgba(5, 8, 9, 0.4), rgba(5, 8, 9, 0.9)),
    url("./assets/boxmarket-store.jpg") center / cover;
}

.admin-auth-hero-content {
  position: relative;
  z-index: 1;
  max-width: 540px;
}

.admin-kicker {
  display: inline-flex;
  margin: 30px 0 14px;
  padding: 6px 10px;
  border: 1px solid rgba(0, 216, 151, 0.36);
  border-radius: 999px;
  color: var(--green-300);
  background: rgba(0, 216, 151, 0.08);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-auth-hero h1 {
  max-width: 520px;
  margin: 0 0 14px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.96;
  letter-spacing: 0;
}

.admin-auth-hero p {
  max-width: 500px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.45;
}

.admin-auth-panel {
  display: grid;
  place-items: center;
  padding: 36px;
}

.admin-auth-card {
  width: min(100%, 460px);
  padding: 28px;
  border: 1px solid rgba(11, 18, 20, 0.08);
  border-radius: 8px;
  background: white;
  box-shadow: 0 22px 70px rgba(16, 24, 40, 0.12);
}

.admin-auth-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.admin-auth-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--green-900);
  font-weight: 950;
}

.admin-auth-head h2 {
  margin: 0 0 4px;
  font-size: 26px;
  letter-spacing: 0;
}

.admin-auth-head p {
  margin: 0;
  color: var(--muted);
}

.admin-social-stack {
  margin-bottom: 18px;
}

.admin-auth-form {
  display: grid;
  gap: 14px;
  padding-top: 4px;
}

.admin-auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 360px);
  margin: 14px auto 10px;
  color: #667477;
  font-size: 12px;
  font-weight: 750;
  text-align: center;
}

.admin-auth-divider::before,
.admin-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(11, 18, 20, 0.14);
}

.admin-auth-oauth-actions {
  display: grid;
  gap: 8px;
  width: min(100%, 360px);
  margin: 0 auto;
}

.admin-auth-oauth-actions .social-btn {
  width: 100%;
  min-height: 48px;
  grid-template-columns: 52px minmax(0, 1fr);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(16, 24, 40, 0.12);
}

.admin-auth-oauth-actions .social-icon {
  width: 52px;
  height: 48px;
}

.admin-auth-oauth-actions .social-text {
  padding: 0 14px;
}

.admin-auth-oauth-actions .social-text strong {
  font-size: 15px;
}

.admin-auth-oauth-actions .social-text small {
  font-size: 11px;
}

.link-btn {
  color: var(--green-900);
  background: transparent;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.password-link {
  justify-self: center;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.86);
}

.admin-auth-card .password-link {
  color: var(--green-900);
}

.admin-client-link {
  margin: 18px auto 0;
  display: flex;
}

.onboarding-page {
  display: grid;
  align-items: start;
}

.phone-card {
  gap: 20px;
  padding: 24px 18px;
  color: white;
  border: 0;
  background: rgba(67, 73, 74, 0.96);
  box-shadow: none;
}

.onboarding-brand {
  display: grid;
  justify-content: center;
  padding: 16px 0 8px;
}

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

.phone-form h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 650;
}

.otp-summary,
.otp-help {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.35;
}

.otp-summary strong {
  color: white;
}

.otp-error {
  margin: -2px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  color: #ffe7e7;
  background: rgba(217, 45, 32, 0.32);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
}

.country-select {
  min-height: 52px;
  display: grid;
  grid-template-columns: 44px 1fr 24px;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border-radius: 5px;
  color: #172022;
  background: white;
}

.country-select .flag {
  font-size: 23px;
}

.phone-field span {
  color: rgba(255, 255, 255, 0.88);
}

.phone-field .input {
  color: white;
  border-color: rgba(255, 255, 255, 0.9);
  background: transparent;
  font-size: 20px;
}

.phone-field .otp-input {
  letter-spacing: 0;
  text-align: center;
  font-weight: 760;
}

.phone-field .otp-input[aria-invalid="true"] {
  border-color: #ffb4a8;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.2);
}

.phone-field .input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.onboarding-actions {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 12px;
}

.link-button {
  appearance: none;
  border: 0;
  padding: 0;
  color: #f2a052;
  background: transparent;
  font: inherit;
  font-size: 18px;
  font-weight: 780;
}

.link-button.danger {
  color: #f2a052;
}

.secondary-link-button {
  appearance: none;
  width: fit-content;
  justify-self: center;
  border: 0;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 680;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.profile-actions {
  display: grid;
  gap: 10px;
}

.profile-actions-compact p,
.profile-edit-intro {
  margin: -2px 0 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.profile-edit-card {
  display: grid;
  gap: 12px;
}

.profile-edit-card h3 {
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.1;
}

.profile-edit-form {
  gap: 12px;
}

.profile-edit-readonly {
  margin: 2px 0 4px;
  padding: 2px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.profile-identity-lock {
  padding: 10px 0 2px;
  border-color: rgba(8, 211, 161, 0.3);
  background: rgba(8, 211, 161, 0.06);
}

.profile-identity-lock > strong {
  display: block;
  padding: 0 14px 10px;
  color: var(--ink);
}

.profile-edit-readonly .profile-data-row:last-child {
  border-bottom: 0;
}

.diagnostics-page {
  display: grid;
  gap: 12px;
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
}

.diagnostics-hero {
  display: grid;
  gap: 10px;
}

.diagnostics-hero h3,
.diagnostic-card h3 {
  margin-bottom: 0;
}

.diagnostics-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

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

.diagnostic-list {
  display: grid;
  gap: 0;
}

.diagnostic-row {
  display: grid;
  grid-template-columns: minmax(96px, 0.58fr) minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.diagnostic-row:first-child {
  border-top: 0;
}

.diagnostic-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.diagnostic-row strong {
  min-width: 0;
  text-align: right;
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.diagnostic-actions {
  display: grid;
  gap: 8px;
}

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

.diagnostic-events li {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 211, 161, 0.06);
}

.diagnostic-events strong {
  font-size: 13px;
}

.diagnostic-events span,
.diagnostic-events small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.diagnostic-danger-card {
  border: 1px solid rgba(229, 57, 53, 0.25);
}

.confirm-profile-card {
  gap: 14px;
}

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

.confirm-profile-form .kyc-approved {
  margin: 4px 0;
}

.kyc-card {
  gap: 14px;
}

.kyc-head {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;
}

.kyc-head h3,
.kyc-head p {
  margin: 0;
}

.kyc-head p {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.42;
  font-size: 14px;
}

.kyc-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: white;
  background: var(--green-900);
  font-weight: 950;
}

.kyc-capture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.kyc-capture {
  min-height: 112px;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--panel-soft);
  text-align: left;
}

.kyc-capture.done {
  border-color: var(--green-500);
  background: var(--green-50);
}

.kyc-capture-icon {
  width: 36px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 6px;
  color: var(--green-700);
  font-size: 12px;
  font-weight: 950;
}

.kyc-capture strong {
  font-size: 15px;
}

.kyc-capture small {
  color: var(--muted);
}

.kyc-capture em {
  align-self: end;
  color: var(--green-700);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.kyc-approved {
  display: grid;
  gap: 4px;
}

.kyc-progress {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.kyc-progress strong,
.kyc-progress p {
  margin: 0;
}

.kyc-progress p {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.42;
}

.status-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(16, 185, 129, 0.18);
  border-top-color: var(--green-600);
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

.delivery-page {
  display: grid;
  gap: 12px;
  padding-bottom: calc(118px + env(safe-area-inset-bottom));
}

.delivery-hero {
  display: grid;
  gap: 8px;
  overflow: hidden;
  border: 1px solid rgba(19, 201, 163, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(231, 255, 247, 0.94)),
    white;
}

.delivery-hero h2,
.delivery-hero p {
  margin: 0;
}

.delivery-hero h2 {
  font-size: clamp(24px, 7vw, 34px);
  line-height: 1.05;
}

.delivery-hero p {
  color: var(--muted);
  line-height: 1.35;
}

.delivery-mode-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.delivery-mode-row button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: white;
  font-weight: 950;
}

.delivery-mode-row button.active {
  border-color: rgba(19, 201, 163, 0.64);
  color: #051213;
  background: linear-gradient(135deg, #c9fff1, #0fd3a3);
}

.delivery-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 10px;
  align-items: end;
}

.delivery-filters label,
.delivery-order-form .field {
  display: grid;
  gap: 6px;
}

.delivery-filters span,
.delivery-order-form .field span {
  color: #344845;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.delivery-product-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  grid-auto-rows: auto;
  scroll-padding-bottom: calc(380px + env(safe-area-inset-bottom));
}

.delivery-page.has-delivery-cart-bar {
  padding-bottom: calc(206px + env(safe-area-inset-bottom));
}

.client-shell.with-bottom-nav .delivery-page.has-delivery-cart-bar {
  padding-bottom: calc(380px + env(safe-area-inset-bottom));
}

.delivery-product-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 0;
  height: auto;
  border: 1px solid rgba(8, 18, 22, 0.08);
}

.delivery-product-card.disabled {
  opacity: 0.64;
}

.delivery-product-visual {
  min-width: 64px;
  max-width: 64px;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  color: var(--green-900);
  background:
    linear-gradient(135deg, rgba(0, 216, 151, 0.16), rgba(0, 216, 151, 0.04)),
    var(--green-50);
  font-size: 13px;
  font-weight: 950;
}

.delivery-product-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.delivery-product-copy strong,
.delivery-product-copy span,
.delivery-product-copy em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  overflow-wrap: anywhere;
}

.delivery-product-copy span,
.delivery-product-copy small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.delivery-product-copy em {
  color: var(--green-700);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.delivery-product-side {
  display: grid;
  justify-items: end;
  gap: 8px;
  align-content: end;
}

.inventory-expiry-indicator {
  width: 100%;
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid rgba(233, 147, 58, 0.34);
  border-radius: 14px;
  color: #6b3a0b;
  background: #fff4df;
  font-weight: 900;
  text-align: left;
}

.inventory-expiry-indicator.is-critical {
  color: #7b1d1d;
  border-color: rgba(190, 55, 55, 0.34);
  background: #fff0f0;
}

.inventory-fefo-label {
  display: inline-block;
  margin-left: 6px;
  color: #08785d;
  font-size: 11px;
}

.inventory-lot-row.is-fefo-next,
.inventory-product-lot-card.is-fefo-next {
  background: rgba(18, 201, 155, 0.08);
  box-shadow: inset 4px 0 0 var(--green-600);
}

.inventory-product-lot-list {
  display: grid;
  gap: 10px;
}

.inventory-lot-history-filter {
  margin-bottom: 14px;
}

.inventory-product-lot-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(8, 18, 22, 0.1);
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.inventory-product-lot-card span {
  display: grid;
  gap: 4px;
}

.inventory-product-lot-card .inventory-lot-card-metrics {
  min-width: 260px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 14px;
}

.inventory-product-lot-card .inventory-lot-card-metrics small:last-child {
  grid-column: 1 / -1;
}

.inventory-product-lot-card small {
  color: var(--muted);
}

.inventory-product-lot-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(8, 18, 22, 0.1);
}

.delivery-product-side > strong {
  font-size: 18px;
}

.compact {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

.delivery-cart-bar {
  bottom: calc(96px + env(safe-area-inset-bottom));
  z-index: 24;
}

.delivery-checkout-note {
  display: grid;
  gap: 5px;
  border-color: rgba(19, 201, 163, 0.2);
  background: linear-gradient(135deg, #f2fffb, #ffffff);
}

.delivery-checkout-note h3,
.delivery-checkout-note p {
  margin: 0;
}

.delivery-checkout-note p {
  color: var(--muted);
  font-weight: 800;
}

.delivery-cart-list {
  display: grid;
  gap: 8px;
}

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

.delivery-order-list {
  display: grid;
  gap: 10px;
}

.delivery-order-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(19, 201, 163, 0.18);
}

.delivery-order-card.is-selected {
  border-color: rgba(19, 201, 163, 0.72);
  box-shadow: 0 18px 34px rgba(5, 42, 35, 0.14);
}

.delivery-sync-note {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(196, 255, 238, 0.65);
  color: #06352d;
  font-size: 13px;
  font-weight: 900;
}

.delivery-order-progress {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(225, 255, 247, 0.78);
}

.delivery-order-progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.delivery-order-progress-copy strong,
.delivery-order-progress-copy span {
  display: block;
}

.delivery-order-progress-copy strong {
  color: #071114;
  font-size: 16px;
  font-weight: 950;
}

.delivery-order-progress-copy span {
  max-width: 58%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-align: right;
}

.delivery-order-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
}

.delivery-order-steps span {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #8c9a98;
  font-size: 9px;
  font-weight: 900;
  text-align: center;
}

.delivery-order-steps i {
  width: 12px;
  height: 12px;
  display: block;
  border: 2px solid #cfdcd9;
  border-radius: 999px;
  background: white;
}

.delivery-order-steps .done {
  color: var(--green-700);
}

.delivery-order-steps .done i {
  border-color: var(--green-500);
  background: var(--green-500);
}

.delivery-order-steps .current small {
  color: #071114;
}

.delivery-order-cancelled {
  margin: 0;
  color: var(--danger);
  font-weight: 900;
}

.delivery-order-top,
.delivery-order-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.delivery-order-top h3,
.delivery-order-top p {
  margin: 0;
}

.delivery-order-items {
  display: grid;
  gap: 5px;
  color: #334643;
  font-size: 13px;
  font-weight: 800;
}

.delivery-order-footer small {
  max-width: 62%;
  color: var(--muted);
  font-weight: 800;
  text-align: right;
  overflow-wrap: anywhere;
}

.owner-orders-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
}

.owner-orders-table {
  min-width: 980px;
}

.owner-order-row td:first-child {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.owner-order-detail-panel {
  position: sticky;
  top: 18px;
}

.owner-order-detail {
  display: grid;
  gap: 14px;
}

.owner-order-contact {
  display: grid;
  gap: 2px;
}

.owner-order-lines {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.owner-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.owner-orders-hero {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 176, 74, 0.13), transparent 30%),
    linear-gradient(135deg, rgba(216, 255, 245, 0.88), white 44%);
}

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

.owner-order-metric {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(9, 107, 83, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(7, 17, 20, 0.05);
}

.owner-order-metric span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.owner-order-metric strong {
  min-width: 0;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.owner-order-metric small {
  color: #526462;
  font-weight: 800;
  line-height: 1.25;
}

.owner-order-metric.new {
  border-color: rgba(255, 176, 74, 0.35);
}

.owner-order-metric.ready {
  border-color: rgba(0, 174, 140, 0.26);
}

.owner-order-metric.money {
  background: linear-gradient(135deg, #071114, #0d2825);
}

.owner-order-metric.money span,
.owner-order-metric.money small {
  color: rgba(255, 255, 255, 0.72);
}

.owner-order-metric.money strong {
  color: white;
}

.owner-order-status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.owner-order-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #344441;
  background: white;
  font-weight: 900;
  cursor: pointer;
}

.owner-order-status-chip strong {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  color: var(--green-900);
  background: var(--green-100);
  font-size: 12px;
}

.owner-order-status-chip.active {
  color: white;
  border-color: #071114;
  background: #071114;
}

.owner-order-status-chip.active strong {
  color: #071114;
  background: #baf8e8;
}

.orders-table-wrap {
  max-height: min(66vh, 720px);
}

.owner-order-detail-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.owner-order-detail-summary > div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-soft);
}

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

.owner-order-detail-summary strong {
  font-size: 24px;
}

.owner-order-timeline {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.owner-order-timeline span {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: #74807e;
  font-size: 12px;
  font-weight: 900;
}

.owner-order-timeline i {
  width: 10px;
  height: 10px;
  border: 2px solid #d7e2df;
  border-radius: 999px;
  background: white;
}

.owner-order-timeline span.done {
  color: var(--ink);
}

.owner-order-timeline span.done i {
  border-color: var(--green-500);
  background: var(--green-500);
}

.owner-order-timeline span.current {
  color: var(--green-900);
}

.owner-order-timeline.cancelled {
  border-color: rgba(176, 42, 55, 0.18);
  background: #fff7f6;
}

.owner-order-timeline.cancelled strong {
  color: #8e1b22;
}

.owner-order-whatsapp-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(0, 174, 140, 0.18);
  border-radius: 12px;
  background: #effffb;
}

.owner-order-whatsapp-card div {
  display: grid;
  gap: 3px;
}

.owner-order-whatsapp-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.kyc-actions {
  display: grid;
  gap: 10px;
}

@media (max-width: 520px) {
  .owner-stock-action-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .owner-stock-action-buttons-wide .owner-stock-primary-action {
    grid-column: 1 / -1;
  }

  .owner-stock-action-buttons .btn {
    height: auto;
    min-height: 50px;
    padding-top: 7px;
    padding-bottom: 7px;
    line-height: 1.2;
  }

  .quick-auth-page {
    display: grid;
    padding: 0 16px;
    background:
      linear-gradient(180deg, rgba(5, 8, 9, 0.55), rgba(5, 8, 9, 0.94)),
      url("./assets/boxmarket-store.jpg") center / cover;
  }

  .quick-login-card {
    min-height: 100svh;
    padding-top: calc(env(safe-area-inset-top) + 26px);
  }

  .public-app-page {
    padding: 16px;
  }

  .public-app-card {
    min-height: calc(100svh - 32px);
    align-content: center;
    padding: calc(env(safe-area-inset-top) + 26px) 18px calc(env(safe-area-inset-bottom) + 22px);
  }

  .public-app-logo {
    width: min(100%, 290px);
  }

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

  .quick-login-copy {
    margin: 20px 0 16px;
  }

  .quick-login-copy p {
    font-size: 16px;
  }

  .quick-auth-form {
    padding: 13px;
  }

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

  .social-btn strong {
    font-size: 15px;
  }

  .kyc-capture-grid {
    grid-template-columns: 1fr;
  }

  .delivery-filters {
    grid-template-columns: 1fr;
  }

  .delivery-product-card {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .delivery-product-visual {
    min-width: 54px;
    max-width: 54px;
    width: 54px;
    height: 54px;
  }

  .delivery-product-side {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    align-items: center;
    justify-items: start;
  }

  .delivery-product-side .qty-controls,
  .delivery-product-side .btn {
    justify-self: end;
  }

  .delivery-order-top,
  .delivery-order-footer {
    align-items: flex-start;
  }
}

/* Visual polish v186 */
:root {
  --green-50: #effcf7;
  --green-100: #c9f7e8;
  --green-300: #6ce7c6;
  --green-500: #12c99b;
  --green-600: #079a78;
  --green-700: #066f5d;
  --green-900: #061113;
  --ink: #10181b;
  --muted: #647376;
  --line: #dbe8e3;
  --panel: #ffffff;
  --panel-soft: #f6faf8;
  --accent-warm: #f2a044;
  --accent-coral: #ef6b52;
  --shadow: 0 18px 44px rgba(2, 14, 18, 0.18);
  --shadow-soft: 0 10px 28px rgba(2, 14, 18, 0.1);
  --radius: 18px;
}

body {
  background:
    radial-gradient(circle at 12% 0%, rgba(18, 201, 155, 0.08), transparent 28%),
    linear-gradient(180deg, #f5faf8, #eaf2ef);
}

.client-shell {
  position: relative;
  max-width: 480px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(38, 222, 178, 0.16), transparent 34%),
    linear-gradient(180deg, #071516 0%, #08201e 45%, #061113 100%);
}

.pattern-bg {
  background:
    radial-gradient(circle at 26% 10%, rgba(55, 222, 177, 0.14), transparent 32%),
    radial-gradient(circle at 80% 38%, rgba(242, 160, 68, 0.08), transparent 30%),
    linear-gradient(180deg, #08332d 0%, #061113 100%);
}

.pattern-bg::before {
  background-size: 310px 310px;
  opacity: 0.22;
  mix-blend-mode: screen;
}

.client-header {
  min-height: 86px;
  padding: calc(env(safe-area-inset-top) + 10px) 18px 12px;
  background:
    linear-gradient(180deg, rgba(5, 12, 14, 0.96), rgba(4, 11, 12, 0.9));
  border-bottom-color: rgba(102, 231, 198, 0.22);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(22px);
}

.client-header.home-header {
  min-height: 72px;
  background:
    linear-gradient(180deg, rgba(5, 13, 15, 0.96), rgba(5, 13, 15, 0.78));
  border-bottom-color: rgba(108, 231, 198, 0.16);
  backdrop-filter: blur(22px);
}

.header-title strong {
  font-size: 25px;
  letter-spacing: 0;
}

.avatar {
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.18), transparent 26%),
    linear-gradient(135deg, #0b5f52, #062522);
  box-shadow: inset 0 0 0 1px rgba(148, 255, 225, 0.18), 0 10px 24px rgba(0, 0, 0, 0.2);
}

.icon-btn,
.home-menu-btn {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(196, 255, 238, 0.1);
  backdrop-filter: blur(12px);
}

.client-page,
.home-dashboard {
  padding-left: 16px;
  padding-right: 16px;
}

.client-shell.with-bottom-nav .client-page {
  padding-bottom: calc(136px + env(safe-area-inset-bottom));
}

.white-card,
.home-panel,
.purchase-card,
.delivery-order-card,
.delivery-checkout-note,
.cart-item {
  border: 1px solid rgba(11, 72, 63, 0.11);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 252, 250, 0.97)),
    #ffffff;
  box-shadow: var(--shadow-soft);
}

.btn {
  min-height: 46px;
  border-radius: 15px;
  background:
    linear-gradient(135deg, #15d6a6, #09b88a);
  color: #031513;
  box-shadow: 0 12px 26px rgba(18, 201, 155, 0.24);
  font-weight: 920;
}

.btn.secondary {
  border: 1px solid rgba(6, 111, 93, 0.12);
  color: #06231f;
  background: #e9fff7;
  box-shadow: none;
}

.btn.ghost {
  border-color: rgba(8, 33, 34, 0.16);
  color: #172326;
  background: rgba(255, 255, 255, 0.72);
}

.btn.danger,
.danger-pill {
  color: white;
  background: linear-gradient(135deg, #f04438, #b42318);
}

.input,
.select,
.textarea-input {
  min-height: 48px;
  border-color: rgba(10, 37, 37, 0.14);
  border-radius: 15px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.input:focus,
.select:focus,
textarea:focus {
  border-color: rgba(18, 201, 155, 0.82);
  box-shadow: 0 0 0 4px rgba(18, 201, 155, 0.16);
}

.quick-auth-page {
  background:
    linear-gradient(180deg, rgba(4, 11, 13, 0.46), rgba(4, 11, 13, 0.9)),
    url("./assets/boxmarket-store.jpg") center / cover;
}

.quick-login-card {
  border-radius: 28px;
  border-color: rgba(112, 237, 203, 0.24);
  background:
    radial-gradient(circle at 50% 8%, rgba(35, 205, 160, 0.14), transparent 28%),
    rgba(5, 11, 13, 0.78);
  box-shadow: 0 34px 92px rgba(0, 0, 0, 0.44);
}

.brand-logo-large {
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34);
}

.quick-login-copy h1 {
  font-size: 30px;
}

.quick-login-copy p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
}

.social-stack {
  gap: 10px;
}

.social-btn {
  min-height: 58px;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  border-radius: 18px;
  border-color: rgba(96, 231, 195, 0.2);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.social-btn strong {
  font-size: 16px;
  font-weight: 900;
}

.social-text small {
  font-size: 12px;
}

.social-btn.apple,
.social-btn.quick {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
    #030708;
}

.social-btn.google {
  border-color: rgba(5, 13, 15, 0.12);
  background: linear-gradient(180deg, #ffffff, #f7faf9);
}

.auth-last-chip {
  margin-right: 10px;
  padding: 5px 9px;
  font-size: 9px;
  letter-spacing: 0.04em;
}

.login-help-action {
  margin-top: 22px;
  color: #25d366;
}

.login-whatsapp-icon svg {
  width: 48px;
  height: 48px;
}

.quick-auth-form {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.home-choice-dashboard {
  min-height: calc(100svh - 170px);
}

.home-choice-card {
  gap: 20px;
  padding: 22px;
  border-radius: 26px;
  border-color: rgba(131, 248, 218, 0.28);
  background:
    radial-gradient(circle at 88% 12%, rgba(242, 160, 68, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(20, 113, 96, 0.62), rgba(3, 11, 13, 0.92)),
    #061113;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.34);
}

.home-choice-card::after {
  right: -62px;
  top: 32px;
  width: 210px;
  height: 86px;
  border-radius: 18px;
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(108, 231, 198, 0.1));
}

.home-choice-copy h1 {
  font-size: clamp(34px, 9vw, 44px);
  line-height: 0.96;
}

.home-choice-copy p {
  max-width: 380px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
}

.home-choice-btn {
  min-height: 108px;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border-radius: 22px;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.18);
}

.home-choice-btn.local {
  background:
    radial-gradient(circle at 84% 20%, rgba(255, 255, 255, 0.72), transparent 22%),
    linear-gradient(135deg, #d8fff4, #12d4a4 72%, #0ca782);
}

.home-choice-btn.delivery {
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    #111a1d;
}

.home-choice-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  font-size: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}

.home-choice-btn strong {
  font-size: 24px;
}

.home-choice-btn small {
  color: inherit;
  font-size: 14px;
  line-height: 1.25;
  opacity: 0.78;
}

.home-hero-card,
.shortcut-btn,
.home-metric-card {
  border-radius: 20px;
}

.shortcut-btn {
  min-height: 92px;
  border-color: rgba(11, 72, 63, 0.11);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 248, 0.97));
}

.shortcut-btn strong {
  font-size: 16px;
}

.shortcut-btn.promo-shortcut {
  min-height: 106px;
  border-color: rgba(242, 160, 68, 0.36);
  background:
    radial-gradient(circle at 90% 20%, rgba(18, 201, 155, 0.18), transparent 24%),
    linear-gradient(135deg, #fff7e8, #effff8);
}

.shortcut-btn.promo-shortcut::after {
  padding: 9px 14px;
  color: #031513;
  background: linear-gradient(135deg, #20d6aa, #08bd8c);
}

.home-bottom-nav {
  min-height: 82px;
  width: min(462px, calc(100% - 22px));
  padding: 9px 10px;
  border-radius: 20px;
  border-color: rgba(7, 43, 41, 0.1);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.home-bottom-nav button {
  min-height: 56px;
  gap: 5px;
}

.home-bottom-nav span {
  color: #5f696c;
}

.home-bottom-nav button.active span,
.home-bottom-nav button.active strong {
  color: #08765f;
}

.home-bottom-nav strong {
  font-size: 10px;
  letter-spacing: 0.03em;
}

.home-bottom-nav .nav-scan {
  width: 76px;
  height: 76px;
  min-height: 76px;
  margin-top: -42px;
  border-width: 7px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, #061113, #122629);
}

.home-bottom-nav .nav-scan .nav-qr-image {
  width: 46px;
  height: 46px;
}

.active-delivery-notice {
  width: min(462px, calc(100% - 22px));
  bottom: calc(100px + env(safe-area-inset-bottom));
}

.active-delivery-card {
  border-radius: 20px;
}

.menu-screen {
  padding: 20px 18px calc(170px + env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(2, 9, 11, 0.46), rgba(2, 9, 11, 0.76)),
    radial-gradient(circle at 50% 0%, rgba(18, 201, 155, 0.16), transparent 30%);
}

.menu-screen.pattern-bg::before {
  opacity: 0.18;
}

.menu-screen .screen-content {
  gap: 16px;
}

.menu-profile {
  grid-template-columns: 62px 1fr auto;
  padding: 16px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 10%, rgba(242, 160, 68, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(15, 93, 78, 0.9), rgba(5, 15, 17, 0.9));
  border-color: rgba(145, 255, 226, 0.24);
}

.menu-profile .avatar {
  width: 62px;
  height: 62px;
}

.menu-profile h2 {
  font-size: 24px;
}

.menu-profile p {
  color: rgba(255, 255, 255, 0.72);
}

.menu-group {
  margin-top: 2px;
}

.menu-group-title {
  margin: 0 0 10px 4px;
  color: #83f0d4;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.52);
}

.menu-list {
  gap: 10px;
}

.menu-item {
  min-height: 66px;
  grid-template-columns: 44px minmax(0, 1fr) 20px;
  padding: 11px 14px;
  border-radius: 18px;
  border-color: rgba(213, 255, 244, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055)),
    rgba(4, 13, 15, 0.84);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.menu-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border-color: rgba(255, 255, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.22);
}

.scanner-card,
.product-scanner,
.scan-cart-panel {
  border-radius: 22px;
}

.product-scan-hero {
  border-radius: 22px;
}

.scan-cart-panel {
  padding: 12px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.18);
}

.scan-cart-item {
  border-radius: 17px;
}

.scan-add-confirm {
  border-radius: 17px;
  background:
    linear-gradient(135deg, #eafff8, #ffffff);
}

.delivery-page {
  gap: 14px;
}

.delivery-hero {
  padding: 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 18%, rgba(242, 160, 68, 0.12), transparent 28%),
    linear-gradient(135deg, #ffffff, #edfff8);
}

.delivery-hero h2 {
  font-size: clamp(27px, 7vw, 36px);
}

.delivery-filters {
  padding: 14px;
  border-radius: 22px;
}

.delivery-product-card {
  min-height: 116px;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  padding: 14px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, #ffffff, #fbfdfc);
}

.delivery-product-visual {
  width: 66px;
  min-width: 66px;
  max-width: 66px;
  height: 66px;
  border-radius: 17px;
}

.delivery-product-copy strong {
  color: #10181b;
  font-size: 18px;
}

.delivery-product-side > strong {
  font-size: 19px;
}

.delivery-cart-bar {
  width: min(462px, calc(100% - 22px));
  left: 50%;
  bottom: calc(102px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.client-shell.with-bottom-nav .delivery-page.has-delivery-cart-bar {
  padding-bottom: calc(380px + env(safe-area-inset-bottom));
}

.delivery-order-card {
  border-radius: 22px;
}

.delivery-order-progress {
  border-radius: 18px;
  background:
    linear-gradient(135deg, #eafff8, #ffffff);
}

.purchases-head-card,
.purchase-card,
.purchase-detail-hero {
  border-radius: 22px;
}

.purchase-card {
  padding: 15px;
}

.purchase-card-body {
  border-radius: 16px;
}

.badge,
.home-panel-badge,
.purchase-ok {
  border-radius: 999px;
}

@media (max-width: 520px) {
  .quick-login-card {
    border-radius: 24px;
  }

  .quick-login-copy {
    margin: 18px 0 16px;
  }

  .social-btn {
    min-height: 56px;
    grid-template-columns: 58px minmax(0, 1fr) auto;
  }

  .auth-last-chip {
    max-width: 116px;
  }

  .home-choice-card {
    padding: 20px;
  }

  .home-choice-btn {
    min-height: 102px;
  }

  .delivery-product-card {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 12px;
  }

  .delivery-product-visual {
    width: 60px;
    min-width: 60px;
    max-width: 60px;
    height: 60px;
  }

  .delivery-product-side {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    width: 100%;
  }

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

  .inventory-product-lot-card,
  .inventory-product-lot-total {
    grid-template-columns: 1fr;
    display: grid;
  }
}

@media (max-width: 380px) {
  .delivery-product-list {
    grid-template-columns: 1fr;
  }
}

/* Visual balance v187 */
:root {
  --surface-tint: #eef8f3;
  --surface-tint-2: #e5f2ec;
  --surface-warm: #fff5e5;
  --surface-deep: #071719;
  --line-strong: rgba(6, 111, 93, 0.18);
}

.client-page {
  color: #f9fffd;
}

.white-card,
.home-panel,
.purchase-card,
.delivery-order-card,
.delivery-checkout-note,
.cart-item,
.delivery-filters,
.scan-cart-panel {
  border-color: var(--line-strong);
  background:
    linear-gradient(145deg, rgba(254, 255, 252, 0.98), rgba(237, 247, 242, 0.98)),
    var(--surface-tint);
}

.white-card h2,
.white-card h3,
.purchase-card strong,
.delivery-product-copy strong,
.delivery-order-card h3 {
  color: #0e1719;
}

.purchases-head-card,
.delivery-hero {
  color: white;
  border-color: rgba(125, 244, 211, 0.24);
  background:
    radial-gradient(circle at 92% 18%, rgba(242, 160, 68, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(9, 87, 74, 0.92), rgba(6, 17, 19, 0.96)),
    var(--surface-deep);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.24);
}

.purchases-head-card p,
.delivery-hero p {
  color: rgba(255, 255, 255, 0.76);
}

.purchases-head-card .section-kicker,
.delivery-hero .section-kicker {
  color: #9bf5dc;
}

.purchases-head-card .badge,
.delivery-hero .badge {
  color: #06231f;
  background: #c9f7e8;
}

.home-choice-card {
  border-color: rgba(161, 255, 228, 0.28);
  background:
    radial-gradient(circle at 88% 12%, rgba(242, 160, 68, 0.2), transparent 27%),
    radial-gradient(circle at 4% 98%, rgba(18, 201, 155, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(10, 98, 82, 0.8), rgba(4, 13, 15, 0.96)),
    #061113;
}

.home-choice-btn.local {
  border-color: rgba(194, 255, 237, 0.72);
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.52), transparent 23%),
    linear-gradient(135deg, #aef7df, #0ed1a1 74%, #0a8069);
}

.home-choice-btn.delivery {
  border-color: rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 92% 18%, rgba(242, 160, 68, 0.18), transparent 26%),
    linear-gradient(135deg, #182628, #091315);
}

.home-metric-card,
.shortcut-btn {
  border-color: rgba(6, 111, 93, 0.13);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(231, 242, 237, 0.96)),
    var(--surface-tint);
}

.home-metric-card:nth-child(even),
.shortcut-btn:nth-child(even):not(.promo-shortcut) {
  background:
    linear-gradient(145deg, rgba(250, 253, 250, 0.98), rgba(242, 247, 241, 0.96)),
    #f2f7f3;
}

.shortcut-btn.promo-shortcut {
  border-color: rgba(242, 160, 68, 0.46);
  background:
    radial-gradient(circle at 94% 18%, rgba(18, 201, 155, 0.2), transparent 26%),
    linear-gradient(135deg, #fff0d8, #e8fff5 70%, #def8ef);
}

.shortcut-icon,
.home-metric-card .metric-icon,
.delivery-product-visual,
.scan-product-visual {
  background:
    linear-gradient(145deg, #061113, #122326);
  color: #caffef;
}

.shortcut-btn.promo-shortcut .shortcut-icon {
  color: #241300;
  background: linear-gradient(135deg, #ffd694, #f2a044);
}

.delivery-filters {
  background:
    linear-gradient(145deg, rgba(246, 251, 248, 0.98), rgba(230, 242, 236, 0.98)),
    var(--surface-tint-2);
}

.delivery-product-card {
  border-color: rgba(6, 111, 93, 0.13);
  background:
    linear-gradient(145deg, #fbfefa, #edf7f2);
}

.delivery-product-card:nth-child(even) {
  background:
    linear-gradient(145deg, #fffaf0, #eff9f4);
}

.delivery-product-card .btn.secondary {
  color: #eafff8;
  border-color: rgba(4, 16, 18, 0.08);
  background: linear-gradient(135deg, #071719, #12332f);
}

.delivery-product-side .qty-controls button,
.scan-qty-controls button,
.qty-controls button {
  border-color: rgba(7, 80, 68, 0.16);
  background: #f4faf7;
}

.delivery-product-side .qty-controls button:last-child,
.scan-plus,
.qty-controls button:last-child {
  color: #031513;
  background: linear-gradient(135deg, #baf9e6, #12c99b);
}

.cart-bar,
.delivery-cart-bar {
  color: white;
  border-color: rgba(133, 255, 223, 0.24);
  background:
    linear-gradient(135deg, rgba(11, 90, 77, 0.96), rgba(5, 15, 17, 0.98)),
    var(--surface-deep);
}

.cart-bar span,
.delivery-cart-bar span {
  color: rgba(255, 255, 255, 0.72);
}

.cart-bar .btn,
.delivery-cart-bar .btn {
  color: #031513;
  background: linear-gradient(135deg, #c8fff0, #12c99b);
}

.purchase-card,
.delivery-order-card {
  background:
    linear-gradient(145deg, #fbfefb, #edf7f2);
}

.purchase-card-body,
.delivery-order-progress,
.delivery-sync-note {
  background:
    linear-gradient(145deg, #e9fff7, #f8fffc);
}

.legal-section-card,
.legal-alert-card,
.profile-card,
.payments-card {
  background:
    linear-gradient(145deg, #fbfefb, #eef7f2);
}

.menu-item {
  border-color: rgba(194, 255, 237, 0.16);
  background:
    linear-gradient(135deg, rgba(12, 47, 43, 0.88), rgba(4, 13, 15, 0.88)),
    rgba(4, 13, 15, 0.88);
}

.menu-item:active,
.home-choice-btn:active,
.shortcut-btn:active,
.delivery-product-card:active {
  transform: scale(0.992);
}

.btn:active,
.home-bottom-nav button:active {
  transform: scale(0.98);
}

@media (max-width: 520px) {
  .white-card,
  .home-panel,
  .purchase-card,
  .delivery-order-card,
  .delivery-checkout-note,
  .cart-item,
  .delivery-filters,
  .scan-cart-panel {
    box-shadow: 0 10px 26px rgba(2, 14, 18, 0.12);
  }
}

/* Palette experiment v188: petroleum blue, ivory and amber */
:root {
  --green-50: #edf7fa;
  --green-100: #d8edf4;
  --green-300: #88cadd;
  --green-500: #287f9b;
  --green-600: #1e647c;
  --green-700: #184d62;
  --green-900: #173642;
  --ink: #111d22;
  --muted: #657479;
  --line: #d9e4e5;
  --panel: #fffdf8;
  --panel-soft: #f7f2e8;
  --accent-warm: #e9933a;
  --accent-coral: #e86f51;
  --surface-tint: #f6f0e5;
  --surface-tint-2: #edf4f2;
  --surface-warm: #fff3df;
  --surface-deep: #173642;
  --line-strong: rgba(24, 77, 98, 0.18);
}

body {
  background:
    radial-gradient(circle at 10% 0%, rgba(40, 127, 155, 0.1), transparent 28%),
    linear-gradient(180deg, #fffaf1, #eaf1ef);
}

.client-shell {
  background:
    radial-gradient(circle at 50% 0%, rgba(233, 147, 58, 0.16), transparent 34%),
    linear-gradient(180deg, #244d5a 0%, #173642 46%, #102832 100%);
}

.pattern-bg {
  background:
    radial-gradient(circle at 20% 8%, rgba(233, 147, 58, 0.16), transparent 30%),
    radial-gradient(circle at 86% 34%, rgba(136, 202, 221, 0.18), transparent 28%),
    linear-gradient(180deg, #285d69 0%, #173642 100%);
}

.pattern-bg::before {
  opacity: 0.16;
  filter: hue-rotate(138deg) saturate(0.72) brightness(1.16);
  mix-blend-mode: soft-light;
}

.client-header,
.client-header.home-header {
  background:
    linear-gradient(180deg, rgba(31, 71, 82, 0.96), rgba(23, 54, 66, 0.9));
  border-bottom-color: rgba(255, 234, 201, 0.22);
}

.quick-auth-page {
  background:
    linear-gradient(180deg, rgba(28, 62, 73, 0.28), rgba(23, 54, 66, 0.88)),
    url("./assets/boxmarket-store.jpg") center / cover;
}

.quick-login-card {
  border-color: rgba(255, 224, 177, 0.24);
  background:
    radial-gradient(circle at 50% 8%, rgba(233, 147, 58, 0.16), transparent 28%),
    rgba(22, 47, 57, 0.82);
}

.language-chip,
.icon-btn,
.home-menu-btn {
  background: rgba(255, 245, 226, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 235, 200, 0.13);
}

.avatar {
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.2), transparent 26%),
    linear-gradient(135deg, #2c7891, #1b4554);
}

.white-card,
.home-panel,
.purchase-card,
.delivery-order-card,
.delivery-checkout-note,
.cart-item,
.delivery-filters,
.scan-cart-panel {
  border-color: rgba(24, 77, 98, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.99), rgba(244, 239, 229, 0.98)),
    #fffaf1;
}

.purchases-head-card,
.delivery-hero,
.home-choice-card {
  border-color: rgba(255, 224, 177, 0.24);
  background:
    radial-gradient(circle at 88% 14%, rgba(233, 147, 58, 0.22), transparent 28%),
    radial-gradient(circle at 4% 98%, rgba(136, 202, 221, 0.16), transparent 32%),
    linear-gradient(135deg, rgba(42, 94, 108, 0.92), rgba(23, 54, 66, 0.98)),
    #173642;
}

.purchases-head-card .section-kicker,
.delivery-hero .section-kicker,
.home-kicker,
.menu-group-title,
.product-scan-hero span,
.scan-cart-head span,
.scan-last-product span {
  color: #ffd9a1;
}

.home-status-pill {
  color: #fff3df;
  border-color: rgba(255, 217, 161, 0.3);
  background: rgba(255, 243, 223, 0.08);
}

.btn,
.home-primary-action,
.cart-bar .btn,
.delivery-cart-bar .btn,
.shortcut-btn.promo-shortcut::after {
  color: #152d36;
  background: linear-gradient(135deg, #ffdba3, #e9933a);
  box-shadow: 0 12px 26px rgba(233, 147, 58, 0.23);
}

.btn.secondary,
.home-choice-btn.local,
.delivery-product-side .qty-controls button:last-child,
.scan-plus,
.qty-controls button:last-child {
  color: #112b34;
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.52), transparent 23%),
    linear-gradient(135deg, #e7f7fb, #88cadd 78%, #287f9b);
}

.btn.ghost {
  color: #173642;
  border-color: rgba(24, 77, 98, 0.2);
  background: rgba(255, 250, 241, 0.72);
}

.social-btn {
  border-color: rgba(255, 224, 177, 0.2);
}

.social-btn.apple,
.social-btn.quick,
.home-choice-btn.delivery {
  background:
    radial-gradient(circle at 92% 18%, rgba(233, 147, 58, 0.18), transparent 26%),
    linear-gradient(135deg, #264c58, #162f39);
}

.social-btn.google {
  background: linear-gradient(180deg, #fffdf8, #f6f0e5);
}

.auth-last-chip,
.purchases-head-card .badge,
.delivery-hero .badge,
.home-panel-badge {
  color: #173642;
  background: #ffe3b7;
}

.home-choice-btn.local .home-choice-icon,
.shortcut-icon,
.home-metric-card .metric-icon,
.delivery-product-visual,
.scan-product-visual {
  color: #fff3df;
  background: linear-gradient(145deg, #173642, #255767);
}

.home-choice-btn.delivery .home-choice-icon {
  color: #173642;
  background: #ffe3b7;
}

.home-metric-card,
.shortcut-btn {
  border-color: rgba(24, 77, 98, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), rgba(239, 246, 246, 0.96)),
    #fffdf8;
}

.shortcut-btn:nth-child(even):not(.promo-shortcut),
.home-metric-card:nth-child(even),
.delivery-product-card:nth-child(even),
.purchase-card:nth-child(even),
.delivery-order-card:nth-child(even) {
  background:
    linear-gradient(145deg, #edf6f6, #fff7e9);
}

.shortcut-btn.promo-shortcut {
  border-color: rgba(233, 147, 58, 0.42);
  background:
    radial-gradient(circle at 94% 18%, rgba(136, 202, 221, 0.22), transparent 26%),
    linear-gradient(135deg, #fff0d4, #edf7f8 72%, #fffaf1);
}

.delivery-product-card {
  background:
    linear-gradient(145deg, #fffdf8, #f0f6f4);
}

.delivery-product-card .btn.secondary {
  color: #fff3df;
  background: linear-gradient(135deg, #244d5a, #173642);
}

.cart-bar,
.delivery-cart-bar,
.scan-cart-actions {
  color: white;
  border-color: rgba(255, 224, 177, 0.2);
  background:
    radial-gradient(circle at 92% 24%, rgba(233, 147, 58, 0.18), transparent 26%),
    linear-gradient(135deg, rgba(42, 94, 108, 0.98), rgba(23, 54, 66, 0.98));
}

.home-bottom-nav {
  border-color: rgba(24, 77, 98, 0.12);
  background: rgba(255, 253, 248, 0.96);
}

.home-bottom-nav button.active span,
.home-bottom-nav button.active strong,
.home-bottom-nav .nav-whatsapp-icon {
  color: #1e647c;
}

.home-bottom-nav .nav-scan {
  border-color: #fffaf1;
  background:
    radial-gradient(circle at 82% 16%, rgba(233, 147, 58, 0.2), transparent 24%),
    linear-gradient(135deg, #173642, #285d69);
}

.menu-profile,
.menu-item {
  border-color: rgba(255, 224, 177, 0.15);
  background:
    linear-gradient(135deg, rgba(45, 91, 104, 0.9), rgba(23, 54, 66, 0.9)),
    rgba(23, 54, 66, 0.88);
}

.menu-icon {
  color: #fff3df;
  border-color: rgba(255, 243, 223, 0.36);
  background: rgba(255, 243, 223, 0.08);
}

.product-scanner,
.scanner-card {
  border-color: rgba(255, 224, 177, 0.22);
  background:
    linear-gradient(145deg, rgba(30, 73, 86, 0.94), rgba(19, 43, 52, 0.96));
}

.product-scanner .scan-label-row {
  border-bottom-color: rgba(255, 224, 177, 0.18);
  background: rgba(23, 54, 66, 0.96);
}

.product-scanner .scan-label-row .barcode-icon {
  color: #ffd9a1;
}

.scan-live-counter,
.sound-dot::before {
  background: #e9933a;
}

.scan-live-counter {
  color: #173642;
  background: linear-gradient(135deg, #ffe3b7, #e9933a);
}

.scan-add-confirm,
.purchase-card-body,
.delivery-order-progress,
.delivery-sync-note {
  background:
    linear-gradient(145deg, #fff3df, #edf7f8);
}

.section-kicker {
  color: #1e647c;
}

.line-saving,
.delivery-product-copy em {
  color: #b45f18 !important;
}

.purchase-ok,
.badge {
  color: #173642;
  background: #d8edf4;
}

.purchase-ok.warn,
.badge.warn {
  background: #ffe3b7;
}

.purchase-ok.danger,
.badge.danger {
  color: #7a2416;
  background: #ffe0d7;
}

/* Phone verification contrast fix v190 */
.phone-card {
  color: #102127;
  border-color: rgba(24, 77, 98, 0.16);
  background:
    radial-gradient(circle at 82% 8%, rgba(233, 147, 58, 0.12), transparent 28%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.99), rgba(239, 247, 245, 0.99)),
    #fffdf8;
}

.phone-card .onboarding-brand {
  padding: 4px 0 8px;
}

.phone-card .header-logo {
  width: 190px;
  height: 92px;
  object-fit: contain;
  padding: 6px;
  background: #ffffff;
  border-color: rgba(19, 118, 99, 0.34);
  box-shadow: 0 12px 28px rgba(23, 54, 66, 0.14);
}

.phone-form h2,
.phone-field span,
.otp-summary strong {
  color: #102127;
}

.otp-summary,
.otp-help {
  color: #5f6d70;
}

.phone-field .input {
  color: #102127;
  border-color: rgba(24, 77, 98, 0.2);
  background: rgba(255, 255, 255, 0.86);
}

.phone-field .input::placeholder {
  color: #9ca8a8;
}

.secondary-link-button {
  color: #657274;
}

/* Delivery checkout readability and fixed footer clearance v191 */
.client-header {
  padding-top: max(calc(env(safe-area-inset-top) + 10px), 34px);
}

.client-shell.with-bottom-nav .delivery-cart-page {
  padding-bottom: calc(236px + env(safe-area-inset-bottom));
}

.delivery-cart-page .delivery-hero h2,
.delivery-cart-page .delivery-hero p {
  color: #fff8ea;
}

.delivery-cart-page .delivery-hero p {
  opacity: 0.92;
}

.delivery-cart-list .cart-item {
  grid-template-columns: 56px minmax(0, 1fr) auto auto;
  gap: 12px;
  color: #102127;
  border-color: rgba(24, 77, 98, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.99), rgba(244, 239, 229, 0.98)),
    #fffaf1;
}

.delivery-cart-list .cart-product-visual {
  width: 56px;
  height: 56px;
  color: #102127;
  background: linear-gradient(135deg, #e5fff7, #d8edf4);
}

.delivery-cart-list .cart-item strong {
  color: #102127;
}

.delivery-cart-list .cart-item span,
.delivery-cart-list .cart-item em {
  color: #657274;
}

.delivery-cart-list .qty-controls strong {
  min-width: 18px;
  text-align: center;
}

.delivery-cart-page .delivery-order-form {
  margin-bottom: 18px;
}

/* Cart payment screen readability and bottom-nav clearance v194 */
.client-shell.with-bottom-nav .cart-page {
  padding-bottom: calc(292px + env(safe-area-inset-bottom));
}

.cart-page .section-title h2,
.cart-page .section-title p {
  color: #fff8ea;
}

.cart-page .section-title p {
  opacity: 0.84;
}

.cart-page .cart-list {
  gap: 12px;
}

.home-pending-delivery-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(10, 186, 149, 0.24);
  border-radius: 20px;
  color: #102127;
  background:
    linear-gradient(135deg, rgba(255, 248, 224, 0.98), rgba(229, 255, 247, 0.96)),
    #fff8e1;
  box-shadow: var(--shadow-soft);
}

.home-pending-delivery-card h3,
.home-pending-delivery-card p {
  margin: 0;
}

.home-pending-delivery-card h3 {
  margin-top: 3px;
  font-size: 21px;
}

.home-pending-delivery-card p {
  color: #657274;
  font-weight: 850;
}

.home-pending-delivery-actions {
  display: grid;
  gap: 8px;
}

@media (max-width: 520px) {
  .home-pending-delivery-card {
    grid-template-columns: 1fr;
  }

  .home-pending-delivery-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cart-page .cart-item {
  grid-template-columns: 56px minmax(0, 1fr) auto auto;
  gap: 12px;
  color: #102127;
  border-color: rgba(24, 77, 98, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.99), rgba(244, 239, 229, 0.98)),
    #fffaf1;
}

.cart-page .cart-product-visual {
  width: 56px;
  height: 56px;
  color: #102127;
  background: linear-gradient(135deg, #e5fff7, #d8edf4);
}

.cart-page .cart-item strong {
  color: #102127;
}

.cart-page .cart-item span,
.cart-page .cart-item em {
  color: #657274;
}

.cart-page .cart-item .line-saving {
  color: #14745f !important;
}

.cart-page .cart-warning {
  color: #7a4100;
}

.cart-page .qty-controls strong {
  min-width: 18px;
  text-align: center;
}

.cart-page .checkout-box {
  margin-top: 10px;
  margin-bottom: 44px;
  border: 1px solid rgba(24, 77, 98, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.99), rgba(244, 239, 229, 0.98)),
    #fffaf1;
  box-shadow: var(--shadow-soft);
}

.cart-page .checkout-box-priority {
  margin-bottom: 14px;
}

.cart-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0;
  color: #fff8ea;
}

.cart-detail-head strong {
  color: inherit;
  font-size: 14px;
  text-align: right;
}

.cart-page .payment-option {
  color: #102127;
  background: rgba(231, 247, 251, 0.72);
}

.cart-page .payment-option small {
  color: #657274;
}

/* Checkout contrast hardening v195 */
.delivery-cart-list .cart-item,
.cart-page .cart-item,
.delivery-payment-page .cart-item,
.checkout-detail-list .cart-item {
  color: #102127;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.99), rgba(244, 239, 229, 0.98)),
    #fffaf1;
}

.delivery-cart-list .cart-item strong,
.cart-page .cart-item strong,
.delivery-payment-page .cart-item strong,
.checkout-detail-list .cart-item strong,
.delivery-cart-list .cart-item b,
.cart-page .cart-item b,
.delivery-payment-page .cart-item b,
.checkout-detail-list .cart-item b {
  color: #102127;
}

.delivery-cart-list .cart-item span,
.cart-page .cart-item span,
.delivery-payment-page .cart-item span,
.checkout-detail-list .cart-item span,
.delivery-cart-list .cart-item em,
.cart-page .cart-item em,
.delivery-payment-page .cart-item em,
.checkout-detail-list .cart-item em {
  color: #657274;
}

.delivery-cart-list .qty-controls,
.cart-page .qty-controls,
.delivery-payment-page .qty-controls,
.checkout-detail-list .qty-controls {
  color: #102127;
}

/* Button contrast hardening v203 */
.btn.dark,
.btn.dark:hover,
.btn.dark:focus-visible,
.admin-auth-card .btn.dark,
.admin-auth-card .btn.dark:hover,
.admin-auth-card .btn.dark:focus-visible {
  color: #ffffff;
  background: linear-gradient(135deg, #164150, #0f313c);
  box-shadow: 0 12px 26px rgba(15, 49, 60, 0.24);
}

.btn.dark:disabled,
.admin-auth-card .btn.dark:disabled {
  color: rgba(255, 255, 255, 0.78);
  background: #143742;
  box-shadow: none;
  opacity: 1;
}

.btn.danger,
.btn.danger:disabled {
  color: #ffffff;
}

.icon-action:disabled,
.icon-action[aria-disabled="true"] {
  cursor: not-allowed;
  color: #66777a;
  background: #eef3f2;
  opacity: 1;
}

.icon-action.danger:disabled,
.icon-action.danger[aria-disabled="true"] {
  color: #8a6d67;
  background: #f6ecea;
}

/* Admin auth responsive hardening v203 */
@media (max-width: 860px) {
  .admin-auth-page {
    grid-template-columns: 1fr;
    min-width: 0;
    min-height: 100svh;
    overflow-x: hidden;
    background: #eef5f0;
  }

  .admin-auth-hero {
    min-height: 360px;
    padding: calc(env(safe-area-inset-top) + 34px) 26px 32px;
  }

  .admin-auth-panel {
    min-width: 0;
    padding: 22px;
  }
}

@media (max-width: 520px) {
  .admin-auth-page {
    background: #ffffff;
  }

  .admin-auth-hero {
    min-height: auto;
    align-items: start;
    padding: calc(env(safe-area-inset-top) + 20px) 22px 24px;
  }

  .admin-auth-hero-content {
    width: 100%;
  }

  .admin-auth-hero .brand-logo-large {
    max-width: 224px;
  }

  .admin-kicker {
    margin: 22px 0 12px;
  }

  .admin-auth-hero h1 {
    max-width: 340px;
    font-size: 38px;
    line-height: 1;
  }

  .admin-auth-hero p {
    max-width: 340px;
    font-size: 16px;
  }

  .admin-auth-panel {
    padding: 0;
  }

  .admin-auth-card {
    width: 100%;
    min-height: auto;
    max-width: 100vw;
    padding: 28px 22px 30px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .admin-auth-form,
  .admin-auth-form .field,
  .admin-auth-form .input,
  .admin-auth-form .btn {
    min-width: 0;
    max-width: 100%;
  }

  .admin-auth-form {
    width: calc(100vw - 44px);
  }

  .admin-auth-form .input,
  .admin-auth-form .btn.full {
    width: 100%;
  }
}
.inventory-expiry-alerts-card .admin-card-head p { max-width: 52rem; }
.inventory-expiry-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0; }
.expiry-summary-card { display: grid; gap: .2rem; text-align: left; border: 1px solid var(--ds-border, #dce6e4); border-radius: 1rem; background: var(--ds-surface, #fff); padding: .9rem 1rem; color: var(--ds-ink, #16313a); cursor: pointer; }
.expiry-summary-card:hover, .expiry-summary-card:focus-visible { border-color: var(--ds-primary, #55b77d); outline: none; }
.expiry-summary-card strong { font-size: 1.55rem; line-height: 1; }
.expiry-summary-card span { font-weight: 700; font-size: .86rem; }
.expiry-summary-card small { color: var(--ds-muted, #6c7b80); }
.expiry-summary-card.danger { border-left: 4px solid #d85b5b; }
.expiry-summary-card.warn { border-left: 4px solid #e2a83f; }
.inventory-expiry-list { display: grid; gap: .5rem; }
.inventory-expiry-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; text-align: left; border: 1px solid var(--ds-border, #dce6e4); border-radius: .85rem; background: var(--ds-surface, #fff); padding: .75rem .9rem; color: inherit; cursor: pointer; }
.inventory-expiry-item:hover, .inventory-expiry-item:focus-visible { border-color: var(--ds-primary, #55b77d); outline: none; }
.inventory-expiry-item-main, .inventory-expiry-item-meta { display: grid; gap: .2rem; }
.inventory-expiry-item-main small, .inventory-expiry-item-meta { color: var(--ds-muted, #6c7b80); font-size: .82rem; }
.inventory-expiry-item-meta { justify-items: end; }
.inventory-expiry-item-meta b { color: var(--ds-ink, #16313a); }
.inventory-lot-row { cursor: pointer; }
.inventory-lot-row:hover { background: rgba(85, 183, 125, .08); }
.inventory-lot-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin: 1rem 0; }
.inventory-lot-detail div { border: 1px solid var(--ds-border, #dce6e4); border-radius: .75rem; padding: .75rem; }
.inventory-lot-detail dt { color: var(--ds-muted, #6c7b80); font-size: .78rem; }
.inventory-lot-detail dd { margin: .25rem 0 0; font-weight: 700; }
.inventory-lot-detail dd small { display: block; margin-top: .2rem; color: var(--ds-muted, #6c7b80); font-weight: 500; }
@media (max-width: 720px) { .inventory-expiry-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } .inventory-expiry-item { align-items: flex-start; } .inventory-lot-detail { grid-template-columns: 1fr; } .inventory-product-lot-card { grid-template-columns: 1fr; } .inventory-product-lot-card .inventory-lot-card-metrics { min-width: 0; } }

/* Admin forms: compact commercial composition without changing form behavior. */
[data-owner-modal] .product-modal {
  width: min(940px, 100%);
  max-height: min(calc(100vh - var(--admin-space-block)), 840px);
  max-height: min(calc(100dvh - var(--admin-space-block)), 840px);
  border-radius: 16px;
}

[data-owner-modal] .product-modal.compact-modal {
  width: min(760px, 100%);
}

[data-owner-modal] .product-modal.inventory-operation-modal {
  width: min(900px, 100%);
}

[data-owner-modal] .product-modal-head {
  gap: var(--admin-space-field);
  padding: var(--admin-space-field) var(--admin-space-section);
}

[data-owner-modal] .product-modal-head h3 {
  margin: 0 0 var(--admin-space-micro);
  font-size: 25px;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

[data-owner-modal] .product-modal-head p {
  max-width: 620px;
  font-size: 14px;
  line-height: 1.4;
}

[data-owner-modal] .modal-kicker,
[data-owner-modal] .owner-modal-section h4,
[data-owner-modal] .owner-modal-section-heading {
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: 0.09em;
}

[data-owner-modal] .owner-modal-close {
  width: 44px;
  height: 44px;
  font-size: 27px;
  box-shadow: 0 3px 12px rgba(0, 52, 40, 0.12);
}

[data-owner-modal] .product-modal-body {
  grid-template-columns: minmax(0, 1fr) 240px;
  align-items: start;
  gap: var(--admin-space-field);
  padding: var(--admin-space-field);
}

[data-owner-modal] .product-modal-body.single-column-modal {
  grid-template-columns: minmax(0, 1fr);
}

[data-owner-modal] .product-modal-grid {
  align-items: start;
  column-gap: var(--admin-space-normal);
  row-gap: var(--admin-space-field);
}

[data-owner-modal] .field {
  min-width: 0;
  align-content: start;
  gap: var(--admin-space-small);
}

[data-owner-modal] .field > span {
  color: #344054;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

[data-owner-modal] .field > small,
[data-owner-modal] .owner-switch small,
[data-owner-modal] .product-image-upload small {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

[data-owner-modal] .input,
[data-owner-modal] .select {
  width: 100%;
  height: var(--admin-control-height);
  min-height: var(--admin-control-height);
  max-height: var(--admin-control-height);
  padding: 0 var(--admin-control-padding-x);
  border: 1px solid rgba(10, 37, 37, 0.18);
  border-radius: var(--admin-control-radius);
  color: var(--ink);
  background-color: #fff;
  box-shadow: none;
  font: inherit;
  font-size: 15px;
  line-height: 1.2;
  text-overflow: ellipsis;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

[data-owner-modal] select.input,
[data-owner-modal] select.select {
  padding-right: 38px;
}

[data-owner-modal] .textarea-input {
  height: auto;
  min-height: 82px;
  max-height: none;
  padding-top: var(--admin-space-normal);
  padding-bottom: var(--admin-space-normal);
  line-height: 1.4;
}

[data-owner-modal] .input:hover:not(:disabled):not([readonly]),
[data-owner-modal] .select:hover:not(:disabled) {
  border-color: rgba(0, 125, 97, 0.44);
}

[data-owner-modal] .input:focus,
[data-owner-modal] .select:focus,
[data-owner-modal] textarea:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(18, 201, 155, 0.15);
}

[data-owner-modal] .input[readonly],
[data-owner-modal] .input:disabled,
[data-owner-modal] .select:disabled {
  opacity: 1;
  border-color: rgba(10, 37, 37, 0.12);
  color: #657477;
  background: #f2f5f3;
  cursor: not-allowed;
}

[data-owner-modal] .input[aria-invalid="true"],
[data-owner-modal] .select[aria-invalid="true"],
[data-owner-modal] .input:user-invalid,
[data-owner-modal] .select:user-invalid {
  border-color: #d92d20;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.12);
}

[data-owner-modal] .owner-search-input {
  padding-left: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23627073' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E");
  background-position: 14px center;
  background-repeat: no-repeat;
  background-size: 18px;
}

[data-owner-modal] .owner-modal-section-heading {
  align-self: end;
  margin: 0;
}

[data-owner-modal] .product-modal-grid > .owner-modal-section-heading:not(:first-child) {
  margin-top: var(--admin-space-small);
  padding-top: var(--admin-space-field);
  border-top: 1px solid rgba(10, 37, 37, 0.1);
}

[data-owner-modal] .owner-switch {
  min-height: var(--admin-control-height);
  align-self: start;
  gap: var(--admin-space-normal);
  padding: var(--admin-space-normal);
  border-radius: var(--admin-control-radius);
}

[data-owner-modal] .owner-switch input {
  flex: 0 0 auto;
}

[data-owner-modal] .owner-supplier-form-grid .owner-switch {
  grid-column: 1 / -1;
}

[data-owner-modal] .product-image-upload {
  min-height: 104px;
  padding: var(--admin-space-field);
  border-radius: var(--admin-control-radius);
}

[data-owner-modal] .product-preview {
  gap: var(--admin-space-small);
  padding: var(--admin-space-normal);
  border-radius: var(--admin-control-radius);
}

[data-owner-modal] .product-preview-token {
  width: 56px;
  height: 56px;
}

[data-owner-modal] .product-preview strong {
  font-size: 17px;
}

[data-owner-modal] .product-preview-price {
  font-size: 23px;
}

[data-owner-modal] .product-modal-actions {
  align-items: center;
  gap: var(--admin-space-normal);
  padding: var(--admin-space-normal) var(--admin-space-section) var(--admin-space-field);
}

[data-owner-modal] .product-modal-actions .btn {
  min-height: 42px;
  border-radius: 12px;
}

[data-owner-modal][data-owner-modal-saving="true"] .product-modal,
[data-owner-modal] [data-owner-modal-saving="true"] {
  cursor: progress;
}

[data-owner-modal] .btn[aria-busy="true"] {
  opacity: 0.72;
  cursor: progress;
}

[data-owner-modal] .inventory-operation-modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

[data-owner-modal] .owner-modal-section {
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  column-gap: var(--admin-space-normal);
  row-gap: var(--admin-space-normal);
  padding: 0 0 var(--admin-space-normal);
  margin: 0 0 var(--admin-space-normal);
}

[data-owner-modal] .owner-modal-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

[data-owner-modal] .owner-modal-section-product {
  grid-template-columns: minmax(0, 1fr);
}

[data-owner-modal] .owner-modal-section-general {
  grid-template-columns: minmax(280px, 1.6fr) minmax(220px, 0.9fr);
}

[data-owner-modal] .owner-modal-section-operation {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

[data-owner-modal] .owner-modal-section-operation > h4,
[data-owner-modal] .owner-modal-section-operation > .owner-modal-field-wide {
  grid-column: 1 / -1;
}

[data-owner-modal] .owner-modal-field-lot {
  grid-column: 1 / 9;
}

[data-owner-modal] .owner-modal-field-quantity {
  grid-column: 9 / -1;
}

[data-owner-modal] .owner-modal-field-direction,
[data-owner-modal] .owner-modal-field-reason {
  grid-column: 1 / 5;
}

[data-owner-modal] .owner-modal-field-description {
  grid-column: 5 / -1;
}

[data-owner-modal] .owner-modal-section-operation > .owner-modal-field-supplier {
  grid-column: 1 / 9;
}

[data-owner-modal] [data-owner-stock-receipt-lines] {
  display: grid;
  gap: 0;
}

[data-owner-modal] .receipt-lot-line {
  grid-template-columns: minmax(110px, 0.65fr) minmax(250px, 1.45fr) minmax(170px, 0.9fr) minmax(190px, 1fr);
  align-items: start;
  column-gap: var(--admin-space-normal);
  row-gap: var(--admin-space-small);
  padding: var(--admin-space-normal) 0;
  border-top: 1px solid rgba(10, 37, 37, 0.1);
}

[data-owner-modal] .receipt-lot-line:first-child {
  padding-top: 0;
  border-top: 0;
}

[data-owner-modal] .receipt-lot-line [data-owner-stock-remove-line] {
  grid-column: 4;
  justify-self: end;
  min-height: 34px;
}

[data-owner-modal] .receipt-lot-line:only-child [data-owner-stock-remove-line] {
  display: none;
}

[data-owner-modal] .owner-modal-section-lots > .small-btn {
  grid-column: 1;
  min-height: 38px;
  margin-top: var(--admin-space-micro);
}

[data-owner-modal] .owner-modal-section-lots > .business-hint {
  grid-column: 2;
  align-self: end;
  justify-self: stretch;
}

[data-owner-modal] .business-hint {
  gap: var(--admin-space-micro);
  padding: var(--admin-space-normal);
  border-radius: var(--admin-control-radius);
  font-size: 13px;
  line-height: 1.35;
}

@media (max-width: 760px) {
  :root {
    --admin-control-height: 48px;
  }

  [data-owner-modal].product-modal-backdrop {
    padding:
      max(8px, env(safe-area-inset-top))
      max(8px, env(safe-area-inset-right))
      max(8px, env(safe-area-inset-bottom))
      max(8px, env(safe-area-inset-left));
  }

  [data-owner-modal] .product-modal {
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - max(16px, env(safe-area-inset-top)) - max(16px, env(safe-area-inset-bottom)));
  }

  [data-owner-modal] .product-modal-head {
    padding: var(--admin-space-field);
  }

  [data-owner-modal] .product-modal-head h3 {
    font-size: 23px;
  }

  [data-owner-modal] .owner-modal-close {
    width: 48px;
    height: 48px;
  }

  [data-owner-modal] .product-modal-body {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--admin-space-field);
    padding: var(--admin-space-field);
  }

  [data-owner-modal] .product-modal-grid,
  [data-owner-modal] .owner-modal-section,
  [data-owner-modal] .owner-modal-section-general,
  [data-owner-modal] .owner-modal-section-operation,
  [data-owner-modal] .receipt-lot-line {
    grid-template-columns: minmax(0, 1fr);
  }

  [data-owner-modal] .owner-modal-section {
    row-gap: var(--admin-space-normal);
    margin-bottom: var(--admin-space-field);
    padding-bottom: var(--admin-space-field);
  }

  [data-owner-modal] .owner-modal-section-operation > *,
  [data-owner-modal] .owner-modal-field-lot,
  [data-owner-modal] .owner-modal-field-quantity,
  [data-owner-modal] .owner-modal-field-direction,
  [data-owner-modal] .owner-modal-field-reason,
  [data-owner-modal] .owner-modal-field-description,
  [data-owner-modal] .owner-modal-section-operation > .owner-modal-field-supplier,
  [data-owner-modal] .receipt-lot-line [data-owner-stock-remove-line] {
    grid-column: 1;
  }

  [data-owner-modal] .owner-modal-section-lots > .business-hint {
    grid-column: 1;
  }

  [data-owner-modal] .receipt-lot-line {
    row-gap: var(--admin-space-normal);
    padding: var(--admin-space-field) 0;
  }

  [data-owner-modal] .receipt-lot-line [data-owner-stock-remove-line] {
    justify-self: stretch;
    width: 100%;
    min-height: 42px;
  }

  [data-owner-modal] .product-modal-actions {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
    padding: var(--admin-space-normal) var(--admin-space-field) max(var(--admin-space-normal), env(safe-area-inset-bottom));
  }

  [data-owner-modal] .product-modal-actions .btn {
    width: 100%;
    min-width: 0;
    min-height: 48px;
  }
}


/* Client visual unification v221: BoxMarket green and white design system. */
:root {
  --client-safe-top: env(safe-area-inset-top, 0px);
  --client-safe-bottom: env(safe-area-inset-bottom, 0px);
  --client-header-content-height: 62px;
  --client-nav-height: 84px;
  --client-floating-bar-height: 72px;
  --client-floating-gap: var(--ds-space-3);
  --scan-purchase-actions-height: 80px;
  --client-content-bottom: calc(var(--client-nav-height) + var(--client-safe-bottom) + var(--ds-space-5));
  --client-content-bottom-with-bar: calc(var(--client-nav-height) + var(--client-floating-bar-height) + var(--client-floating-gap) + var(--client-safe-bottom) + var(--ds-space-5));
}

body:has(.client-shell) {
  scroll-padding-top: calc(var(--client-header-content-height) + var(--client-safe-top) + var(--ds-space-4));
  scroll-padding-bottom: var(--client-content-bottom);
}

body:not(:has(.owner-shell)):not(:has(.admin-auth-page)) {
  color: var(--ds-ink);
  background: var(--ds-soft);
}

.client-shell {
  position: relative;
  max-width: 480px;
  min-height: 100dvh;
  overflow-x: clip;
  overflow-y: visible;
  color: var(--ds-ink);
  background: var(--ds-soft);
  box-shadow: 0 0 0 1px var(--ds-line);
}

.client-main,
.client-main.pattern-bg,
.menu-screen.pattern-bg,
.how-to-buy-page.pattern-bg {
  min-height: calc(100dvh - var(--client-header-content-height) - var(--client-safe-top));
  color: var(--ds-ink);
  background: var(--ds-soft);
}

.client-main.pattern-bg::before,
.menu-screen.pattern-bg::before,
.how-to-buy-page.pattern-bg::before {
  display: none;
}

.client-header,
.client-header.home-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: calc(var(--client-header-content-height) + var(--client-safe-top));
  padding: max(calc(var(--client-safe-top) + var(--ds-space-2)), 34px) var(--ds-space-4) var(--ds-space-2);
  color: #ffffff;
  border-bottom: 1px solid rgba(226, 235, 230, .18);
  background: rgba(23, 35, 37, .97);
  box-shadow: 0 8px 24px rgba(23, 35, 37, .14);
  backdrop-filter: blur(18px);
}

.client-header.home-header {
  grid-template-columns: minmax(0, 1fr) 48px;
}

.client-header .home-user-chip,
.client-header .home-menu-btn,
.client-header .icon-btn,
.client-header .avatar {
  min-width: 48px;
  min-height: 48px;
}

.client-header .home-user-chip { min-width: 0; }
.client-header .home-menu-btn,
.client-header .icon-btn { width: 48px; height: 48px; background: rgba(255, 255, 255, .1); }
.client-header .avatar { width: 48px; height: 48px; border-color: rgba(255, 255, 255, .54); background: var(--ds-primary-dark); }
.client-header .mini-avatar { width: 34px; height: 34px; min-width: 34px; min-height: 34px; }

.client-page,
.ds-page,
.ds-home,
.home-dashboard {
  width: 100%;
  max-width: 760px;
  min-width: 0;
  margin: 0 auto;
  padding: var(--ds-space-4);
  padding-bottom: var(--ds-space-5);
  color: var(--ds-ink);
  scroll-padding-top: calc(var(--client-header-content-height) + var(--client-safe-top) + var(--ds-space-4));
  scroll-padding-bottom: var(--client-content-bottom);
}

.client-shell.with-bottom-nav .client-page,
.client-shell.with-bottom-nav .ds-page,
.client-shell.with-bottom-nav .ds-home,
.client-shell.with-bottom-nav .delivery-page,
.client-shell.with-bottom-nav .cart-page,
.client-shell.with-bottom-nav .delivery-cart-page {
  padding-bottom: var(--client-content-bottom);
}

.client-shell.with-bottom-nav.route-store .client-page,
.client-shell.with-bottom-nav.route-delivery .client-page.has-delivery-cart-bar,
.client-shell.with-bottom-nav.route-scan-product .client-page,
.client-shell.with-active-delivery-notice.with-bottom-nav .client-page,
.client-shell.with-active-delivery-notice.with-bottom-nav .ds-page,
.client-shell.with-active-delivery-notice.with-bottom-nav .ds-home {
  padding-bottom: var(--client-content-bottom-with-bar);
  scroll-padding-bottom: var(--client-content-bottom-with-bar);
}

.client-shell.with-bottom-nav.route-cart .client-page,
.client-shell.with-bottom-nav.route-delivery-cart .client-page {
  padding-bottom: var(--client-content-bottom);
}

.client-shell .white-card,
.client-shell .ds-card,
.client-shell .home-panel,
.client-shell .purchase-card,
.client-shell .delivery-order-card,
.client-shell .delivery-checkout-note,
.client-shell .cart-item,
.client-shell .delivery-filters,
.client-shell .scan-cart-panel {
  min-width: 0;
  color: var(--ds-ink);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-md);
  background: var(--ds-surface);
  box-shadow: var(--ds-shadow-card);
}

.client-shell .white-card,
.client-shell .ds-card { padding: var(--ds-space-4); }
.client-shell .white-card h2,
.client-shell .white-card h3,
.client-shell .ds-card h2,
.client-shell .ds-card h3 { color: var(--ds-ink); }
.client-shell .white-card p,
.client-shell .ds-card p { color: var(--ds-muted); }

.client-shell .section-kicker,
.client-shell .ds-eyebrow,
.client-shell .profile-eyebrow,
.client-shell .menu-group-title {
  color: var(--ds-primary-dark);
}

:is(.client-shell, .auth-page, .first-run-page, .public-app-page) .btn,
:is(.client-shell, .auth-page, .first-run-page, .public-app-page) .ds-button,
:is(.client-shell, .auth-page, .first-run-page, .public-app-page) .onboarding-finish,
:is(.client-shell, .auth-page, .first-run-page, .public-app-page) .install-primary {
  min-height: var(--ds-touch-target);
  padding-inline: var(--ds-space-4);
  border-radius: var(--ds-radius-pill);
  color: #ffffff;
  border: 1px solid transparent;
  background: var(--ds-primary);
  box-shadow: 0 6px 14px rgba(85, 185, 130, .22);
  font-weight: 850;
}

:is(.client-shell, .auth-page, .first-run-page, .public-app-page) .btn.secondary,
:is(.client-shell, .auth-page, .first-run-page, .public-app-page) .ds-button.secondary {
  color: var(--ds-primary-dark);
  border-color: var(--ds-line);
  background: var(--ds-success-soft);
  box-shadow: none;
}

:is(.client-shell, .auth-page, .first-run-page, .public-app-page) .btn.ghost,
:is(.client-shell, .auth-page, .first-run-page, .public-app-page) .ds-button.outline {
  color: var(--ds-primary-dark);
  border-color: var(--ds-primary);
  background: var(--ds-surface);
  box-shadow: none;
}

:is(.client-shell, .auth-page, .first-run-page, .public-app-page) .btn.compact,
:is(.client-shell, .auth-page, .first-run-page, .public-app-page) .small-btn,
:is(.client-shell, .auth-page, .first-run-page, .public-app-page) .compact {
  min-height: var(--ds-touch-target);
  padding-inline: var(--ds-space-3);
  border-radius: var(--ds-radius-pill);
}

:is(.client-shell, .auth-page, .first-run-page, .public-app-page) .btn:disabled,
:is(.client-shell, .auth-page, .first-run-page, .public-app-page) .ds-button:disabled,
.client-shell .ds-add-button:disabled,
.client-shell .qty-controls button:disabled {
  cursor: not-allowed;
  color: var(--ds-muted);
  border-color: var(--ds-line);
  background: #e8eeeb;
  box-shadow: none;
  opacity: 1;
}

:is(.client-shell, .auth-page, .first-run-page, .public-app-page) button:focus-visible,
:is(.client-shell, .auth-page, .first-run-page, .public-app-page) a:focus-visible,
:is(.client-shell, .auth-page, .first-run-page, .public-app-page) input:focus-visible,
:is(.client-shell, .auth-page, .first-run-page, .public-app-page) select:focus-visible,
:is(.client-shell, .auth-page, .first-run-page, .public-app-page) textarea:focus-visible,
:is(.client-shell, .auth-page, .first-run-page, .public-app-page) [tabindex]:focus-visible {
  outline: 3px solid var(--ds-focus-ring);
  outline-offset: 2px;
}

:is(.client-shell, .auth-page, .first-run-page, .public-app-page) .input,
:is(.client-shell, .auth-page, .first-run-page, .public-app-page) .select,
:is(.client-shell, .auth-page, .first-run-page, .public-app-page) .ds-input,
:is(.client-shell, .auth-page, .first-run-page, .public-app-page) textarea.input {
  min-height: var(--ds-touch-target);
  padding-inline: var(--ds-space-4);
  color: var(--ds-ink);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-md);
  background: var(--ds-surface);
}

:is(.client-shell, .auth-page, .first-run-page, .public-app-page) .input:focus,
:is(.client-shell, .auth-page, .first-run-page, .public-app-page) .select:focus,
:is(.client-shell, .auth-page, .first-run-page, .public-app-page) .ds-input:focus,
:is(.client-shell, .auth-page, .first-run-page, .public-app-page) textarea.input:focus {
  border-color: var(--ds-primary);
  box-shadow: 0 0 0 3px var(--ds-focus-ring);
}

.client-shell .field,
.auth-page .field { gap: var(--ds-space-2); }
.client-shell .field span,
.auth-page .field span { color: var(--ds-muted); }

.client-shell .ds-badge,
.client-shell .badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--ds-space-1) var(--ds-space-3);
  border-radius: var(--ds-radius-pill);
  color: var(--ds-primary-dark);
  background: var(--ds-success-soft);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
}

.client-shell .ds-badge.is-pending,
.client-shell .badge.warn {
  color: var(--ds-ink);
  border: 1px solid var(--ds-primary);
  background: var(--ds-surface);
}

.client-shell .ds-badge.is-danger,
.client-shell .badge.danger {
  color: var(--ds-danger);
  border-color: rgba(217, 74, 74, .2);
  background: var(--ds-danger-soft);
}

.client-shell .ds-state,
.client-shell .empty-state {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: var(--ds-space-2);
  padding: var(--ds-space-6) var(--ds-space-4);
  color: var(--ds-muted);
  border: 1px dashed var(--ds-line);
  border-radius: var(--ds-radius-md);
  background: var(--ds-surface);
  text-align: center;
}

.client-shell .ds-state .ds-button,
.client-shell .empty-state .btn { margin-top: var(--ds-space-2); }
.ds-state-icon { color: var(--ds-primary-dark); background: var(--ds-success-soft); }
.ds-spinner { width: 20px; height: 20px; display: block; border: 3px solid var(--ds-line); border-top-color: var(--ds-primary); border-radius: 50%; animation: spin .8s linear infinite; }

.ds-home { display: grid; gap: var(--ds-space-4); }
.ds-home-hero {
  padding: var(--ds-space-5);
  color: var(--ds-ink);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-surface);
  box-shadow: var(--ds-shadow-card);
}
.ds-home-hero h1 { margin-block: var(--ds-space-2); }
.ds-home-hero p { margin-bottom: var(--ds-space-5); }
.ds-home-brand { width: 100%; display: block; text-align: center; }
.ds-home-actions { width: 100%; max-width: 100%; gap: var(--ds-space-3); }
.ds-home-actions .ds-local-cta { width: 100%; }
.ds-delivery-cta {
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-3);
  padding: var(--ds-space-3) var(--ds-space-4);
  color: var(--ds-ink);
  border: 1px solid rgba(61, 155, 109, .28);
  border-radius: var(--ds-radius-md);
  background: linear-gradient(145deg, var(--ds-surface), var(--ds-success-soft));
  box-shadow: var(--ds-shadow-card);
  text-align: left;
}
.ds-delivery-cta:focus-visible { outline: 3px solid rgba(85, 185, 130, .28); outline-offset: 2px; }
.ds-delivery-copy { min-width: 0; display: grid; gap: var(--ds-space-1); }
.ds-delivery-copy strong { color: var(--ds-primary-dark); font-size: 18px; line-height: 1.2; }
.ds-delivery-copy small { color: var(--ds-muted); font-size: 14px; line-height: 1.35; }
.ds-delivery-arrow {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: var(--ds-radius-pill);
  background: var(--ds-primary-dark);
  font-size: 26px;
  line-height: 1;
}
.ds-welcome { margin: 0 var(--ds-space-1); }
.ds-welcome strong { line-height: 1.25; }
.ds-home-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-3);
  margin: 0;
  padding: var(--ds-space-4);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-md);
  background: var(--ds-surface);
  box-shadow: var(--ds-shadow-card);
}
.ds-home-summary > div { min-width: 0; display: grid; gap: var(--ds-space-1); }
.ds-home-summary span { color: var(--ds-muted); font-size: 14px; line-height: 1.4; }
.ds-home-summary .ds-button { flex: 0 0 auto; }

.home-pending-delivery-card {
  color: var(--ds-ink);
  border-color: var(--ds-line);
  border-radius: var(--ds-radius-md);
  background: var(--ds-surface);
  box-shadow: var(--ds-shadow-card);
}
.home-pending-delivery-card p { color: var(--ds-muted); }

.ds-catalog { gap: var(--ds-space-4); }
.ds-catalog-head { align-items: flex-end; }
.ds-category-row {
  width: calc(100% + (2 * var(--ds-space-4)));
  margin-inline: calc(-1 * var(--ds-space-4));
  padding: var(--ds-space-1) var(--ds-space-4) var(--ds-space-2);
  scroll-padding-inline: var(--ds-space-4);
  overscroll-behavior-inline: contain;
}
.ds-category-card { min-width: 76px; min-height: 76px; padding-block: var(--ds-space-1); }
.ds-category-card span { flex: 0 0 auto; }
.ds-category-card strong { text-transform: none; }

.ds-product-grid { align-items: stretch; gap: var(--ds-space-3); }
.ds-product-card {
  min-width: 0;
  height: 100%;
  grid-template-rows: auto minmax(76px, 1fr) auto;
  gap: var(--ds-space-3);
  padding: var(--ds-space-3);
  border-color: var(--ds-line);
  border-radius: var(--ds-radius-md);
  background: var(--ds-surface);
  box-shadow: var(--ds-shadow-card);
}
.ds-product-image { width: 100%; aspect-ratio: 4 / 3; background: var(--ds-soft); }
.ds-product-image img { object-fit: contain; }
.ds-product-info { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.ds-product-info h3 { width: 100%; min-height: 2.5em; margin: var(--ds-space-1) 0 0; display: -webkit-box; overflow: hidden; white-space: normal; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ds-product-info em { min-height: 18px; }
.ds-product-action { min-width: 0; min-height: 48px; align-items: center; flex-wrap: wrap; }
.ds-price,
.ds-product-action > strong { color: var(--ds-ink); font-size: 17px; line-height: 1.15; overflow-wrap: anywhere; }
.ds-add-button { min-width: 76px; min-height: 48px; padding-inline: var(--ds-space-3); font-size: 12px; }
.ds-quantity { min-height: 48px; padding: var(--ds-space-1); gap: var(--ds-space-1); }
.ds-quantity button { width: var(--ds-touch-target); height: var(--ds-touch-target); min-width: var(--ds-touch-target); min-height: var(--ds-touch-target); }
.ds-product-card.is-unavailable { opacity: 1; }
.ds-product-card.is-unavailable .ds-product-image,
.ds-product-card.is-unavailable .ds-product-info { opacity: .62; }

.ds-bottom-nav {
  bottom: max(var(--ds-space-2), var(--client-safe-bottom));
  z-index: 70;
  min-height: 76px;
  border-color: var(--ds-line);
  background: rgba(255, 255, 255, .97);
}
.ds-bottom-nav button { min-height: 52px; text-transform: none; }
.ds-bottom-nav button.active { color: var(--ds-primary-dark); }
.ds-bottom-nav .ds-bottom-scan { color: #ffffff; border-color: var(--ds-soft); background: var(--ds-ink); }

.ds-cart-bar,
.cart-bar,
.delivery-cart-bar,
.scan-cart-actions,
.active-delivery-notice {
  bottom: calc(var(--client-nav-height) + var(--client-safe-bottom) + var(--client-floating-gap));
  z-index: 65;
}

.ds-cart-bar,
.cart-bar,
.delivery-cart-bar,
.scan-cart-actions {
  width: min(456px, calc(100% - (2 * var(--ds-space-3))));
  min-height: var(--client-floating-bar-height);
  padding: var(--ds-space-3) var(--ds-space-4);
  color: var(--ds-ink);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-md);
  background: var(--ds-surface);
  box-shadow: var(--ds-shadow-float);
}

.ds-cart-bar span,
.cart-bar span,
.delivery-cart-bar span { color: var(--ds-primary-dark); }
.ds-cart-bar .btn,
.cart-bar .btn,
.delivery-cart-bar .btn { color: #ffffff; background: var(--ds-primary); }

.active-delivery-card { border-color: var(--ds-line); border-radius: var(--ds-radius-md); background: var(--ds-surface); box-shadow: var(--ds-shadow-float); }
.active-delivery-icon { color: #ffffff; background: var(--ds-primary-dark); }

.purchases-page,
.purchase-detail-page,
.delivery-page,
.diagnostics-page,
.legal-page { display: grid; gap: var(--ds-space-3); }

.purchases-head-card,
.delivery-hero,
.purchase-detail-hero {
  color: var(--ds-ink);
  border-color: var(--ds-line);
  background: var(--ds-surface);
  box-shadow: var(--ds-shadow-card);
}
.purchases-head-card .section-kicker,
.delivery-hero .section-kicker,
.purchase-detail-hero .section-kicker { color: var(--ds-primary-dark); }
.purchases-head-card p,
.delivery-hero p,
.purchase-detail-hero p { color: var(--ds-muted); }
.purchases-head-card .badge,
.delivery-hero .badge { color: var(--ds-primary-dark); background: var(--ds-success-soft); }

.history-list { gap: var(--ds-space-3); }
.purchase-card { gap: var(--ds-space-3); padding: var(--ds-space-4); background: var(--ds-surface); }
.purchase-card-top { grid-template-columns: 48px minmax(0, 1fr) auto; gap: var(--ds-space-3); }
.purchase-card-id,
.purchase-card-id strong,
.receipt-card-head > div,
.receipt-card-head strong { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.purchase-card-id strong { line-height: 1.3; }
.purchase-card-total { align-self: center; color: var(--ds-ink); font-size: 20px; }
.purchase-card-body,
.receipt-meta-grid > div,
.receipt-lines,
.receipt-total-row {
  color: var(--ds-ink);
  border-color: var(--ds-line);
  background: var(--ds-soft);
}
.purchase-card-body { padding: var(--ds-space-3); border-radius: var(--ds-radius-sm); }
.purchase-card-body strong,
.purchase-card-body small { color: var(--ds-muted); overflow-wrap: anywhere; }
.purchase-ok { color: var(--ds-primary-dark); border-color: var(--ds-primary); background: var(--ds-success-soft); }
.purchase-ok.warn { color: var(--ds-ink); border: 1px solid var(--ds-primary); background: var(--ds-surface); }
.purchase-ok.danger { color: var(--ds-danger); background: var(--ds-danger-soft); }
.purchase-card-actions { min-width: 0; }
.purchase-card-actions .btn { min-width: 112px; }
.purchase-detail-total { color: var(--ds-ink); }
.receipt-card-head { min-width: 0; align-items: flex-start; }
.receipt-meta-grid { gap: var(--ds-space-2); }
.receipt-meta-grid > div { min-width: 0; padding: var(--ds-space-3); border: 1px solid var(--ds-line); border-radius: var(--ds-radius-sm); }
.receipt-product-line { min-width: 0; }
.receipt-product-line > span { min-width: 0; overflow-wrap: anywhere; }
.receipt-product-line > strong { color: var(--ds-ink); }
.receipt-product-line small { color: var(--ds-primary-dark); }

.promotions-page { display: grid; gap: var(--ds-space-3); }
.promo-hero-card {
  position: relative;
  padding: var(--ds-space-5);
  color: var(--ds-ink);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-surface);
  box-shadow: var(--ds-shadow-card);
}
.promo-hero-card::after { display: none; }
.promo-hero-card span,
.promo-card em { color: var(--ds-primary-dark); }
.promo-hero-card p,
.promo-card span,
.promo-card small { color: var(--ds-muted); }
.promo-list { gap: var(--ds-space-3); }
.promo-card {
  min-width: 0;
  padding: var(--ds-space-3);
  color: var(--ds-ink);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-md);
  background: var(--ds-surface);
  box-shadow: var(--ds-shadow-card);
}
.promo-product-visual { color: var(--ds-primary-dark); background: var(--ds-soft); }
.promo-card em { border-color: var(--ds-line); background: var(--ds-success-soft); }

.delivery-filters { background: var(--ds-surface); }
.delivery-product-list { gap: var(--ds-space-3); scroll-padding-bottom: var(--client-content-bottom-with-bar); }
.delivery-product-card,
.delivery-product-card:nth-child(even) { color: var(--ds-ink); border-color: var(--ds-line); background: var(--ds-surface); }
.delivery-product-visual,
.cart-product-visual,
.scan-product-visual { color: var(--ds-primary-dark); background: var(--ds-soft); }
.delivery-product-side > strong { color: var(--ds-ink); }
.delivery-product-side .btn.secondary { color: var(--ds-primary-dark); border-color: var(--ds-primary); background: var(--ds-surface); }
.delivery-product-side .qty-controls button,
.qty-controls button,
.scan-qty-controls button { min-width: 48px; min-height: 48px; color: var(--ds-primary-dark); border-color: var(--ds-line); background: var(--ds-success-soft); }
.delivery-checkout-note,
.delivery-sync-note,
.delivery-order-progress { color: var(--ds-ink); border-color: var(--ds-line); background: var(--ds-soft); }
.delivery-order-steps .done { color: var(--ds-primary-dark); }
.delivery-order-steps .done i { border-color: var(--ds-primary); background: var(--ds-primary); }

.cart-page .section-title h2,
.cart-page .section-title p,
.cart-detail-head,
.delivery-cart-page .delivery-hero h2,
.delivery-cart-page .delivery-hero p { color: var(--ds-ink); }
.cart-page .cart-item,
.delivery-cart-list .cart-item,
.delivery-payment-page .cart-item,
.checkout-detail-list .cart-item { color: var(--ds-ink); border-color: var(--ds-line); background: var(--ds-surface); }
.cart-page .cart-item strong,
.delivery-cart-list .cart-item strong,
.cart-page .cart-item b,
.delivery-cart-list .cart-item b { color: var(--ds-ink); }
.cart-page .cart-item span,
.cart-page .cart-item em,
.delivery-cart-list .cart-item span,
.delivery-cart-list .cart-item em { color: var(--ds-muted); }
.cart-page .checkout-box { border-color: var(--ds-line); background: var(--ds-surface); box-shadow: var(--ds-shadow-card); }
.cart-page .payment-option { color: var(--ds-ink); background: var(--ds-soft); }
.client-shell .line-saving,
.client-shell .delivery-product-copy em { color: var(--ds-primary-dark) !important; }

.ds-scan-page .scanner-card,
.product-scanner,
.scanner-card { border-color: var(--ds-line); background: var(--ds-surface); }
.ds-scan-page .scan-label-row,
.product-scanner .scan-label-row { color: #ffffff; background: var(--ds-ink); }
.ds-scan-cart-panel,
.ds-scan-cart-panel .scan-cart-item,
.ds-scan-cart-panel .scan-add-confirm,
.ds-scan-cart-panel .scan-cart-total-chip { color: var(--ds-ink); border-color: var(--ds-line); background: var(--ds-soft); }
.scan-cart-actions { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "cancel total checkout"; transform: translateX(-50%); }
.client-shell:not(.with-bottom-nav) .scan-cart-actions { bottom: var(--client-safe-bottom); }
.client-shell.route-scan-product .product-scan-page {
  padding-bottom: calc(var(--scan-purchase-actions-height) + var(--client-safe-bottom) + var(--ds-space-5));
  scroll-padding-bottom: calc(var(--scan-purchase-actions-height) + var(--client-safe-bottom) + var(--ds-space-5));
}
.client-shell.route-scan-product .scan-cart-list {
  padding-bottom: 0;
  scroll-padding-bottom: var(--scan-purchase-list-inset, calc(var(--scan-purchase-actions-height) + var(--client-safe-bottom) + var(--ds-space-5)));
}
.client-shell.route-scan-product .scan-cart-list::after {
  content: "";
  display: block;
  grid-column: 1 / -1;
  min-height: var(--scan-purchase-list-inset, calc(var(--scan-purchase-actions-height) + var(--client-safe-bottom) + var(--ds-space-5)));
  pointer-events: none;
}
.scan-cancel-purchase { min-height: 48px; color: #8d211b; border-color: #e6b8b4; background: #fff5f4; }
.bag-icon { color: #ffffff; background: var(--ds-primary-dark); }
.checkout-pill { min-height: 48px; color: #ffffff; border-radius: var(--ds-radius-pill); background: var(--ds-primary); }

.menu-screen { min-height: calc(100dvh - var(--client-header-content-height) - var(--client-safe-top)); }
.menu-screen .screen-content { display: grid; gap: var(--ds-space-4); padding: var(--ds-space-4) var(--ds-space-4) var(--client-content-bottom); }
.client-shell.with-active-delivery-notice .menu-screen .screen-content { padding-bottom: var(--client-content-bottom-with-bar); scroll-padding-bottom: var(--client-content-bottom-with-bar); }
.menu-profile,
.menu-item { color: var(--ds-ink); border: 1px solid var(--ds-line); background: var(--ds-surface); box-shadow: var(--ds-shadow-card); }
.menu-icon { color: var(--ds-primary-dark); border-color: var(--ds-line); background: var(--ds-success-soft); }

.legal-alert-card { border-color: var(--ds-line); background: var(--ds-soft); }
.legal-alert-card p,
.legal-section-card p { color: var(--ds-muted); }
.legal-meta-row strong { color: var(--ds-primary-dark); }

.auth-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-2);
  color: var(--ds-muted);
  font-size: 13px;
}

.auth-legal-links button {
  min-height: 48px;
  padding-inline: var(--ds-space-2);
  color: var(--ds-primary-dark);
  background: transparent;
  font: inherit;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.client-header-spacer {
  width: 48px;
  height: 48px;
}

.about-page {
  display: grid;
  gap: var(--ds-space-3);
}

.about-hero-card,
.about-news-card,
.about-links-card {
  display: grid;
  gap: var(--ds-space-3);
}

.about-hero-card h2,
.about-hero-card p,
.about-links-card h3 {
  margin: 0;
}

.about-hero-card p,
.about-release-note li {
  color: var(--ds-muted);
  line-height: 1.5;
}

.about-version-card {
  display: grid;
  gap: var(--ds-space-1);
  padding: var(--ds-space-3);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-sm);
  background: var(--ds-soft);
}

.about-version-card strong {
  overflow-wrap: anywhere;
  color: var(--ds-ink);
  font-size: 17px;
}

.about-version-card span,
.about-release-note div span {
  color: var(--ds-muted);
  font-size: 13px;
}

.about-release-note {
  display: grid;
  gap: var(--ds-space-2);
}

.about-release-note div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--ds-space-2);
}

.about-release-note ul {
  display: grid;
  gap: var(--ds-space-2);
  margin: 0;
  padding-left: 20px;
}

.about-link {
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--ds-space-3);
  padding: 0 var(--ds-space-3);
  color: var(--ds-ink);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-sm);
  background: var(--ds-surface);
  text-align: left;
}

.about-link strong {
  color: var(--ds-primary-dark);
  font-size: 22px;
}

.scan-product-visual,
.product-visual,
.stock-product-id,
.product-preview-token,
.delivery-product-visual,
.promo-product-visual,
.cart-product-visual,
.receipt-product-visual,
.owner-sale-product-visual,
.scanned-product-image,
.ds-product-image {
  display: grid;
  place-items: center;
  overflow: hidden;
}

.scan-product-visual img,
.product-visual img,
.stock-product-id img,
.product-preview-token img,
.delivery-product-visual img,
.promo-product-visual img,
.cart-product-visual img,
.receipt-product-visual img,
.owner-sale-product-visual img,
.scanned-product-image img,
.ds-product-image img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: scale-down;
  object-position: center;
}

.how-to-buy-page {
  height: calc(100dvh - var(--client-header-content-height) - var(--client-safe-top));
  min-height: 0;
  padding: var(--ds-space-3) var(--ds-space-4) calc(var(--client-nav-height) + var(--client-safe-bottom) + var(--ds-space-4));
  overflow: hidden;
}

.client-shell.with-bottom-nav .how-to-buy-page {
  padding-bottom: calc(var(--client-nav-height) + var(--client-safe-bottom) + var(--ds-space-4));
}

.how-to-buy-page .onboarding-skip {
  top: var(--ds-space-4);
  right: calc(var(--ds-space-4) + var(--ds-space-2));
}

.how-to-buy-page .onboarding-card {
  width: min(100%, 400px);
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.how-to-buy-scroll {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto auto;
  justify-items: center;
  align-content: start;
  gap: var(--ds-space-3);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--ds-space-5) var(--ds-space-3) var(--ds-space-4);
  scroll-padding-bottom: var(--ds-space-4);
}

.how-to-buy-page .onboarding-illustration {
  width: min(270px, 100%);
  align-self: center;
}

.how-to-buy-page .onboarding-illustration svg {
  max-height: 220px;
}

.how-to-buy-controls {
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--ds-space-2);
  padding: var(--ds-space-2) var(--ds-space-3) max(var(--ds-space-2), env(safe-area-inset-bottom));
  border-top: 1px solid var(--ds-line);
  background: var(--ds-surface);
  box-shadow: 0 -8px 22px rgba(23, 35, 37, .08);
}

.how-to-buy-controls > strong {
  color: var(--ds-muted);
  font-size: 13px;
  white-space: nowrap;
}

.how-to-buy-action {
  min-width: 0;
  min-height: 48px;
  padding-inline: var(--ds-space-2);
  color: var(--ds-primary-dark);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-pill);
  background: var(--ds-surface);
  font-size: 13px;
  font-weight: 900;
}

.how-to-buy-action.next {
  justify-self: stretch;
  color: #ffffff;
  border-color: var(--ds-primary);
  background: var(--ds-primary);
}

.how-to-buy-action:disabled {
  opacity: .4;
}

.profile-avatar,
.kyc-icon { color: #ffffff; background: var(--ds-primary-dark); }
.profile-identity-lock,
.diagnostic-events li,
.kyc-progress,
.kyc-capture { border-color: var(--ds-line); background: var(--ds-soft); }
.kyc-capture.done { border-color: var(--ds-primary); background: var(--ds-success-soft); }
.kyc-steps b { color: #ffffff; background: var(--ds-primary-dark); }
.kyc-capture-icon,
.kyc-capture em { color: var(--ds-primary-dark); }
.status-spinner { border-color: var(--ds-line); border-top-color: var(--ds-primary); }

.phone-card { color: var(--ds-ink); border: 1px solid var(--ds-line); background: var(--ds-surface); box-shadow: var(--ds-shadow-card); }
.phone-form h2,
.phone-field span,
.otp-summary strong { color: var(--ds-ink); }
.phone-field .input { color: var(--ds-ink); border-color: var(--ds-line); background: var(--ds-surface); }
.phone-field .input::placeholder { color: var(--ds-muted); }
.link-button,
.secondary-link-button { min-height: 48px; color: var(--ds-primary-dark); }

.payment-return-card .payment-return-icon.is-approved { color: var(--ds-primary-dark); background: var(--ds-success-soft); }
.payment-return-card .payment-return-icon.is-pending { color: var(--ds-primary-dark); border: 1px solid var(--ds-primary); background: var(--ds-surface); }
.payment-return-card .payment-return-icon.is-failed { color: var(--ds-danger); background: var(--ds-danger-soft); }

.quick-auth-page {
  min-height: 100dvh;
  padding: max(var(--ds-space-4), var(--client-safe-top)) var(--ds-space-4) max(var(--ds-space-4), var(--client-safe-bottom));
  color: var(--ds-ink);
  background: var(--ds-soft) !important;
}
.quick-auth-page .quick-login-card {
  width: min(100%, 440px);
  min-height: auto;
  padding: var(--ds-space-5);
  color: var(--ds-ink);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-surface) !important;
  box-shadow: var(--ds-shadow-float);
  backdrop-filter: none;
}
.quick-auth-page .language-chip { top: var(--ds-space-3); right: var(--ds-space-3); width: 48px; height: 48px; color: var(--ds-primary-dark); background: var(--ds-soft); }
.quick-auth-page .quick-login-copy h1,
.quick-auth-page .quick-auth-form h2,
.quick-auth-page .quick-auth-form .field span { color: var(--ds-ink); }
.quick-auth-page .quick-login-copy p,
.quick-auth-page .quick-auth-form p,
.quick-auth-page .installed-auth-note,
.quick-auth-page .tiny-note { color: var(--ds-muted); }
.quick-auth-page .social-btn { min-height: 56px; border: 1px solid var(--ds-line); border-radius: var(--ds-radius-md); box-shadow: var(--ds-shadow-card); }
.quick-auth-page .social-btn.apple,
.quick-auth-page .social-btn.quick { color: #ffffff; background: var(--ds-ink); }
.quick-auth-page .social-btn.google { color: var(--ds-ink); background: var(--ds-surface); }
.quick-auth-page .auth-last-chip { color: var(--ds-primary-dark); background: var(--ds-success-soft); }
.quick-auth-page .login-help-action,
.quick-auth-page .login-help-action span:last-child { min-height: 48px; color: var(--ds-primary-dark); }
.quick-auth-page .quick-auth-form { border-color: var(--ds-line); border-radius: var(--ds-radius-md); background: var(--ds-soft); backdrop-filter: none; }
.quick-auth-page .quick-auth-form .auth-tabs { border-color: var(--ds-line); background: var(--ds-surface); }
.quick-auth-page .quick-auth-form .auth-tabs button { min-height: 48px; color: var(--ds-muted); }
.quick-auth-page .quick-auth-form .auth-tabs button.active { color: var(--ds-primary-dark); background: var(--ds-success-soft); }
.quick-auth-page .payment-return-note { color: var(--ds-ink); border-color: var(--ds-line); background: var(--ds-soft); }
.quick-auth-page .payment-return-note strong { color: var(--ds-primary-dark); }
.quick-auth-page .payment-return-note span { color: var(--ds-muted); }

.public-app-page {
  color: var(--ds-ink);
  background: var(--ds-soft);
}
.public-app-page::before,
.public-app-page::after { display: none; }
.public-app-card { color: var(--ds-ink); border-color: var(--ds-line); border-radius: var(--ds-radius-lg); background: var(--ds-surface); box-shadow: var(--ds-shadow-float); backdrop-filter: none; }
.public-app-copy span { color: var(--ds-primary-dark); }
.public-app-copy p { color: var(--ds-muted); }
.store-download-badge { min-height: 64px; color: #ffffff; border-color: var(--ds-ink); border-radius: var(--ds-radius-md); background: var(--ds-ink); }

.first-run-page,
.how-to-buy-page { color: var(--ds-ink); background: var(--ds-soft); }
.first-run-page .onboarding-card,
.how-to-buy-page .onboarding-card { color: var(--ds-ink); border-color: var(--ds-line); border-radius: var(--ds-radius-lg); background: var(--ds-surface); box-shadow: var(--ds-shadow-card); }
.onboarding-copy p { color: var(--ds-muted); }
.onboarding-dots span { background: var(--ds-line); }
.onboarding-dots span.active { background: var(--ds-primary); }
.onboarding-arrow { min-width: 48px; min-height: 48px; color: var(--ds-primary-dark); border-color: var(--ds-primary); background: var(--ds-surface); }
.onboarding-arrow.next { color: #ffffff; background: var(--ds-primary); }
.onboarding-skip { min-height: 48px; color: var(--ds-primary-dark); border-color: var(--ds-line); background: var(--ds-surface); }

.client-password-page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: max(var(--ds-space-4), var(--client-safe-top)) var(--ds-space-4) max(var(--ds-space-4), var(--client-safe-bottom));
  color: var(--ds-ink);
  background: var(--ds-soft);
}
.client-password-page .admin-auth-hero { display: none; }
.client-password-page .admin-auth-panel { min-height: calc(100dvh - (2 * var(--ds-space-4))); padding: 0; background: transparent; }
.client-password-page .admin-auth-card { width: min(100%, 440px); border: 1px solid var(--ds-line); border-radius: var(--ds-radius-lg); background: var(--ds-surface); box-shadow: var(--ds-shadow-float); }
.client-password-page .admin-auth-icon { color: #ffffff; background: var(--ds-primary-dark); }
.client-password-page .btn.dark { color: #ffffff; background: var(--ds-primary); }
.client-password-page .btn { min-height: var(--ds-touch-target); }
.client-password-page .password-link { min-height: 48px; color: var(--ds-primary-dark); }

.client-shell .install-phone-visual::before { background: var(--ds-line); }
.client-shell .install-phone-frame { border-color: var(--ds-ink); background: var(--ds-soft); box-shadow: var(--ds-shadow-card); }
.client-shell .install-phone-frame > span { background: var(--ds-ink); }
.client-shell .install-phone-button { color: var(--ds-ink); background: var(--ds-primary); }
.client-shell .install-phone-button.short { color: #ffffff; background: var(--ds-ink); }
.client-shell .install-badge { color: #ffffff; border-radius: var(--ds-radius-md); background: var(--ds-primary-dark); box-shadow: var(--ds-shadow-card); }
.client-shell .install-steps div { border-color: var(--ds-line); border-radius: var(--ds-radius-md); background: var(--ds-surface); box-shadow: var(--ds-shadow-card); }
.client-shell .install-steps strong { color: #ffffff; background: var(--ds-primary-dark); }
.client-shell .install-steps span { color: var(--ds-ink); }
.client-shell .install-note { color: var(--ds-muted); }

.client-shell .access-notice-card { color: var(--ds-ink); border-color: var(--ds-line); border-radius: var(--ds-radius-lg); background: var(--ds-surface); }
.client-shell .scan-clear-link { min-height: var(--ds-touch-target) !important; height: var(--ds-touch-target); display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; padding-inline: var(--ds-space-3); }
.client-shell ~ .toast,
.auth-page ~ .toast { color: var(--ds-ink); border-color: var(--ds-line); border-left-color: var(--ds-primary); border-radius: var(--ds-radius-md); background: var(--ds-surface); }

@media (max-width: 520px) {
  .client-page,
  .ds-page,
  .ds-home { padding-inline: var(--ds-space-4); }
  .delivery-filters { grid-template-columns: minmax(0, 1fr); }
  .delivery-product-list { grid-template-columns: minmax(0, 1fr); }
  .purchase-detail-actions { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 360px) {
  .client-page,
  .ds-page,
  .ds-home { padding-inline: var(--ds-space-3); }
  .ds-category-row { width: calc(100% + (2 * var(--ds-space-3))); margin-inline: calc(-1 * var(--ds-space-3)); padding-inline: var(--ds-space-3); scroll-padding-inline: var(--ds-space-3); }
  .ds-product-grid { grid-template-columns: minmax(0, 1fr); }
  .purchase-card-top { grid-template-columns: 44px minmax(0, 1fr); }
  .purchase-card-total { grid-column: 2; justify-self: start; }
  .purchases-head-card { flex-direction: column; }
  .purchase-detail-hero { grid-template-columns: minmax(0, 1fr); }
  .purchase-detail-total { justify-self: start; }
  .receipt-meta-grid { grid-template-columns: minmax(0, 1fr); }
  .ds-home-summary { align-items: stretch; flex-direction: column; }
  .ds-home-summary .ds-button { width: 100%; }
  .scan-cart-actions { width: calc(100% - (2 * var(--ds-space-2))); grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "cancel total" "checkout checkout"; }
  .scan-cart-actions .checkout-pill { grid-area: checkout; width: 100%; }
  .scanned-product-modal { grid-template-columns: 72px minmax(0, 1fr); gap: var(--ds-space-3); padding: var(--ds-space-4); }
  .scanned-product-image { width: 72px; height: 72px; }
}

/* Admin sign-in: compact, consistent and responsive. */
.admin-auth-page {
  grid-template-columns: minmax(380px, .9fr) minmax(500px, 1.1fr);
  color: var(--ds-ink);
  background: #f2f6f4;
}

.admin-auth-page .admin-auth-hero {
  min-height: 100dvh;
  padding: clamp(40px, 5vw, 72px);
  background:
    linear-gradient(145deg, rgba(7, 17, 20, .54), rgba(7, 17, 20, .92)),
    url("./assets/boxmarket-store.jpg") center / cover;
}

.admin-auth-page .admin-auth-hero h1 {
  max-width: 520px;
  font-size: clamp(42px, 5vw, 68px);
  line-height: .98;
  letter-spacing: -.04em;
}

.admin-auth-page .admin-auth-hero .brand-logo {
  display: none;
}

.admin-auth-page .admin-auth-hero .admin-kicker {
  margin-top: 0;
}

.admin-auth-page .admin-auth-panel {
  min-width: 0;
  min-height: 100dvh;
  padding: clamp(28px, 5vw, 64px);
  background:
    radial-gradient(circle at 86% 12%, rgba(85, 185, 130, .12), transparent 28%),
    #f2f6f4;
}

.admin-auth-panel-inner {
  width: min(100%, 432px);
}

.admin-login-page .admin-auth-card {
  width: 100%;
  display: grid;
  padding: 28px;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-surface);
  box-shadow: 0 22px 54px rgba(25, 59, 48, .12);
}

.admin-login-page .admin-auth-head {
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.admin-login-page .admin-auth-icon {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 13px;
  background: var(--ds-ink);
  box-shadow: 0 7px 16px rgba(23, 35, 37, .14);
  font-size: 16px;
  letter-spacing: -.02em;
}

.admin-auth-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--ds-primary-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .09em;
  line-height: 1.2;
  text-transform: uppercase;
}

.admin-login-page .admin-auth-head h2 {
  margin: 0 0 5px;
  color: var(--ds-ink);
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.admin-login-page .admin-auth-head p {
  margin: 0;
  color: var(--ds-muted);
  font-size: 13px;
  line-height: 1.35;
}

.admin-login-page .admin-auth-form {
  width: 100%;
  gap: 14px;
  padding: 0;
}

.admin-login-page .admin-auth-form .field {
  width: 100%;
  gap: 6px;
}

.admin-login-page .admin-auth-form .field > span {
  color: #344a43;
  font-size: 13px;
  font-weight: 800;
}

.admin-login-page .admin-auth-form .input {
  height: 50px;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #d7e2dd;
  border-radius: 12px;
  color: var(--ds-ink);
  background: #fbfdfc;
  box-shadow: none;
}

.admin-login-page .admin-auth-form .input:hover {
  border-color: #bdcdc5;
}

.admin-login-page .admin-auth-form .input:focus {
  border-color: var(--ds-primary-dark);
  background: var(--ds-surface);
  box-shadow: 0 0 0 3px var(--ds-focus-ring);
}

.admin-login-page .admin-auth-form .btn.dark,
.admin-login-page .admin-auth-form .btn.dark:hover,
.admin-login-page .admin-auth-form .btn.dark:focus-visible {
  width: 100%;
  height: 50px;
  min-height: 50px;
  border-radius: 12px;
  color: #ffffff;
  background: var(--ds-ink);
  box-shadow: 0 9px 20px rgba(23, 35, 37, .16);
  font-size: 15px;
}

.admin-login-page .password-link {
  min-height: 44px;
  justify-self: end;
  margin: 2px 0 0;
  padding: 0 2px;
  color: #64736d;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.admin-login-page .password-link:hover {
  color: var(--ds-primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-login-page .admin-auth-divider {
  width: 100%;
  gap: 12px;
  margin: 12px 0;
  color: #7a8882;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.admin-login-page .admin-auth-divider::before,
.admin-login-page .admin-auth-divider::after {
  background: var(--ds-line);
}

.admin-login-page .admin-auth-oauth-actions {
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 0;
}

.admin-login-page .admin-auth-oauth-actions .social-btn {
  width: 100%;
  height: 50px;
  min-height: 50px;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  padding: 0 16px;
  border: 1px solid #dbe5e0;
  border-radius: 12px;
  color: var(--ds-ink);
  background: #fbfdfc;
  box-shadow: none;
}

.admin-login-page .admin-auth-oauth-actions .social-btn.apple {
  color: var(--ds-ink);
  border-color: #dbe5e0;
  background: #fbfdfc;
}

.admin-login-page .admin-auth-oauth-actions .social-btn.google {
  color: var(--ds-ink);
  background: #fbfdfc;
}

.admin-login-page .admin-auth-oauth-actions .social-btn:hover {
  border-color: #bfd0c7;
  background: var(--ds-surface);
  transform: translateY(-1px);
  box-shadow: var(--ds-shadow-card);
}

.admin-login-page .admin-auth-oauth-actions .social-icon {
  width: 28px;
  height: 28px;
  color: inherit;
  background: transparent;
}

.admin-login-page .admin-auth-oauth-actions .brand-social-icon svg,
.admin-login-page .admin-auth-oauth-actions .apple-brand svg {
  width: 22px;
  height: 22px;
}

.admin-login-page .admin-auth-oauth-actions .social-text {
  display: grid;
  gap: 1px;
  padding: 0;
}

.admin-login-page .admin-auth-oauth-actions .social-text strong {
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}

.admin-login-page .admin-auth-oauth-actions .social-text small {
  color: #73817b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.admin-login-page .admin-auth-card-footer {
  width: 100%;
  display: grid;
  place-items: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--ds-line);
}

.admin-login-page .admin-client-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 0 8px;
  color: #64736d;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.admin-login-page .admin-client-link:hover {
  color: var(--ds-primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-auth-page :is(button, input):focus-visible {
  outline: 3px solid var(--ds-focus-ring);
  outline-offset: 2px;
}

@media (max-width: 860px) {
  .admin-auth-page {
    grid-template-columns: minmax(0, 1fr);
    min-height: 100dvh;
    background: #f2f6f4;
  }

  .admin-auth-page .admin-auth-hero {
    display: none;
  }

  .admin-auth-page .admin-auth-panel {
    min-height: 100dvh;
    padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  }

  .admin-login-page .admin-auth-card {
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .admin-auth-page .admin-auth-panel {
    padding-right: 16px;
    padding-left: 16px;
  }

  .admin-login-page .admin-auth-card {
    width: 100%;
    max-width: none;
    padding: 24px;
    border-right: 1px solid var(--ds-line);
    border-left: 1px solid var(--ds-line);
    border-radius: 20px;
    box-shadow: var(--ds-shadow-card);
  }

  .admin-login-page .admin-auth-head {
    gap: 13px;
    margin-bottom: 20px;
  }

  .admin-login-page .admin-auth-icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .admin-login-page .admin-auth-head h2 {
    font-size: 23px;
  }

  .admin-login-page .admin-auth-form {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .admin-login-page .admin-auth-card {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ds-spinner,
  .status-spinner { animation-duration: 1.6s; }
  :is(.client-shell, .auth-page, .first-run-page, .public-app-page) .btn,
  .ds-button,
  .menu-item,
  .ds-product-card { transition: none; }
}
.preopening-page {
  min-height: calc(100dvh - 9rem);
  display: grid;
  align-content: center;
  gap: 1rem;
  padding-block: 1.5rem 2.5rem;
}

.preopening-brand {
  display: flex;
  justify-content: center;
}

.preopening-notice {
  position: relative;
  overflow: hidden;
  padding: clamp(1.4rem, 6vw, 2.4rem);
  border-radius: 2rem;
  color: #fff;
  background: linear-gradient(145deg, #121212 0%, #292929 62%, #424242 100%);
  box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, 0.18);
}

.preopening-notice::after {
  content: "BM";
  position: absolute;
  right: -0.3rem;
  bottom: -1.8rem;
  font-size: 7rem;
  font-weight: 900;
  letter-spacing: -0.1em;
  color: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.preopening-notice.compact {
  padding: 1rem 1.1rem;
  border-radius: 1.35rem;
  text-align: left;
  box-shadow: none;
}

.preopening-kicker {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: #c8ff42;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.preopening-notice h1,
.preopening-notice h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(1.65rem, 8vw, 2.7rem);
  line-height: 1.03;
}

.preopening-notice.compact h2 {
  font-size: 1.15rem;
}

.preopening-notice p {
  position: relative;
  z-index: 1;
  max-width: 32rem;
  margin: 0.8rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.preopening-notice .btn {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.preopening-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.preopening-action {
  display: grid;
  gap: 0.25rem;
  min-height: 6.2rem;
  padding: 1rem;
  border: 1px solid rgba(18, 18, 18, 0.1);
  border-radius: 1.25rem;
  text-align: left;
  color: var(--ink, #171717);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0.6rem 1.4rem rgba(0, 0, 0, 0.06);
}

.preopening-action strong {
  font-size: 1rem;
}

.preopening-action span {
  color: var(--muted, #6d6d6d);
  font-size: 0.78rem;
  line-height: 1.35;
}

.preopening-logout {
  margin-top: 0.2rem;
}

.operational-switch {
  margin: 0.25rem 0 1rem;
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 1rem;
}

@media (max-width: 360px) {
  .preopening-actions {
    grid-template-columns: 1fr;
  }
}
/* Account deletion stays behind the remote compatibility gate. */
.account-deletion-card {
  display: grid;
  gap: var(--ds-space-3);
  border-color: #f2d7d7 !important;
}
.account-deletion-card h3,
.account-deletion-card p,
.account-deletion-modal h2,
.account-deletion-modal p,
.account-deletion-status-card h1,
.account-deletion-status-card p {
  margin: 0;
}
.account-deletion-card p,
.account-deletion-modal p,
.account-deletion-status-card p {
  font-size: 15px;
  line-height: 1.55;
}
.account-deletion-muted {
  color: var(--ds-muted);
}
:is(.client-shell, .account-deletion-status-page) .btn.danger-outline {
  color: #a92f2f;
  border-color: #e4a8a8;
  background: #ffffff;
  box-shadow: none;
}
:is(.client-shell, .account-deletion-status-page) .btn.danger-outline:hover,
:is(.client-shell, .account-deletion-status-page) .btn.danger-outline:focus-visible {
  color: #8f2424;
  border-color: #d97777;
  background: var(--ds-danger-soft);
  box-shadow: 0 0 0 3px rgba(217, 74, 74, .14);
}
:is(.client-shell, .account-deletion-status-page) .btn.danger {
  color: #ffffff;
  border-color: #b93434;
  background: var(--ds-danger);
  box-shadow: 0 6px 14px rgba(217, 74, 74, .22);
}
.account-deletion-error {
  margin: 0;
  overflow-wrap: anywhere;
}
.account-deletion-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  align-items: end;
  overflow-y: auto;
  padding: max(20px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
  background: rgba(7, 17, 20, .66);
  backdrop-filter: blur(6px);
}
.account-deletion-modal {
  width: min(100%, 520px);
  max-height: calc(100dvh - max(40px, env(safe-area-inset-top)) - max(40px, env(safe-area-inset-bottom)));
  display: grid;
  gap: var(--ds-space-5);
  margin: auto auto 0;
  overflow-y: auto;
  padding: clamp(20px, 5vw, 28px);
  color: var(--ds-ink);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-lg) var(--ds-radius-lg) var(--ds-radius-md) var(--ds-radius-md);
  background: var(--ds-surface);
  box-shadow: var(--ds-shadow-float);
}
.account-deletion-modal-copy,
.account-deletion-modal-actions,
.account-deletion-status-actions {
  display: grid;
  gap: var(--ds-space-3);
}
.account-deletion-modal h2 {
  font-size: clamp(24px, 7vw, 32px);
  line-height: 1.08;
  letter-spacing: -.03em;
}
.account-deletion-status-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
  color: var(--ds-ink);
  background: var(--ds-soft);
}
.account-deletion-status-page.pattern-bg::before {
  display: none;
}
.account-deletion-status-card {
  width: min(100%, 520px);
  display: grid;
  gap: var(--ds-space-4);
  padding: clamp(22px, 5vw, 34px);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-surface);
  box-shadow: var(--ds-shadow-float);
}
.account-deletion-status-card h1 {
  font-size: clamp(28px, 8vw, 40px);
  line-height: 1.05;
  letter-spacing: -.04em;
}
.account-deletion-status-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #855400;
  border-radius: 50%;
  background: #fff0cf;
  font-size: 24px;
  font-weight: 900;
}
.account-deletion-success .account-deletion-status-icon {
  color: var(--ds-primary-dark);
  background: var(--ds-success-soft);
}
.account-deletion-dates {
  display: grid;
  gap: var(--ds-space-2);
  padding-block: var(--ds-space-2);
  border-block: 1px solid var(--ds-line);
}
.account-deletion-dates > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--ds-space-2);
  color: var(--ds-muted);
  font-size: 13px;
}
.account-deletion-dates strong {
  color: var(--ds-ink);
  text-align: right;
}
@media (min-width: 640px) {
  .account-deletion-modal-backdrop {
    align-items: center;
  }
  .account-deletion-modal {
    margin: auto;
    border-radius: var(--ds-radius-lg);
  }
  .account-deletion-modal-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
@media (max-height: 560px) {
  .account-deletion-modal-backdrop {
    align-items: start;
  }
}
