/* Minimal MobiMax UI. Colors come from tokens.css. */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--mx-ink);
  background: var(--mx-surface);
  font-family: var(--mx-font);
  font-size: 16px;
  line-height: 1.5;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--mx-ink);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--mx-ink);
  color: white;
  padding: 8px 12px;
  z-index: 80;
}
.skip:focus { top: 12px; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}
.auth-wrap { width: min(440px, calc(100% - 32px)); }

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
[data-wholesale-fields] { margin-top: 12px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--mx-ink);
  color: white;
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 13px;
}
.brand i.mark,
.brand > i:not([class]) {
  width: 8px;
  height: 8px;
  background: var(--mx-primary);
  display: inline-block;
}
.desktop-nav { display: none; gap: 18px; }
.desktop-nav a { color: white; text-decoration: none; font-size: 14px; }
.desktop-nav a:hover { color: #fff; opacity: 0.72; }

.search {
  margin-left: auto;
  display: flex;
  align-items: center;
  background: white;
  color: var(--mx-ink);
  border-radius: 999px;
  overflow: hidden;
  min-width: 0;
  flex: 1 1 0;
  max-width: 420px;
}
.search input {
  border: 0;
  padding: 10px 14px;
  flex: 1 1 auto;
  width: 0;
  min-width: 0;
  background: transparent;
}
.search input::placeholder { color: #778391; opacity: 1; transition: opacity .18s ease, transform .18s ease; }
.search input.suggestion-leaving::placeholder { opacity: 0; transform: translateY(3px); }
.search input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
.search button {
  border: 0;
  background: transparent;
  color: var(--mx-ink);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}
.search .search-voice { display: none; width: 38px; height: 38px; flex: 0 0 38px; color: #5d6e7e; border-radius: 50%; cursor: pointer; }
.search .search-voice:not([hidden]) { display: grid; }
.search .search-voice:hover, .search .search-voice:focus-visible { color: var(--mx-primary); background: rgba(1,183,108,.10); }
.search .search-voice.is-listening { color: #fff; background: var(--mx-primary); animation: voice-pulse 1.25s ease-in-out infinite; }
.search .search-submit { flex: 0 0 44px; cursor: pointer; }
@keyframes voice-pulse { 50% { box-shadow: 0 0 0 6px rgba(1,183,108,.18); } }

.main { padding: 28px 0 112px; }
.hero { display: grid; gap: 20px; padding: 12px 0 8px; }
.hero > * { min-width: 0; }
.kicker {
  color: var(--mx-primary);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 8px;
}
.kicker a { text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 8px; font-weight: 600; }
h1 { font-size: clamp(32px, 7vw, 56px); letter-spacing: -0.04em; overflow-wrap: anywhere; max-width: calc(100vw - 40px); }
h2 { font-size: 22px; }
.lede { font-size: 17px; max-width: min(36rem, calc(100vw - 40px)); margin: 0; color: #333; }

html, body { overflow-x: clip; }

.chips {
  display: flex;
  gap: 8px;
  overflow: auto;
  max-width: 100%;
  min-width: 0;
  padding-bottom: 4px;
}
.chip {
  flex: 0 0 auto;
  text-decoration: none;
  border: 1px solid var(--mx-border);
  background: white;
  border-radius: 999px;
  padding: 8px 14px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip:hover { border-color: var(--mx-ink); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 28px 0 12px;
  max-width: calc(100vw - 40px);
}
.section-head a { color: var(--mx-primary); }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.card {
  background: var(--mx-surface);
  border: 1px solid var(--mx-border);
  border-radius: var(--mx-radius);
  overflow: hidden;
}
.card-pad { padding: 16px; }
.main section + section,
.main .card + .card,
.main .card + form,
.main form + .card,
.main form + form,
.admin-main section + section,
.admin-main .card + .card,
.admin-main form + form { margin-top: 16px; }

.product-card { text-decoration: none; display: flex; flex-direction: column; min-width: 0; }
.product-card:hover { border-color: var(--mx-ink); }
.device {
  aspect-ratio: 1;
  background: var(--mx-surface-muted);
  display: grid;
  place-items: center;
  color: #9a9a9a;
  font-size: 28px;
}
.gallery .device { aspect-ratio: 1; }
.line .device { width: 64px; height: 64px; aspect-ratio: auto; border-radius: var(--mx-radius); }
.product-card h2, .product-card h3 { font-size: 15px; margin: 12px 12px 0; }
.price {
  margin: 6px 12px 14px;
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.meta { color: #444; font-size: 13px; margin: 4px 12px 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-wholesale { background: var(--mx-ink); color: white; }
.badge-retail { background: var(--mx-surface-muted); border: 1px solid var(--mx-border); }
.badge-ok { background: #eef8f2; color: var(--mx-success); }
.badge-warn { background: #fff6ea; color: var(--mx-warning); }
.badge-bad { background: #fdecea; color: var(--mx-danger); }

.btn, .btn-primary, .btn-secondary, .btn-danger, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 600;
  background: white;
}
.btn-primary { background: var(--mx-primary); color: white; }
.btn-primary:hover { background: var(--mx-primary-dark); }
.btn-secondary { color: var(--mx-ink); border-color: var(--mx-ink); }
.btn-danger { background: var(--mx-danger); color: white; }
.btn-ghost { background: transparent; border-color: var(--mx-border); }
.btn[disabled], button:disabled { opacity: 0.55; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hero .btn-row, .admin-main > .btn-row { margin-top: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .password-wrap > label { font-weight: 600; font-size: 14px; }
.field input, .field select, .field textarea, .password-wrap input {
  width: 100%;
  border: 1px solid var(--mx-border);
  background: white;
  border-radius: var(--mx-radius);
  padding: 11px 12px;
  min-height: 44px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .password-wrap input:focus {
  border-color: var(--mx-ink);
  outline: none;
}
.field input[aria-invalid="true"], .password-wrap input[aria-invalid="true"] { border-color: var(--mx-danger); }
.help { color: #444; font-size: 13px; margin: 0; }
.field-error { color: var(--mx-danger); font-size: 13px; margin: 0; }
.password-wrap { position: relative; display: grid; gap: 6px; }
.password-wrap input { padding-right: 48px; }
.password-toggle {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 40px;
  height: 36px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
}
.strength { min-height: 1.2em; font-size: 13px; color: #444; }
.strength[data-score="2"] { color: var(--mx-warning); }
.strength[data-score="3"] { color: var(--mx-success); }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice.pay { grid-template-columns: 1fr; }
.choice label {
  border: 1px solid var(--mx-border);
  border-radius: var(--mx-radius);
  padding: 12px;
  min-height: 48px;
  background: white;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.choice label:has(input:checked) {
  border-color: var(--mx-ink);
  background: var(--mx-ink);
  color: white;
}
.choice input { accent-color: var(--mx-primary); }

.switch {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 600;
}
.switch input { width: 18px; height: 18px; accent-color: var(--mx-primary); }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--mx-border); border-radius: var(--mx-radius); overflow: hidden; background: white; }
.stepper input {
  width: 56px;
  border: 0;
  text-align: center;
  min-height: 44px;
  padding: 0;
}
.stepper button {
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--mx-surface-muted);
}

.notice, .confirm-bar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 10px;
  border: 1px solid var(--mx-border);
  border-left: 3px solid var(--mx-primary);
  background: var(--mx-surface-muted);
  padding: 12px 14px;
  border-radius: var(--mx-radius);
  margin: 12px 0;
}
.notice.warn, .confirm-bar { border-left-color: var(--mx-warning); }
.notice.ok { border-left-color: var(--mx-success); }
.notice .btn-row, .confirm-bar .btn-row { grid-column: 2; }
.confirm-bar p, .notice p { margin: 0; }

.progress { margin: 12px 0; }
.progress-meta { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.progress-track {
  height: 4px;
  background: var(--mx-border);
  border-radius: 999px;
  overflow: hidden;
}
.progress-track span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--mx-primary);
}

.toast-region {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 84px;
  z-index: 60;
  display: grid;
  gap: 8px;
}
.toast {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: start;
  background: var(--mx-ink);
  color: white;
  padding: 12px 12px;
  border-radius: var(--mx-radius);
}
.toast p { margin: 0; }
.toast button {
  border: 0;
  background: transparent;
  color: white;
  width: 32px;
  height: 32px;
}
.toast.bad { background: var(--mx-danger); }
.toast.warn { background: #8a4e00; }
.toast.leaving { opacity: 0; }

.steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 12px 0 18px; overflow: auto; }
.steps li {
  flex: 1 0 auto;
  min-width: 88px;
  font-size: 12px;
  color: #666;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.steps li.done, .steps li.current { color: var(--mx-ink); font-weight: 600; }
.steps li.current i { color: var(--mx-primary); }

.footer-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: white;
  border-top: 1px solid var(--mx-border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 30;
  padding-bottom: env(safe-area-inset-bottom);
}
.footer-nav a {
  position: relative;
  text-decoration: none;
  min-height: 58px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 600;
  color: #444;
}
.footer-nav a.active { color: var(--mx-primary); }
.footer-nav i { font-size: 18px; }
.cart-count {
  position: absolute;
  top: 6px;
  margin-left: 18px;
  background: var(--mx-primary);
  color: white;
  border-radius: 999px;
  min-width: 16px;
  height: 16px;
  font-size: 10px;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

.filters { display: grid; gap: 8px; margin-bottom: 16px; }
.line {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--mx-border);
}
.line > :nth-child(3) { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.totals { display: flex; justify-content: space-between; font-size: 18px; font-weight: 600; }
.gallery { display: grid; gap: 8px; }
.muted { color: #444; }
.stack:not(table) { display: grid; gap: 12px; }
table.stack { display: table; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 10px 0 10px 14px; border-left: 2px solid var(--mx-border); }
.site-footer { display: none; padding: 40px 0; color: #333; border-top: 1px solid var(--mx-border); }
.site-footer a { color: var(--mx-ink); }
.empty { display: grid; gap: 8px; justify-items: start; }
.inline-form { display: inline; }
.spin { display: inline-block; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.admin-body { background: var(--mx-surface-muted); }
.admin-shell { display: block; min-height: 100vh; }
.sidebar {
  background: var(--mx-ink);
  color: white;
  padding: 18px 12px 28px;
}
.sidebar .brand { margin: 4px 8px 8px; }
.side-nav { display: grid; gap: 2px; margin-top: 12px; }
.sidebar, .side-nav { scrollbar-width: none; -ms-overflow-style: none; }
.sidebar::-webkit-scrollbar, .side-nav::-webkit-scrollbar { width: 0; height: 0; display: none; }
.side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--mx-radius);
  min-height: 44px;
  color: white;
  text-decoration: none;
}
.side-nav a.active { background: #242424; }
.side-nav a span { margin-right: auto; }
.count {
  background: var(--mx-primary);
  color: white;
  border-radius: 999px;
  min-width: 22px;
  text-align: center;
  font-size: 12px;
  padding: 2px 6px;
}
.admin-main { padding: 16px 16px 48px; }
.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.menu-btn { display: inline-flex; }
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 40;
  border: 0;
}
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat span { color: #444; font-size: 13px; }
.stat strong { display: block; font-size: 22px; margin-top: 4px; font-variant-numeric: tabular-nums; }

table.data { width: 100%; border-collapse: collapse; background: white; border: 1px solid var(--mx-border); border-radius: var(--mx-radius); }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--mx-border); vertical-align: top; }
table.data th { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.file-name { margin-top: 6px; }

@media (max-width: 560px) {
  h1 { font-size: 30px; }
  .hero .btn-row { flex-direction: column; align-items: stretch; }
}

@media (max-width: 760px) {
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { background: white; border: 1px solid var(--mx-border); border-radius: var(--mx-radius); margin-bottom: 10px; padding: 8px; }
  table.stack td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 6px 8px; }
  table.stack td::before { content: attr(data-label); font-weight: 600; color: #333; }
  table.stack td.col-hide { display: none; }
}

@media (min-width: 900px) {
  .desktop-nav { display: flex; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1.4fr 0.8fr; align-items: end; }
  .footer-nav { display: none; }
  .main { padding-bottom: 48px; }
  .site-footer { display: block; }
  .toast-region { left: auto; right: 24px; bottom: 24px; width: min(360px, calc(100% - 48px)); }
  .filters { grid-template-columns: 1.4fr repeat(3, minmax(0, 0.7fr)) auto; align-items: end; }
  .line { grid-template-columns: 64px 1fr auto; }
  .line > :nth-child(3) { grid-column: auto; }
  .admin-shell { display: grid; grid-template-columns: 232px 1fr; }
  .sidebar { position: sticky; top: 0; height: 100vh; overflow: auto; }
  .menu-btn, .nav-backdrop { display: none; }
  .admin-main { padding: 28px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 899px) {
  .sidebar {
    display: block;
    position: fixed;
    z-index: 50;
    inset: 0 auto 0 0;
    width: min(280px, 88vw);
    height: 100vh;
    overflow: auto;
    transform: translateX(-105%);
  }
  .sidebar.open { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spin, .sidebar, .toast { animation: none; transition: none; }
}

/* 2026 experience refresh ------------------------------------------------- */
:root {
  --mx-shadow-sm: 0 1px 2px rgba(11, 43, 76, 0.05), 0 5px 18px rgba(11, 43, 76, 0.04);
  --mx-shadow-md: 0 16px 40px rgba(11, 43, 76, 0.10);
  --mx-ring: 0 0 0 4px rgba(1, 183, 108, 0.22);
}

body {
  background: linear-gradient(180deg, #fff 0, #fff 420px, var(--mx-surface-muted) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(1, 183, 108, 0.32); color: var(--mx-primary-dark); }
a, button, input, select, textarea, .card, .sidebar { transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }

:focus-visible {
  outline: 0;
  box-shadow: var(--mx-ring);
}

.wrap { width: min(1180px, calc(100% - 32px)); }
.main { padding-top: 38px; }
.auth-wrap { width: min(470px, calc(100% - 32px)); }

.topbar {
  color: #fff;
  background: rgba(6, 28, 49, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 10px 30px rgba(6, 28, 49, .13);
  backdrop-filter: blur(16px);
}
.topbar-inner { min-height: 72px; }
.brand { font-weight: 800; letter-spacing: .15em; }
.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  color: var(--mx-primary-dark);
  background: linear-gradient(145deg, #A7EAC9, var(--mx-secondary));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
}
.brand-mark i { font-size: 16px; }
.brand-logo { width: auto; max-width: 164px; height: 36px; object-fit: contain; }
.brand-icon { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.sidebar .brand-logo { max-width: 150px; height: 34px; }
.desktop-nav { align-items: center; }
.desktop-nav a {
  position: relative;
  padding: 26px 2px 23px;
  color: rgba(255,255,255,.75);
  font-weight: 600;
}
.desktop-nav a:hover, .desktop-nav a.active { opacity: 1; color: #fff; }
.desktop-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  height: 2px;
  border-radius: 99px;
  background: var(--mx-secondary);
}
.desktop-nav .nav-signin {
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
}
.desktop-nav .nav-signin::after { display: none; }
.search {
  max-width: 350px;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 4px 16px rgba(0,0,0,.10);
}
.search:focus-within { box-shadow: var(--mx-ring); }
.search input { padding-left: 17px; }

.kicker { color: var(--mx-secondary-dark); font-weight: 800; }
h1, h2, h3 { color: var(--mx-primary-dark); }
h1 { font-weight: 800; }
h2 { margin-top: 4px; }
.lede, .muted, .help, .meta { color: #526579; }

.hero {
  position: relative;
  gap: 28px;
  padding: 22px 0 24px;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 360px;
  height: 360px;
  left: -190px;
  top: -120px;
  background: radial-gradient(circle, rgba(1,183,108,.18), transparent 68%);
  pointer-events: none;
}
.hero-copy { align-self: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  padding: 7px 11px;
  color: var(--mx-primary);
  background: #E2F8EC;
  border: 1px solid #ead4a4;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
}
.hero h1 { max-width: 720px; }
.hero h1 span { color: var(--mx-secondary-dark); }
.hero .lede { font-size: clamp(16px, 2vw, 19px); line-height: 1.7; }
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
  color: #526579;
  font-size: 13px;
  font-weight: 600;
}
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.trust-row i { color: var(--mx-secondary-dark); }
.hero-offer {
  position: relative;
  min-height: 250px;
  padding: 30px;
  color: #fff;
  border: 0;
  background: linear-gradient(145deg, var(--mx-primary) 0%, var(--mx-primary-dark) 100%);
  box-shadow: var(--mx-shadow-md);
}
.hero-offer::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -55px;
  width: 180px;
  height: 180px;
  border: 28px solid rgba(1,183,108,.12);
  border-radius: 50%;
}
.hero-offer h2, .hero-offer .kicker { color: #fff; }
.hero-offer p:not(.kicker) { color: rgba(255,255,255,.74); }
.offer-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  color: var(--mx-primary-dark);
  background: var(--mx-secondary);
  border-radius: 15px;
  font-size: 20px;
}
.arrow-link { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; color: #fff; font-weight: 700; }

.section-head { margin-top: 40px; padding-bottom: 10px; border-bottom: 1px solid var(--mx-border); }
.section-head h2 { font-size: 24px; }
.section-head a { color: var(--mx-primary); font-weight: 700; text-decoration: none; }
.section-head a:hover { color: var(--mx-secondary-dark); }

.card {
  border-color: var(--mx-border);
  box-shadow: var(--mx-shadow-sm);
}
.card-pad { padding: clamp(18px, 3vw, 26px); }
.product-card { position: relative; background: rgba(255,255,255,.94); }
.product-card:hover { border-color: #b9c8d5; box-shadow: var(--mx-shadow-md); transform: translateY(-3px); }
.device {
  position: relative;
  color: #91a1af;
  background:
    radial-gradient(circle at 70% 20%, rgba(1,183,108,.14), transparent 28%),
    linear-gradient(145deg, #f8fafc, #eef3f7);
  font-size: 34px;
}
.product-view {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--mx-border);
  border-radius: 50%;
  color: var(--mx-primary);
  background: rgba(255,255,255,.88);
  opacity: 0;
  transform: translateY(4px);
}
.product-card:hover .product-view { opacity: 1; transform: translateY(0); }
.product-card-body { display: flex; flex: 1; flex-direction: column; padding: 14px; }
.product-card h2, .product-card h3 { margin: 0; font-size: 15px; }
.product-card .meta { display: flex; align-items: center; gap: 6px; margin: 7px 0 0; }
.condition-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mx-success); }
.product-card .price { margin: auto 0 0; padding-top: 12px; color: var(--mx-primary-dark); font-size: 17px; }

.chip { color: var(--mx-primary); border-color: #d5e0e9; background: #fff; font-weight: 700; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mx-secondary); }
.chip:hover { color: #fff; border-color: var(--mx-primary); background: var(--mx-primary); transform: translateY(-1px); }

.btn, .btn-primary, .btn-secondary, .btn-danger, .btn-ghost {
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 12px;
  font-weight: 800;
}
.btn-primary { background: var(--mx-primary); box-shadow: 0 8px 18px rgba(11,43,76,.16); }
.btn-primary:hover { background: var(--mx-primary-dark); box-shadow: 0 10px 24px rgba(11,43,76,.22); transform: translateY(-1px); }
.btn-secondary { color: var(--mx-primary); border-color: #b8c8d5; background: #fff; }
.btn-secondary:hover { border-color: var(--mx-primary); background: #f5f8fa; }
.btn-ghost:hover { border-color: #bac9d5; background: #edf2f6; }
.btn-danger { box-shadow: 0 6px 16px rgba(179,38,30,.12); }

.field { gap: 7px; margin-bottom: 16px; }
.field label, .password-wrap > label { color: var(--mx-primary-dark); font-size: 13px; font-weight: 800; }
.field input, .field select, .field textarea, .password-wrap input {
  border-color: #cbd7e1;
  border-radius: 12px;
  min-height: 48px;
  padding: 12px 14px;
  box-shadow: inset 0 1px 2px rgba(11,43,76,.025);
}
.field input:hover, .field select:hover, .field textarea:hover, .password-wrap input:hover { border-color: #9db0c0; }
.field input:focus, .field select:focus, .field textarea:focus, .password-wrap input:focus {
  border-color: var(--mx-secondary-dark);
  box-shadow: var(--mx-ring);
}
.password-toggle { right: 6px; bottom: 6px; color: var(--mx-primary); border-radius: 9px; }
.password-toggle:hover { background: var(--mx-surface-muted); }
.filters {
  padding: 16px;
  border: 1px solid var(--mx-border);
  border-radius: var(--mx-radius);
  background: #fff;
  box-shadow: var(--mx-shadow-sm);
}
.filters .field { margin: 0; }

.notice, .confirm-bar { border-width: 1px 1px 1px 4px; background: #f7fafc; box-shadow: var(--mx-shadow-sm); }
.badge { padding: 4px 9px; font-weight: 800; }
.badge-wholesale { color: var(--mx-primary-dark); background: #BFEBD5; }
.badge-retail { color: var(--mx-primary); background: #edf3f7; }
.choice label { border-radius: 13px; }
.choice label:hover { border-color: #9db0c0; }
.choice label:has(input:checked) { border-color: var(--mx-primary); background: var(--mx-primary); box-shadow: 0 8px 18px rgba(11,43,76,.14); }

.footer-nav {
  border-top: 0;
  box-shadow: 0 -8px 30px rgba(11,43,76,.11);
  padding-top: 5px;
}
.footer-nav a { color: #607184; }
.footer-nav a.active { color: var(--mx-primary); }
.footer-nav a.active::before {
  content: "";
  position: absolute;
  top: 0;
  width: 24px;
  height: 3px;
  border-radius: 0 0 5px 5px;
  background: var(--mx-secondary);
}
.footer-nav a.active i { transform: translateY(-1px); }
.cart-count { color: var(--mx-primary-dark); background: var(--mx-secondary); font-weight: 800; }
.site-footer { color: #ced8e0; border: 0; background: var(--mx-primary-dark); }
.site-footer a { color: #fff; }

.auth-body {
  background:
    radial-gradient(circle at 18% 15%, rgba(1,183,108,.20), transparent 28%),
    linear-gradient(145deg, var(--mx-primary-dark), var(--mx-primary));
}
.auth-body .main { min-height: 100vh; display: grid; place-items: center; padding: 38px 0; }
.auth-brand { width: max-content; margin: 0 auto 18px; color: #fff; }
.auth-tools { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.auth-tools .auth-brand { margin: 0; }
.auth-tools .language-switcher { margin-left: auto; }
.auth-card { padding: clamp(24px, 6vw, 36px); border-radius: 22px; background: #fff; box-shadow: 0 25px 70px rgba(0,0,0,.22); }
.auth-card h1 { font-size: clamp(28px, 7vw, 38px); margin-bottom: 24px; }
.auth-card form > .btn-primary { width: 100%; }
.auth-card form > p:last-child { margin: 22px 0 0; text-align: center; color: #607184; }
.auth-card a { color: var(--mx-primary); font-weight: 700; }
.auth-assurance { display: flex; justify-content: center; align-items: center; gap: 7px; margin: 16px 0 0; color: rgba(255,255,255,.72); font-size: 12px; }

.admin-body { background: #f2f5f8; }
.sidebar { color: #fff; background: linear-gradient(180deg, var(--mx-primary-dark), #081522); }
.sidebar-head { padding: 2px 8px 18px; border-bottom: 1px solid rgba(255,255,255,.09); }
.sidebar .brand { margin: 0; }
.admin-label { display: block; margin: 9px 0 0 42px; color: rgba(255,255,255,.47); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.side-nav { gap: 4px; }
.side-nav a { position: relative; color: rgba(255,255,255,.70); border: 1px solid transparent; border-radius: 11px; font-size: 14px; }
.side-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.side-nav a.active { color: #fff; border-color: rgba(1,183,108,.20); background: linear-gradient(90deg, rgba(1,183,108,.20), rgba(1,183,108,.06)); }
.side-nav a.active::before { content: ""; position: absolute; left: -5px; width: 3px; height: 22px; border-radius: 99px; background: var(--mx-secondary); }
.side-nav a.active i { color: var(--mx-secondary); }
.count { color: var(--mx-primary-dark); background: var(--mx-secondary); font-weight: 800; }
.admin-main { min-width: 0; }
.admin-top { margin: -16px -16px 26px; padding: 12px 16px; border-bottom: 1px solid var(--mx-border); background: rgba(255,255,255,.92); backdrop-filter: blur(12px); }
.admin-identity { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.admin-identity > span:last-child { display: grid; }
.admin-identity small { color: #68798a; font-size: 11px; }
.admin-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: var(--mx-primary-dark); background: #f1d999; font-weight: 800; }
.stats { gap: 14px; margin: 18px 0; }
.stat { position: relative; overflow: hidden; border: 0; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--mx-secondary); }
.stat span { color: #627386; font-weight: 700; }
.stat strong { color: var(--mx-primary-dark); font-size: clamp(22px, 3vw, 29px); }

table.data { overflow: hidden; border-collapse: separate; border-spacing: 0; box-shadow: var(--mx-shadow-sm); }
table.data th { color: #526579; background: #edf2f6; font-size: 11px; }
table.data td { color: #2d4054; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: #f8fafc; }
table.data a { color: var(--mx-primary); font-weight: 700; }
.timeline li { position: relative; border-left-color: #cbd7e1; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--mx-secondary); box-shadow: 0 0 0 3px #fff; }
.toast { border-radius: 14px; box-shadow: 0 16px 38px rgba(6,28,49,.26); }

@media (max-width: 620px) {
  .wrap { width: min(100% - 24px, 1180px); }
  .topbar-inner { min-height: auto; padding: 10px 0; flex-wrap: wrap; gap: 9px; }
  .topbar .brand-mark { width: 30px; height: 30px; }
  .topbar .brand { font-size: 12px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .search input { min-height: 42px; }
  .main { padding-top: 26px; }
  h1 { letter-spacing: -.035em; }
  .grid { gap: 10px; }
  .product-card-body { padding: 12px; }
  .product-card .price { font-size: 15px; }
  .product-view { display: none; }
  .hero { padding-top: 12px; }
  .hero-offer { min-height: 220px; }
  .trust-row { display: grid; grid-template-columns: 1fr 1fr; }
  .section-head { margin-top: 32px; }
  .filters { padding: 14px; }
  .admin-identity small { display: none; }
  .admin-identity strong { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .admin-top .btn-ghost { width: 44px; padding-inline: 0; font-size: 0; }
  .admin-top .btn-ghost i { font-size: 16px; }
}

/* Screenshot-matched commerce storefront -------------------------------- */
.storefront-body { --store-accent: var(--mx-secondary); --store-navy: var(--mx-primary); --store-soft: var(--mx-surface-muted); }
.store-utility { display: none; color: #fff; background: var(--mx-primary); }
.store-utility-inner { min-height: 53px; align-items: center; justify-content: space-between; }
.store-utility-inner > span { display: flex; align-items: center; gap: 11px; min-width: 0; padding-inline: 28px; border-right: 1px solid rgba(255,255,255,.17); }
.store-utility-inner > span:first-child { padding-left: 0; }
.store-utility-inner > span:last-child { padding-right: 0; border-right: 0; }
.store-utility-inner > span > i { color: var(--store-accent); font-size: 22px; }
.store-utility-inner > span > span { display: grid; line-height: 1.25; }
.store-utility-inner strong { color: #fff; font-size: 10px; }
.store-utility-inner small { color: rgba(255,255,255,.62); font-size: 8.5px; }

.category-menu-link, .store-account-link, .store-cart-link { color: #fff; text-decoration: none; }
.category-menu-link { display: none; align-items: center; gap: 9px; min-height: 42px; padding: 0 14px; border: 1px solid rgba(255,255,255,.13); border-radius: 9px; background: rgba(255,255,255,.05); font-size: 10px; font-weight: 800; white-space: nowrap; }
.category-menu-link > i:first-child { font-size: 18px; }
.category-menu-link > i:last-child { color: rgba(255,255,255,.55); font-size: 8px; }
.store-account-link { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding-inline: 4px 12px; border-right: 1px solid rgba(255,255,255,.18); font-size: 10px; font-weight: 750; white-space: nowrap; }
.store-account-link > i { font-size: 19px; }
.store-cart-link { position: relative; display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; font-size: 21px; }
.store-cart-link .cart-count { position: absolute; top: 1px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border: 2px solid var(--store-navy); background: var(--store-accent); font-size: 8px; }

.storefront-home-page { background: var(--mx-surface-muted); }
.storefront-home-page .wrap { width: min(1400px, calc(100% - 44px)); }
.storefront-home-page .main { padding: 22px 0 70px; }
.storefront-home-page .site-footer { margin-top: 0; }
.market-home-reference { gap: 34px; }

.commerce-hero { display: grid; grid-template-columns: 248px minmax(0, 1fr); grid-template-rows: 400px 64px; gap: 10px 13px; min-height: 474px; }
.hero-categories { display: block; grid-row: 1 / span 2; min-width: 0; height: 474px; overflow-y: auto; border: 1px solid #D7E4DD; border-radius: 12px; background: var(--mx-surface); box-shadow: 0 5px 22px rgba(7,28,23,.06); scrollbar-width: none; }
.hero-categories::-webkit-scrollbar { display: none; }
.hero-categories-title { position: sticky; z-index: 2; top: 0; display: flex; min-height: 42px; align-items: center; gap: 10px; padding: 0 15px; color: #fff; border-radius: 11px 11px 0 0; background: var(--mx-primary); box-shadow: 0 2px 8px rgba(4,19,15,.13); font-size: 11px; }
.hero-categories-title > i { color: var(--mx-secondary); font-size: 17px; }
.hero-category-list { margin: 0; padding: 6px 0; }
.hero-categories a { display: grid; grid-template-columns: 21px minmax(0, 1fr) 9px; min-height: 31px; align-items: center; gap: 8px; padding: 4px 15px; color: var(--mx-ink); font-size: 10.5px; font-weight: 700; text-decoration: none; }
.hero-categories a:hover { color: var(--mx-primary); background: #EFFAF4; }
.hero-categories a > i:first-child { color: var(--mx-primary); font-size: 13px; }
.hero-categories a > i:last-child { color: #81948A; font-size: 8px; }
.hero-menu-divider { display: flex; align-items: center; gap: 9px; padding: 0 14px; color: var(--mx-primary); font-size: 10px; font-weight: 850; }
.hero-menu-divider::before, .hero-menu-divider::after { height: 1px; flex: 1; content: ""; background: var(--mx-border); }
.hero-brand-list { padding-top: 4px; }
.hero-brand-icon { display: grid; width: 18px; height: 18px; place-items: center; overflow: hidden; color: var(--mx-primary); border-radius: 5px; background: #E2F8EC; font-size: 9px; font-weight: 900; }
.hero-brand-icon.is-icon { color: #fff; background: var(--mx-primary); font-size: 12px; }
.hero-brand-icon.has-image { background: #fff; }
.hero-brand-icon img { width: 100%; height: 100%; object-fit: contain; }
.hero-price-menu { margin: 2px 7px 3px; border: 1px solid #BFEBD5; border-radius: 8px; background: #F2FBF6; }
.hero-price-menu > summary { display: flex; min-height: 31px; align-items: center; justify-content: space-between; gap: 8px; padding: 0 9px; color: var(--mx-primary); cursor: pointer; font-size: 10px; font-weight: 850; list-style: none; }
.hero-price-menu > summary::-webkit-details-marker { display: none; }
.hero-price-menu > summary > span { display: inline-flex; align-items: center; gap: 7px; }
.hero-price-menu > summary > span > i { color: var(--mx-primary); }
.hero-price-menu[open] > summary > i { transform: rotate(0); }
.hero-price-menu:not([open]) > summary > i { transform: rotate(180deg); }
.hero-price-menu .hero-category-list { padding: 0 0 4px; }
.hero-price-menu .hero-category-list a { min-height: 27px; padding-inline: 9px; font-size: 9.5px; }
.hero-category-list-bottom { border-top: 1px solid var(--mx-border); }

.commerce-hero-main { position: relative; grid-column: 2; grid-row: 1; min-width: 0; min-height: 400px; overflow: hidden; border-radius: 14px; background: var(--mx-primary); box-shadow: 0 10px 28px rgba(7,28,23,.12); touch-action: pan-y; }
.commerce-hero-slides { position: absolute; inset: 0; }
.commerce-hero-slide { position: absolute; z-index: 0; inset: 0; opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(18px); transition: opacity .38s ease, transform .38s ease, visibility .38s; }
.commerce-hero-slide.is-active { z-index: 1; opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(0); }
.commerce-hero-banner-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.commerce-hero-banner-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,19,15,.95) 0%, rgba(4,19,15,.77) 35%, rgba(4,19,15,.12) 67%, rgba(4,19,15,0) 100%); }
.commerce-hero-copy { position: relative; z-index: 2; display: flex; width: min(49%, 540px); height: 100%; min-width: 0; flex-direction: column; justify-content: center; padding: 32px 20px 38px 44px; }
.commerce-kicker { display: flex; align-items: center; gap: 9px; margin: 0 0 16px; color: var(--store-accent); font-size: 9px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.commerce-kicker span { width: 16px; height: 2px; background: var(--store-accent); }
.commerce-hero-main h1, .commerce-hero-main h2 { max-width: 490px; margin: 0; color: #fff; font-size: clamp(34px, 3.4vw, 54px); line-height: 1.04; letter-spacing: -.055em; text-wrap: balance; }
.commerce-hero-copy > p:not(.commerce-kicker) { max-width: 420px; margin: 13px 0 0; color: rgba(255,255,255,.78); font-size: 13px; font-weight: 650; line-height: 1.55; }
.hero-specs { display: flex; gap: 18px; margin-top: 25px; }
.hero-specs > span { display: grid; grid-template-columns: 28px minmax(0, 1fr); min-width: 0; padding-right: 16px; border-right: 1px solid rgba(7,28,23,.13); }
.hero-specs > span:last-child { padding-right: 0; border-right: 0; }
.hero-specs i { grid-row: 1 / span 2; color: var(--mx-primary); font-size: 21px; }
.hero-specs strong { color: var(--mx-primary); font-size: 8.5px; line-height: 1.3; }
.hero-specs small { color: var(--mx-muted); font-size: 7.5px; line-height: 1.35; }
.commerce-cta { display: inline-flex; min-height: 45px; width: max-content; align-items: center; justify-content: center; gap: 15px; margin-top: 27px; padding: 10px 22px; color: #fff; border-radius: 8px; background: var(--store-accent); box-shadow: 0 8px 20px rgba(1,183,108,.20); font-size: 10px; font-weight: 850; text-decoration: none; }
.commerce-cta:hover { background: var(--mx-secondary-dark); transform: translateY(-1px); }
.commerce-hero-image { position: relative; z-index: 1; display: grid; min-width: 0; place-items: center; text-decoration: none; }
.commerce-hero-image::before { position: absolute; width: 310px; height: 310px; content: ""; border-radius: 50%; background: rgba(255,255,255,.46); filter: blur(2px); }
.commerce-hero-image img { position: relative; z-index: 1; width: 96%; height: 390px; object-fit: contain; filter: drop-shadow(0 20px 25px rgba(7,31,58,.20)); }
.commerce-hero-image > i { position: relative; z-index: 1; color: #71899f; font-size: 120px; }
.hero-dots { position: absolute; z-index: 4; bottom: 15px; left: 50%; display: flex; gap: 6px; transform: translateX(-50%); }
.hero-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; transition: width .2s ease, background-color .2s ease; }
.hero-dots button.active, .hero-dots button[aria-selected="true"] { width: 20px; border-radius: 999px; background: var(--store-accent); }
.hero-dots button:focus-visible { outline: 2px solid #071c37; outline-offset: 3px; }
.home-brand-rail { grid-column: 2; grid-row: 2; display: flex; min-width: 0; overflow-x: auto; align-items: stretch; padding: 5px 8px; border: 1px solid #D7E4DD; border-radius: 14px; background: #fff; box-shadow: 0 6px 20px rgba(7,28,23,.06); scrollbar-width: none; }
.home-brand-rail::-webkit-scrollbar { display: none; }
.home-brand-rail a { position: relative; display: flex; min-width: 112px; flex: 1 0 112px; align-items: center; justify-content: center; gap: 8px; padding: 4px 12px; color: #071c17; text-decoration: none; white-space: nowrap; }
.home-brand-rail a:not(:last-child)::after { position: absolute; top: 9px; right: 0; bottom: 9px; width: 1px; content: ""; background: #DCE4E0; }
.home-brand-rail a:hover { color: var(--mx-secondary-dark); }
.home-brand-rail-mark { display: grid; width: 31px; height: 31px; flex: 0 0 31px; place-items: center; overflow: hidden; color: #071c17; border-radius: 9px; font-size: 18px; font-weight: 900; }
.home-brand-rail-mark img { width: 100%; height: 100%; object-fit: contain; }
.home-brand-rail strong { color: currentColor; font-size: 10.5px; font-weight: 900; letter-spacing: -.02em; text-transform: none; }
.home-brand-rail [data-brand="google"] .home-brand-rail-mark { color: #4285f4; font-size: 20px; }
.home-brand-rail [data-brand="samsung"] strong { color: #1428a0; letter-spacing: .04em; text-transform: uppercase; }
.home-brand-rail [data-brand="apple"] .home-brand-rail-mark { font-size: 22px; }
.home-brand-rail [data-brand="sony"] strong, .home-brand-rail [data-brand="aqous"] strong { letter-spacing: .05em; text-transform: uppercase; }
.home-brand-rail [data-brand="motorola"] .home-brand-rail-mark { width: 27px; height: 27px; flex-basis: 27px; color: #fff; border-radius: 50%; background: #111; font-size: 12px; }
.home-brand-rail [data-brand="huawei"] .home-brand-rail-mark { color: #cf1728; font-size: 22px; }
.home-brand-rail [data-brand="huawei"] strong { text-transform: uppercase; }
.home-brand-rail [data-brand="redmi"] .home-brand-rail-mark { width: 28px; height: 28px; flex-basis: 28px; color: #fff; background: #f56600; font-size: 11px; }

.hero-promos { display: grid; min-width: 0; grid-template-rows: 1fr 1fr; gap: 13px; }
.hero-promo { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(120px, 1.05fr); min-width: 0; overflow: hidden; padding: 25px 12px 20px 23px; border-radius: 14px; background: #E2F6EB; text-decoration: none; }
.hero-promo-2 { background: #EEF8F2; }
.hero-promo > span { position: relative; z-index: 2; display: flex; min-width: 0; flex-direction: column; align-items: flex-start; }
.hero-promo strong { display: -webkit-box; overflow: hidden; color: var(--mx-primary); font-size: 18px; line-height: 1.12; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.hero-promo small { max-width: 120px; margin-top: 8px; color: #355649; font-size: 10px; line-height: 1.35; }
.hero-promo b { display: inline-flex; align-items: center; gap: 9px; margin-top: auto; padding: 10px 14px; color: #fff; border-radius: 7px; background: var(--mx-primary); font-size: 8.5px; }
.hero-promo img { width: 100%; height: 185px; align-self: center; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(7,31,58,.16)); }

.commerce-benefits { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); min-height: 72px; align-items: center; border: 1px solid #e3e9ef; border-radius: 14px; background: #fff; box-shadow: 0 5px 20px rgba(7,31,58,.035); }
.commerce-benefits > span { display: flex; min-width: 0; align-items: center; gap: 12px; padding: 8px 25px; border-right: 1px solid #e5eaf0; }
.commerce-benefits > span:last-child { border-right: 0; }
.commerce-benefits i { color: var(--store-accent); font-size: 21px; }
.commerce-benefits > span > span { display: grid; min-width: 0; }
.commerce-benefits strong { overflow: hidden; color: #102b46; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.commerce-benefits small { overflow: hidden; color: #8a98a6; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }

.commerce-section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.commerce-section-head > div { min-width: 0; }
.commerce-section-head h2 { display: flex; align-items: center; gap: 9px; margin: 0; color: #071d39; font-size: clamp(20px, 2.15vw, 29px); letter-spacing: -.035em; }
.commerce-section-head p { margin: 5px 0 0; color: #758493; font-size: 10px; }
.commerce-section-head > a { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; padding-bottom: 5px; color: #0c2b48; font-size: 9px; font-weight: 800; text-decoration: none; }
.commerce-section-head > a:hover { color: var(--store-accent); }

.commerce-category-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 9px; }
.commerce-category-grid > a { display: flex; min-width: 0; min-height: 170px; flex-direction: column; align-items: center; justify-content: space-between; gap: 7px; padding: 13px 8px 15px; border: 1px solid #e1e8ee; border-radius: 13px; background: #fff; text-align: center; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.commerce-category-grid > a:hover { border-color: rgba(1,183,108,.35); box-shadow: 0 10px 24px rgba(7,28,23,.08); transform: translateY(-3px); }
.commerce-category-grid > a > span { display: grid; width: 100%; height: 112px; place-items: center; overflow: hidden; border-radius: 9px; background: #f7f9fb; }
.commerce-category-grid img { width: 100%; height: 100%; object-fit: contain; }
.commerce-category-grid span > i { color: #163c5e; font-size: 35px; }
.commerce-category-grid strong { display: -webkit-box; min-height: 2.5em; overflow: hidden; color: #15314c; font-size: 8.5px; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.commerce-category-grid .commerce-category-more span > i { font-size: 28px; }

.commerce-deals-head > div { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.commerce-deals-head h2 > i, .home-section-icon { color: var(--store-accent); }
.deal-timer { display: inline-flex; align-items: center; gap: 5px; color: var(--store-accent); font-size: 9px; }
.deal-timer small { margin-right: 7px; padding: 7px 10px; border-radius: 6px; background: #E2F8EC; font-weight: 800; }
.deal-timer b { display: grid; width: 27px; height: 27px; place-items: center; color: #fff; border-radius: 5px; background: var(--store-accent); font-size: 9px; }
.home-deal-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 11px; }
.home-fresh-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.home-products .infinite-sentinel { margin-top: 12px; border-top: 1px solid rgba(7,28,23,.08); }
.home-products .infinite-sentinel.complete { color: var(--mx-muted); }

.home-product-card { position: relative; display: flex; min-width: 0; overflow: hidden; flex-direction: column; border: 1px solid #dfe6ec; border-radius: 13px; background: #fff; box-shadow: 0 5px 18px rgba(7,31,58,.035); }
.home-product-card:hover { border-color: rgba(7,31,58,.22); box-shadow: 0 12px 28px rgba(7,31,58,.09); transform: translateY(-2px); }
.home-product-main { display: flex; min-width: 0; flex: 1; flex-direction: column; text-decoration: none; }
.home-product-favorite { position: absolute; z-index: 3; top: 12px; right: 12px; display: grid; width: 25px; height: 25px; place-items: center; color: #6f8599; border-radius: 50%; background: rgba(255,255,255,.86); font-size: 13px; }
.home-deal-badge { position: absolute; z-index: 3; top: 12px; left: 0; padding: 5px 10px; color: #fff; border-radius: 0 7px 7px 0; background: var(--store-accent); font-size: 8px; font-weight: 850; }
.home-product-image { display: grid; width: 100%; aspect-ratio: 1.13; place-items: center; overflow: hidden; padding: 10px; background: #f8fafb; }
.home-product-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .22s ease; }
.home-product-card:hover .home-product-image img { transform: scale(1.035); }
.home-product-image > i { color: #90a1af; font-size: 55px; }
.home-product-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; padding: 11px 12px 8px; }
.home-product-copy > strong { display: -webkit-box; min-height: 2.5em; overflow: hidden; color: #102d49; font-size: 10.5px; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.home-product-copy > small { display: flex; align-items: center; gap: 5px; margin-top: 6px; overflow: hidden; color: #7b8b99; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.home-product-copy > small i { color: #f5a000; }
.home-product-copy > b { margin-top: 8px; color: var(--store-accent); font-size: 13px; font-variant-numeric: tabular-nums; }
.home-product-labels { display: flex; min-width: 0; align-items: center; gap: 7px; margin-top: 7px; }
.home-product-labels > span:last-child { display: inline-flex; min-width: 0; align-items: center; gap: 4px; overflow: hidden; color: #66788a; font-size: 7.5px; text-overflow: ellipsis; white-space: nowrap; }
.home-product-labels > span:last-child i { color: #7a8a99; }
.home-product-card > form { display: block; margin: 0; padding: 0 11px 11px; }
.home-cart-button { display: flex; width: calc(100% - 22px); min-height: 37px; align-items: center; justify-content: center; gap: 8px; margin: 0 11px 11px; padding: 7px 10px; color: #fff; border: 0; border-radius: 7px; background: var(--store-accent); font-size: 9px; font-weight: 800; text-decoration: none; }
.home-product-card > form .home-cart-button { width: 100%; margin: 0; }
.home-cart-button:hover { background: var(--mx-secondary-dark); }
.home-cart-button.is-added { background: #167a55; }

.commerce-condition-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.commerce-condition-grid > a { display: grid; grid-template-columns: 55px minmax(0, 1fr) 15px; min-height: 92px; align-items: center; gap: 14px; padding: 14px 19px; border: 1px solid #dfe6ec; border-radius: 12px; background: #fff; text-decoration: none; }
.commerce-condition-grid > a:hover { border-color: rgba(1,183,108,.34); box-shadow: 0 8px 20px rgba(7,28,23,.06); }
.commerce-condition-grid > a > span { display: grid; width: 55px; height: 55px; place-items: center; color: var(--store-accent); border-radius: 50%; background: #E2F8EC; font-size: 22px; }
.commerce-condition-grid > a > div { display: grid; gap: 4px; }
.commerce-condition-grid strong { color: #102d49; font-size: 10px; }
.commerce-condition-grid small { color: #748493; font-size: 8px; }
.commerce-condition-grid > a > i { color: #15334f; font-size: 11px; }

.commerce-trust { position: relative; display: grid; grid-template-columns: minmax(270px, .9fr) minmax(320px, 1.1fr) minmax(300px, 1fr); min-height: 260px; align-items: center; gap: 25px; overflow: hidden; padding: 29px 38px; color: #fff; border-radius: 16px; background: radial-gradient(circle at 75% 40%, #136A47 0, transparent 35%), linear-gradient(110deg, #04130F 0%, #071C17 65%, #0B3728 100%); }
.commerce-trust::after { position: absolute; right: -110px; bottom: -170px; width: 520px; height: 250px; content: ""; border-radius: 50%; background: #BFEBD5; opacity: .85; transform: rotate(-8deg); }
.commerce-trust-copy { position: relative; z-index: 2; }
.commerce-trust-copy p { margin: 0 0 8px; color: var(--store-accent); font-size: 8px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.commerce-trust-copy h2 { max-width: 390px; margin: 0; color: #fff; font-size: clamp(27px, 3vw, 38px); line-height: 1.05; letter-spacing: -.045em; }
.commerce-trust-copy > span { display: block; max-width: 340px; margin-top: 9px; color: rgba(255,255,255,.72); font-size: 9.5px; line-height: 1.5; }
.commerce-trust-copy .commerce-cta { margin-top: 15px; }
.commerce-trust-points { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.commerce-trust-points > span { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; padding-right: 14px; border-right: 1px solid rgba(255,255,255,.18); }
.commerce-trust-points > span:last-child { border-right: 0; }
.commerce-trust-points i { display: grid; width: 43px; height: 43px; place-items: center; margin-bottom: 10px; color: var(--store-accent); border: 1px solid rgba(255,255,255,.28); border-radius: 50%; font-size: 18px; }
.commerce-trust-points strong { color: #fff; font-size: 9px; }
.commerce-trust-points small { margin-top: 5px; color: rgba(255,255,255,.62); font-size: 7.5px; line-height: 1.45; }
.commerce-trust-products { position: relative; z-index: 2; display: flex; min-width: 0; align-items: end; justify-content: center; height: 220px; padding-top: 15px; }
.commerce-trust-products img { width: 31%; height: 185px; margin-left: -7%; object-fit: contain; filter: drop-shadow(0 18px 18px rgba(0,0,0,.3)); }
.commerce-trust-products img:first-child { margin-left: 0; }

@media (min-width: 900px) {
  .store-utility { display: block; }
  .store-utility-inner { display: flex; }
  .storefront-home-page .topbar { top: 0; }
  .storefront-home-page .topbar-inner { min-height: 73px; gap: 14px; }
  .storefront-home-page .brand-logo { max-width: 175px; height: 34px; }
  .storefront-home-page .category-menu-link { display: inline-flex; }
  .storefront-home-page .desktop-nav { gap: 20px; }
  .storefront-home-page .desktop-nav a { padding-block: 24px; font-size: 9.5px; white-space: nowrap; }
  .storefront-home-page .search { max-width: none; height: 46px; }
  .storefront-home-page .search .search-submit { width: 58px; height: 38px; margin-right: 4px; color: #fff; border-radius: 8px; background: var(--store-accent); }
  .storefront-home-page .search .search-voice { width: 38px; height: 38px; margin-right: 2px; color: #607386; background: transparent; }
  .storefront-home-page .search .search-voice.is-listening { color: #fff; background: var(--store-accent); }
  .storefront-home-page .language-switcher { margin-left: 0; }
}

@media (max-width: 1180px) {
  .commerce-hero { grid-template-columns: 210px minmax(0, 1fr); }
  .hero-categories a { padding-inline: 11px; }
  .commerce-hero-copy { width: min(55%, 500px); padding-left: 30px; }
  .hero-specs > span:nth-child(3) { display: none; }
  .commerce-category-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .home-deal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-fresh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .commerce-trust { grid-template-columns: .9fr 1.1fr; }
  .commerce-trust-products { display: none; }
}

@media (max-width: 899px) {
  .storefront-home-page .wrap { width: min(100% - 28px, 760px); }
  .storefront-home-page .main { padding-top: 14px; }
  .storefront-home-page .topbar-inner { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; padding-block: 9px; }
  .storefront-home-page .brand { grid-column: 1; }
  .storefront-home-page .language-switcher { grid-column: 3; grid-row: 1; margin-left: 0; }
  .storefront-home-page .store-account-link { grid-column: 4; grid-row: 1; padding-right: 0; border-right: 0; }
  .storefront-home-page .store-account-link span { display: none; }
  .storefront-home-page .store-cart-link { display: none; }
  .storefront-home-page .search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .commerce-hero { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 340px 64px; min-height: 414px; }
  .hero-categories { display: none; }
  .commerce-hero-main { grid-column: 1; min-height: 340px; }
  .home-brand-rail { grid-column: 1; }
  .commerce-hero-copy { width: min(58%, 480px); }
  .hero-promos { display: none; }
  .commerce-benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .commerce-benefits > span:nth-child(n+4) { display: none; }
  .commerce-condition-grid { grid-template-columns: 1fr; }
  .commerce-trust { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .storefront-home-page .wrap { width: calc(100% - 22px); }
  .market-home-reference { gap: 28px; }
  .commerce-hero { grid-template-rows: 275px 60px; min-height: 345px; }
  .commerce-hero-main { min-height: 275px; border-radius: 13px; }
  .commerce-hero-banner-image { object-position: 62% center; }
  .commerce-hero-banner-overlay { background: linear-gradient(90deg, rgba(4,19,15,.95) 0%, rgba(4,19,15,.78) 52%, rgba(4,19,15,.18) 100%); }
  .commerce-hero-copy { width: 74%; padding: 24px 14px 32px 20px; }
  .commerce-hero-main h1, .commerce-hero-main h2 { font-size: clamp(25px, 8vw, 33px); }
  .commerce-hero-copy > p:not(.commerce-kicker) { max-width: 220px; font-size: 10px; }
  .commerce-kicker { margin-bottom: 10px; font-size: 7.5px; }
  .hero-specs { gap: 9px; margin-top: 18px; }
  .hero-specs > span { grid-template-columns: 22px minmax(0, 1fr); padding-right: 8px; }
  .hero-specs > span:nth-child(n+3) { display: none; }
  .hero-specs i { font-size: 17px; }
  .hero-specs strong { font-size: 7px; }
  .hero-specs small { display: none; }
  .commerce-cta { min-height: 37px; margin-top: 14px; padding: 7px 14px; }
  .hero-dots { bottom: 10px; }
  .home-brand-rail { padding-inline: 5px; border-radius: 12px; scroll-snap-type: x proximity; }
  .home-brand-rail a { min-width: 118px; flex-basis: 118px; padding-inline: 9px; scroll-snap-align: start; }
  .commerce-benefits { display: flex; min-height: 68px; overflow-x: auto; scrollbar-width: none; }
  .commerce-benefits::-webkit-scrollbar { display: none; }
  .commerce-benefits > span, .commerce-benefits > span:nth-child(n+4) { display: flex; min-width: 205px; padding-inline: 17px; }
  .commerce-section-head { align-items: end; }
  .commerce-section-head h2 { font-size: 20px; }
  .commerce-section-head p { font-size: 8.5px; }
  .commerce-section-head > a { font-size: 8px; }
  .commerce-category-grid { display: flex; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .commerce-category-grid::-webkit-scrollbar { display: none; }
  .commerce-category-grid > a { min-width: 115px; min-height: 145px; }
  .commerce-category-grid > a > span { height: 90px; }
  .home-deal-grid, .home-fresh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .home-product-image { aspect-ratio: 1; }
  .home-product-copy { padding-inline: 9px; }
  .home-product-card > form { padding-inline: 8px; }
  .home-cart-button { width: calc(100% - 16px); margin-inline: 8px; font-size: 8px; }
  .commerce-condition-grid > a { min-height: 82px; padding: 11px 13px; }
  .commerce-trust { min-height: 0; padding: 26px 20px; }
  .commerce-trust-copy h2 { font-size: 29px; }
  .commerce-trust-points { grid-template-columns: 1fr; gap: 13px; }
  .commerce-trust-points > span { display: grid; grid-template-columns: 38px minmax(0, 1fr); padding: 0; border: 0; }
  .commerce-trust-points i { grid-row: 1 / span 2; width: 34px; height: 34px; margin: 0; }
}

@media (min-width: 900px) {
  .topbar .brand { margin-right: 14px; }
  .hero { grid-template-columns: minmax(0, 1.45fr) minmax(300px, .7fr); min-height: 440px; }
  .admin-shell { grid-template-columns: 250px minmax(0, 1fr); }
  .admin-main { padding: 0 32px 52px; }
  .admin-top { position: sticky; top: 0; z-index: 20; margin: 0 -32px 30px; padding: 13px 32px; }
}

@media (max-width: 760px) {
  table.stack { border: 0; box-shadow: none; background: transparent; }
  table.stack tr { padding: 10px; border: 0; box-shadow: var(--mx-shadow-sm); }
  table.stack td { align-items: baseline; }
  table.stack td::before { color: #647689; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
}

@media (prefers-reduced-motion: reduce) {
  a, button, input, select, textarea, .card, .sidebar { transition: none; }
}

/* Emerald, deep-green and soft-white brand palette. */
:root {
  --mx-shadow-sm: 0 1px 2px rgba(17,17,17,.05), 0 5px 18px rgba(17,17,17,.04);
  --mx-shadow-md: 0 16px 40px rgba(17,17,17,.10);
  --mx-ring: 0 0 0 4px rgba(1,183,108,.18);
}

body { background: linear-gradient(180deg, var(--mx-surface) 0, var(--mx-surface) 360px, var(--mx-surface-muted) 100%); }
::selection { color: #fff; background: var(--mx-primary); }
.topbar { background: var(--mx-primary); border-bottom-color: rgba(255,255,255,.08); box-shadow: 0 10px 30px rgba(4,19,15,.14); }
.brand-mark { color: #fff; background: var(--mx-primary); box-shadow: none; }
.desktop-nav a.active::after { background: var(--mx-primary); }
.desktop-nav .nav-signin { border-color: rgba(255,255,255,.22); }
.search { border-color: rgba(255,255,255,.18); }
.kicker, .section-head a, .footer-nav a.active { color: var(--mx-primary); }
h1, h2, h3, .product-card .price { color: var(--mx-ink); }
.btn-primary { background: var(--mx-primary); box-shadow: 0 8px 18px rgba(7,28,23,.16); }
.btn-primary:hover { background: var(--mx-primary-dark); box-shadow: 0 10px 24px rgba(4,19,15,.20); }
.btn-secondary { color: var(--mx-ink); border-color: #bbb; }
.btn-secondary:hover { border-color: var(--mx-ink); background: #f8f8f8; }
.chip { color: var(--mx-ink); border-color: var(--mx-border); }
.chip::before { background: var(--mx-primary); }
.chip:hover { color: #fff; border-color: var(--mx-primary); background: var(--mx-primary); }
.chips { scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.device { background: linear-gradient(145deg, #fafafa, #f0f0f0); }
.footer-nav a.active::before, .stat::before, .side-nav a.active::before { background: var(--mx-primary); }
.cart-count, .count { color: #fff; background: var(--mx-primary); }
.site-footer, .sidebar { background: var(--mx-primary-dark); }
.side-nav a.active { border-color: rgba(1,183,108,.30); background: linear-gradient(90deg, rgba(1,183,108,.24), rgba(1,183,108,.06)); }
.side-nav a.active i { color: var(--mx-secondary); }
.admin-avatar { color: #fff; background: var(--mx-primary); }
.auth-body { background: radial-gradient(circle at 18% 15%, rgba(1,183,108,.20), transparent 28%), linear-gradient(145deg, var(--mx-primary-dark), #0B3728); }
.badge-wholesale { color: #fff; background: var(--mx-ink); }

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  margin-left: auto;
  padding: 5px 7px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 10px;
  background: rgba(255,255,255,.06);
}
.language-switcher i { color: var(--mx-secondary); }
.language-switcher select {
  min-height: 30px;
  padding: 0 20px 0 4px;
  color: #fff;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.language-switcher option { color: #111; background: #fff; }
.search { margin-left: 0; }

.home-head, .page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0 22px;
  border-bottom: 1px solid var(--mx-border);
}
.home-head h1, .page-head h1 { margin: 0; font-size: clamp(30px, 5vw, 48px); }
.home-head .muted { margin: 8px 0 0; }
.compact-head { margin-top: 24px; border: 0; }
.compact-head h2 { font-size: 15px; letter-spacing: .02em; }
.home-head { padding: 0 0 14px; border-bottom: 0; }
.home-categories { margin-bottom: 18px; }
.home-products { margin-top: 0; }

.purchase-card, .lipa-card { padding: 16px; }
.purchase-row { display: flex; align-items: end; gap: 12px; }
.quantity-control { display: grid; flex: 0 0 auto; gap: 6px; }
.quantity-control > label, .lipa-select > label { color: var(--mx-primary-dark); font-size: 12px; font-weight: 800; }
.purchase-card .stepper { border-radius: 12px; }
.purchase-card .stepper button { width: 40px; height: 44px; }
.purchase-card .stepper input { width: 44px; min-height: 44px; }
.purchase-button { flex: 1 1 auto; }
.purchase-card + .lipa-card { margin-top: 10px !important; }
.lipa-heading { display: flex; align-items: center; gap: 11px; }
.lipa-heading h2 { margin: 0 0 3px; font-size: 18px; }
.lipa-heading .help { line-height: 1.35; }
.lipa-icon { width: 40px; height: 40px; display: grid; flex: 0 0 40px; place-items: center; color: #fff; border-radius: 12px; background: var(--mx-primary); }
.lipa-row { display: flex; align-items: end; gap: 10px; margin-top: 13px; }
.lipa-select { display: grid; flex: 1 1 auto; gap: 6px; }
.lipa-select select { width: 100%; min-height: 44px; padding: 9px 34px 9px 12px; border: 1px solid var(--mx-border); border-radius: 12px; background: #fff; }
.lipa-row .btn-secondary { flex: 0 0 auto; }

.product-labels { min-height: 24px; }
.condition-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  padding: 5px 9px 5px 7px;
  color: #fff;
  border-radius: 5px 2px 2px 5px;
  background: var(--mx-primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(1,183,108,.15);
}
.condition-label::after {
  content: "";
  position: absolute;
  right: -5px;
  width: 10px;
  height: 10px;
  background: inherit;
  transform: rotate(45deg);
  border-radius: 1px;
}
.condition-label > * { position: relative; z-index: 1; }
.condition-new { color: #111; border: 1px solid #d4d4d4; background: #fff; box-shadow: none; }
.condition-new::after { right: -6px; border-top: 1px solid #d4d4d4; border-right: 1px solid #d4d4d4; }
.condition-used { background: #555; box-shadow: none; }
.device { overflow: hidden; }
.device img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.product-hero-image { background: #f6f6f6; }
.product-thumbs { display: flex; gap: 8px; overflow-x: auto; }
.product-thumbs button { width: 58px; height: 58px; padding: 3px; overflow: hidden; border: 1px solid var(--mx-border); border-radius: 10px; background: #fff; cursor: pointer; }
.product-thumbs button:first-child { border-color: var(--mx-primary); }
.product-thumbs img { width: 100%; height: 100%; object-fit: contain; }

.infinite-sentinel {
  display: flex;
  min-height: 90px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  color: #5f5f5f;
  font-size: 13px;
  font-weight: 700;
}
.infinite-sentinel[hidden] { display: none; }
.infinite-sentinel [data-load-more][hidden] { display: none; }
.infinite-spinner {
  display: none;
  width: 19px;
  height: 19px;
  border: 2px solid #ddd;
  border-top-color: var(--mx-primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.infinite-sentinel.loading .infinite-spinner { display: inline-block; }
.infinite-sentinel.loading [data-load-more] { display: none; }
.infinite-sentinel.complete { min-height: 60px; }
.infinite-sentinel.load-error { color: var(--mx-danger); }

@media (max-width: 620px) {
  .topbar-inner { display: grid; grid-template-columns: 1fr auto; }
  .language-switcher { grid-column: 2; grid-row: 1; }
  .search { grid-column: 1 / -1; grid-row: 2; }
  .main { padding-top: 16px; }
  .home-head, .page-head { padding-top: 0; }
  .home-head { padding-bottom: 10px; }
  .home-head h1 { font-size: 26px; }
  .page-head h1 { font-size: 30px; }
  .home-categories { margin-bottom: 14px; }
  .home-categories .chips { gap: 6px; padding-bottom: 0; }
  .home-categories .chip { min-height: 36px; padding: 6px 12px; }
  .purchase-card, .lipa-card { padding: 13px; }
  .purchase-row { gap: 9px; }
  .purchase-button { min-width: 0; padding-inline: 12px; }
  .lipa-row { gap: 8px; }
  .lipa-row .btn-secondary { padding-inline: 12px; }
  .section-head h2 { font-size: 19px; }

  .grid.product-feed { grid-template-columns: 1fr; gap: 10px; }
  .product-feed .product-card {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    min-height: 136px;
    transform: none;
  }
  .product-feed .device { width: 116px; height: 116px; min-height: 116px; aspect-ratio: 1; align-self: center; border-right: 1px solid var(--mx-border); }
  .product-feed .product-card-body { min-width: 0; padding: 15px 16px; }
  .product-feed .product-card h3 { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .product-feed .product-card .meta { margin-top: 8px; }
  .product-feed .product-card .price { margin-top: auto; padding-top: 10px; font-size: 17px; }
  .condition-label { font-size: 9px; }
  .infinite-sentinel { flex-wrap: wrap; }
}

/* Compact registration */
.register-head { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.register-head h1 { margin: 0 0 3px; font-size: 27px; }
.register-head p { margin: 0; color: var(--mx-muted); font-size: 13px; }
.register-icon { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; color: #fff; border-radius: 13px; background: var(--mx-primary); font-size: 19px; }
.register-form .field { margin-bottom: 0; }
.register-form .strength { min-height: 0; margin: 4px 0 0; }
.register-form .help { margin: 4px 0 0; font-size: 11px; }
.register-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.register-grid label, .account-choice legend { font-size: 12px; font-weight: 800; }
.register-grid label span { color: var(--mx-muted); font-size: 10px; font-weight: 600; }
.register-grid input, .register-grid select { min-height: 43px; }
.account-choice { margin: 15px 0 0; padding: 0; border: 0; }
.account-choice legend { margin-bottom: 7px; }
.account-choice .choice label { min-height: 58px; padding: 9px 11px; }
.account-choice .choice label > i { font-size: 17px; }
.account-choice .choice label > span { display: grid; gap: 1px; }
.account-choice .choice small { color: var(--mx-muted); font-size: 10px; font-weight: 600; }
.account-choice .choice label:has(input:checked) small { color: currentColor; opacity: .75; }
.wholesale-fields { margin-top: 12px; padding: 13px; border: 1px solid var(--mx-border); border-radius: 14px; background: #fafafa; }
.compact-note { display: flex; gap: 8px; margin: 0 0 11px; color: var(--mx-muted); font-size: 11px; line-height: 1.4; }
.compact-note i { color: var(--mx-primary); }
.marketing-check { display: flex; align-items: center; gap: 9px; margin: 14px 0; color: var(--mx-muted); font-size: 12px; }
.marketing-check input { accent-color: var(--mx-primary); }
.terms-check { display: flex; align-items: flex-start; gap: 9px; margin: 16px 0 8px; color: var(--mx-ink); font-size: 12px; line-height: 1.5; }
.terms-check input { margin-top: 2px; accent-color: var(--mx-primary); }
.terms-check a { color: var(--mx-primary); font-weight: 700; }
.register-submit { display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px; }
.register-login { margin: 14px 0 0 !important; text-align: center; font-size: 13px; }
@media (min-width: 760px) { .auth-wrap:has(.register-form) { width: min(720px, calc(100% - 40px)); } }
@media (max-width: 620px) {
  .auth-card:has(.register-form) { padding: 20px 17px; }
  .register-grid { grid-template-columns: 1fr; gap: 11px; }
  .register-head { margin-bottom: 15px; }
  .account-choice .choice { grid-template-columns: 1fr 1fr; }
}

/* Customer account */
.account-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 20px;
  color: #fff;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--mx-ink), #2a2a2a);
  box-shadow: 0 14px 36px rgba(0,0,0,.14);
}
.account-avatar { width: 66px; height: 66px; display: grid; place-items: center; overflow: hidden; border: 2px solid rgba(255,255,255,.22); border-radius: 18px; background: var(--mx-primary); font-size: 25px; font-weight: 800; }
.account-avatar img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.account-identity { min-width: 0; }
.account-identity .kicker { margin-bottom: 2px; color: #9EE5C1; }
.account-identity h1 { max-width: none; margin: 0; color: #fff; font-size: clamp(24px, 4vw, 34px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-identity p:last-child { margin: 3px 0 0; color: rgba(255,255,255,.68); font-size: 13px; }
.account-type { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(255,255,255,.08); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.account-type.is-wholesale { color: var(--mx-primary-dark); border-color: #BFEBD5; background: #BFEBD5; }
.account-alert { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-bottom: 14px; padding: 14px; color: var(--mx-ink); border: 1px solid #f0caca; border-radius: 14px; background: #fff7f7; text-decoration: none; }
.account-alert > i:first-child { color: var(--mx-primary); font-size: 20px; }
.account-alert span { display: grid; }
.account-alert small { color: var(--mx-muted); }
.account-shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.account-shortcuts a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; min-height: 54px; padding: 12px 14px; border: 1px solid var(--mx-border); border-radius: 14px; background: #fff; text-decoration: none; font-weight: 800; }
.account-shortcuts a > i:first-child { display: grid; width: 30px; height: 30px; place-items: center; color: var(--mx-primary); border-radius: 9px; background: #fff0f0; }
.account-shortcuts a > i:last-child { color: #9a9a9a; font-size: 12px; }
.account-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .75fr); align-items: start; gap: 16px; }
.account-layout > section + section { margin-top: 0; }
.account-panel { padding: 20px; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.05); }
.panel-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.panel-heading > span { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; color: #fff; border-radius: 12px; background: var(--mx-primary); }
.panel-heading h2 { margin: 0; font-size: 18px; }
.panel-heading p { margin: 2px 0 0; color: var(--mx-muted); font-size: 12px; }
.account-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 13px; }
.readonly-field { position: relative; }
.readonly-field > i { position: absolute; left: 13px; top: 17px; z-index: 1; color: var(--mx-muted); }
.readonly-field input { padding-left: 36px; padding-right: 88px; color: #676767; background: #f7f7f7; }
.readonly-field span { position: absolute; right: 11px; top: 15px; color: var(--mx-success); font-size: 10px; font-weight: 800; }
.readonly-field span i { margin-right: 3px; }
.readonly-field span.is-unverified { color: var(--mx-secondary-dark); }
.account-verification { border-color: #BFEBD5; background: #F2FBF6; }
.avatar-upload { display: flex; min-height: 48px; align-items: center; gap: 10px; padding: 8px 12px; border: 1px dashed #bdbdbd; border-radius: 12px; background: #fafafa; cursor: pointer; }
.avatar-upload > i { color: var(--mx-primary); font-size: 18px; }
.avatar-upload span { display: grid; }
.avatar-upload strong { font-size: 12px; }
.avatar-upload small { color: var(--mx-muted); font-size: 10px; }
.visually-hidden-file { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.account-toggle { display: flex; align-items: center; gap: 10px; margin: 2px 0 16px; padding: 11px 12px; border-radius: 12px; background: #f7f7f7; }
.account-toggle input { width: 18px; height: 18px; accent-color: var(--mx-primary); }
.account-toggle span { display: grid; }
.account-toggle strong { font-size: 12px; }
.account-toggle small { color: var(--mx-muted); font-size: 10px; }
.account-save { width: 100%; }
.password-disclosure { border: 1px solid var(--mx-border); border-radius: 13px; background: #fff; }
.password-disclosure summary { display: flex; min-height: 50px; align-items: center; justify-content: space-between; padding: 11px 13px; list-style: none; cursor: pointer; font-size: 13px; font-weight: 800; }
.password-disclosure summary::-webkit-details-marker { display: none; }
.password-disclosure summary span { display: flex; align-items: center; gap: 9px; }
.password-disclosure summary span i { color: var(--mx-primary); }
.password-disclosure[open] summary > i { transform: rotate(180deg); }
.password-form { padding: 4px 13px 14px; border-top: 1px solid var(--mx-border); }
.password-form .field { margin-top: 12px; margin-bottom: 0; }
.password-form .help, .password-form .strength { margin: 4px 0 0; font-size: 10px; }
.password-form .btn-secondary { width: 100%; margin-top: 14px; }
.security-note { display: flex; align-items: center; gap: 10px; margin-top: 13px; padding: 11px; color: var(--mx-muted); border-radius: 12px; background: #f7f7f7; }
.security-note > i { color: var(--mx-success); font-size: 19px; }
.security-note span { display: grid; }
.security-note strong { color: var(--mx-ink); font-size: 11px; }
.security-note small { font-size: 10px; }
.account-footer-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 15px; border-top: 1px solid var(--mx-border); }
.wholesale-link, .account-signout, .back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--mx-muted); border: 0; background: transparent; font-size: 12px; font-weight: 700; text-decoration: none; }
.wholesale-link:hover, .back-link:hover { color: var(--mx-primary); }
.account-signout { color: var(--mx-danger); cursor: pointer; }
.back-link { margin-bottom: 16px; }
.wholesale-page { width: min(760px, 100%); margin-inline: auto; }
.wholesale-head { padding-bottom: 15px; }
.wholesale-head h1 { font-size: clamp(28px, 5vw, 42px); }
.wholesale-head .muted { max-width: 560px; margin: 5px 0 0; }
.wholesale-status-card { display: flex; align-items: center; gap: 12px; margin: 16px 0; padding: 14px; border: 1px solid var(--mx-border); border-radius: 14px; background: #fff; }
.wholesale-status-card > span { display: grid; width: 40px; height: 40px; place-items: center; color: var(--mx-primary); border-radius: 11px; background: #fff0f0; }
.wholesale-status-card > div { display: grid; }
.wholesale-status-card small, .wholesale-status-card p { margin: 0; color: var(--mx-muted); font-size: 11px; }
.wholesale-status-card strong { font-size: 15px; }
.wholesale-form-card { margin-top: 14px; }
.wholesale-form-card textarea { min-height: 88px; }
.wholesale-form-card > form > .btn-primary { width: 100%; }
.wholesale-quiet-note { display: flex; align-items: center; gap: 8px; padding: 13px; color: var(--mx-muted); border-radius: 12px; background: #f7f7f7; }

@media (max-width: 760px) {
  .account-layout { grid-template-columns: 1fr; }
  .account-security { margin-top: 0 !important; }
}
@media (max-width: 620px) {
  .account-hero { grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 15px; border-radius: 16px; }
  .account-avatar { width: 54px; height: 54px; border-radius: 14px; }
  .account-identity h1 { font-size: 22px; }
  .account-type { grid-column: 1 / -1; width: max-content; margin-top: -3px; padding: 5px 8px; }
  .account-shortcuts { gap: 8px; }
  .account-shortcuts a { min-height: 50px; padding: 10px; font-size: 12px; }
  .account-panel { padding: 15px; }
  .account-fields { grid-template-columns: 1fr; }
  .account-footer-actions { align-items: flex-start; flex-direction: column; padding-bottom: 8px; }
  .account-footer-actions form { width: 100%; }
  .account-signout { width: 100%; min-height: 42px; justify-content: center; border: 1px solid #efd1d1; border-radius: 11px; }
}

/* Premium minimalist system: navy, gold and quieter typography. */
:root {
  --mx-shadow-sm: 0 8px 24px rgba(7, 27, 49, .055);
  --mx-shadow-md: 0 18px 44px rgba(7, 27, 49, .10);
  --mx-ring: 0 0 0 3px rgba(1, 183, 108, .24);
}

body {
  color: var(--mx-ink);
  background: var(--mx-surface-muted);
  font-size: 13.6px;
  line-height: 1.55;
}

.topbar,
.sidebar,
.site-footer,
.auth-body,
.account-hero,
.device,
.hero-offer {
  background-image: none;
}

.topbar {
  background: rgba(7, 27, 49, .985);
  box-shadow: 0 8px 26px rgba(7, 27, 49, .13);
}
.topbar-inner { min-height: 64px; }
.brand { font-size: 11px; }
.brand-mark {
  width: 32px;
  height: 32px;
  color: var(--mx-primary-dark);
  background: var(--mx-secondary);
  border-radius: 10px;
}
.desktop-nav a { padding-block: 22px 20px; font-size: 12px; }
.desktop-nav a.active::after { bottom: 11px; background: var(--mx-secondary); }
.language-switcher i { color: #e8c878; }
.search { box-shadow: none; }
.search input { font-size: 12px; }

.main { padding-top: 30px; }
h1 { font-size: clamp(27px, 5.9vw, 48px); }
h2 { font-size: 19px; }
h3 { font-size: 15px; }
.lede { font-size: 14.5px; line-height: 1.65; }
.kicker { color: var(--mx-secondary-dark); font-size: 10px; }
.home-head h1, .page-head h1 { font-size: clamp(26px, 4.25vw, 41px); }
.section-head h2 { font-size: 20px; }

.card {
  border-color: rgba(20, 35, 53, .10);
  border-radius: 14px;
  box-shadow: var(--mx-shadow-sm);
}
.card:hover { border-color: rgba(11, 39, 69, .20); }
.card-pad { padding: clamp(16px, 2.5vw, 22px); }
.device { color: #8793a1; background: #f3f5f7; }
.product-card { background: #fff; }
.product-card:hover { border-color: rgba(11, 39, 69, .24); box-shadow: var(--mx-shadow-md); }
.product-card h2, .product-card h3 { font-size: 13px; }
.product-card .meta, .meta { font-size: 11px; }
.product-card .price { color: var(--mx-primary); font-size: 14.5px; }
.condition-label { background: var(--mx-primary); box-shadow: none; font-size: 8.5px; }
.condition-new { color: var(--mx-primary); border-color: #cfd7df; background: #fff; }
.chip { min-height: 36px; padding: 6px 12px; color: var(--mx-primary); font-size: 11.5px; }
.chip::before { background: var(--mx-secondary); }
.chip:hover { border-color: var(--mx-primary); background: var(--mx-primary); }

.btn, .btn-primary, .btn-secondary, .btn-danger, .btn-ghost {
  min-height: 42px;
  padding: 9px 15px;
  border-radius: 10px;
  font-size: 12px;
}
.btn-primary { background: var(--mx-primary); box-shadow: none; }
.btn-primary:hover { background: var(--mx-primary-dark); box-shadow: 0 8px 20px rgba(7, 27, 49, .16); }
.btn-secondary { color: var(--mx-primary); border-color: #b9c4cf; }
.btn-secondary:hover { color: var(--mx-primary-dark); border-color: var(--mx-primary); background: #f7f9fb; }

.field { margin-bottom: 13px; }
.field label, .password-wrap > label { color: var(--mx-primary); font-size: 11px; }
.field input, .field select, .field textarea, .password-wrap input {
  min-height: 44px;
  padding: 10px 12px;
  border-color: #cbd3dc;
  border-radius: 10px;
  font-size: 13px;
  box-shadow: none;
}
.help, .field-error, .strength { font-size: 11px; }
.choice label { min-height: 44px; border-radius: 11px; font-size: 12px; }
.choice label:has(input:checked) { border-color: var(--mx-primary); background: var(--mx-primary); box-shadow: none; }
.badge { font-size: 9.5px; }
.badge-wholesale { color: var(--mx-primary-dark); background: #BFEBD5; }
.badge-retail { color: var(--mx-primary); background: #eaf0f5; }

.footer-nav { box-shadow: 0 -8px 26px rgba(7, 27, 49, .08); }
.footer-nav a { color: #627083; font-size: 9.5px; }
.footer-nav a.active { color: var(--mx-primary); }
.footer-nav a.active::before { background: var(--mx-secondary); }
.cart-count, .count { color: var(--mx-primary-dark); background: var(--mx-secondary); }
.site-footer { color: #ced7df; background: var(--mx-primary-dark); }

.auth-body { background: var(--mx-primary-dark); }
.auth-card { border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.24); }
.auth-card h1 { font-size: clamp(24px, 5.9vw, 32px); }
.auth-assurance { font-size: 10px; }

.sidebar { background: var(--mx-primary-dark); }
.side-nav a { color: rgba(255,255,255,.70); font-size: 12px; }
.side-nav a.active { border-color: rgba(1,183,108,.24); background: rgba(1,183,108,.12); }
.side-nav a.active::before { background: var(--mx-secondary); }
.side-nav a.active i { color: #e8c878; }
.admin-avatar { color: var(--mx-primary-dark); background: var(--mx-secondary); }
.admin-body { background: #f1f4f7; }
.admin-top { background: rgba(255,255,255,.96); }
.stat::before { background: var(--mx-secondary); }
.stat strong { color: var(--mx-primary); font-size: clamp(19px, 2.55vw, 25px); }
.stat span, .stat small { font-size: 11px; }
table.data th { color: #596779; background: #eef2f5; font-size: 9.5px; }
table.data td { color: #2a3b4d; font-size: 11.5px; }
table.data a { color: var(--mx-primary); }

.premium-page-head {
  align-items: center;
  margin-bottom: 18px;
  padding: 10px 0 20px;
  border-bottom: 1px solid var(--mx-border);
}
.premium-page-head > div { max-width: 680px; }
.premium-page-head .kicker { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; }
.premium-page-head .lede { margin: 6px 0 0; color: var(--mx-muted); }
.compact-page-head { padding-top: 0; }

.contact-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.contact-method {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0 11px;
  min-width: 0;
  padding: 15px;
  color: inherit;
  border: 1px solid var(--mx-border);
  border-radius: 13px;
  background: #fff;
  text-decoration: none;
  box-shadow: var(--mx-shadow-sm);
}
.contact-method > span { grid-row: 1 / 3; display: grid; width: 36px; height: 36px; place-items: center; color: var(--mx-primary); border-radius: 10px; background: #edf2f6; }
.contact-method small { color: var(--mx-muted); font-size: 9.5px; text-transform: uppercase; letter-spacing: .07em; }
.contact-method strong { overflow: hidden; font-size: 11.5px; text-overflow: ellipsis; }
a.contact-method:hover { border-color: var(--mx-secondary); transform: translateY(-1px); }
.office-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.office-card { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; }
.office-card .office-icon { display: grid; width: 40px; height: 40px; place-items: center; color: var(--mx-primary); border-radius: 11px; background: #edf2f6; }
.office-card h2, .office-card .kicker { margin: 0; }
.office-card h2 { font-size: 15px; }
.office-card > p, .office-card > a { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin: 0; color: var(--mx-muted); text-decoration: none; }
.office-card > a { color: var(--mx-primary); font-weight: 800; }

.document-page { width: min(820px, 100%); margin-inline: auto; }
.document-card { display: grid; grid-template-columns: auto 1fr; overflow: visible; padding: clamp(20px, 4vw, 38px); }
.document-mark { display: grid; width: 44px; height: 44px; place-items: center; margin-right: 18px; color: var(--mx-primary); border-radius: 12px; background: #edf2f6; font-size: 18px; }
.document-copy { color: #3f4d5e; line-height: 1.8; }

.empty-state { min-height: 280px; place-items: center; align-content: center; text-align: center; }
.empty-state > span { display: grid; width: 52px; height: 52px; place-items: center; color: var(--mx-primary); border-radius: 15px; background: #edf2f6; font-size: 20px; }
.empty-state h2, .empty-state p { margin: 0; }
.empty-state.compact { min-height: 210px; }
.order-list, .referral-list, .plan-list { display: grid; gap: 10px; }
.order-card, .plan-row, .referral-row { display: grid; align-items: center; gap: 13px; padding: 15px; color: inherit; background: #fff; text-decoration: none; }
.order-card { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.order-icon { display: grid; width: 40px; height: 40px; place-items: center; color: var(--mx-primary); border-radius: 11px; background: #edf2f6; }
.order-copy, .order-value, .plan-row > span { display: grid; gap: 2px; }
.order-copy small, .order-copy span, .order-value span, .plan-row small { color: var(--mx-muted); font-size: 10px; }
.order-value { justify-items: end; }
.status-pill { padding: 3px 7px; color: var(--mx-primary) !important; border-radius: 99px; background: #edf2f6; font-weight: 800; }
.order-card:hover, .plan-row:hover { transform: translateY(-1px); box-shadow: var(--mx-shadow-md); }

.cart-list { overflow: hidden; border: 1px solid var(--mx-border); border-radius: 14px; background: #fff; box-shadow: var(--mx-shadow-sm); }
.cart-line { margin: 0; padding: 16px; }
.cart-line:last-child { border-bottom: 0; }
.cart-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; padding: 18px; color: #fff; border-radius: 14px; background: var(--mx-primary); }
.cart-summary > div { display: grid; }
.cart-summary span, .cart-summary small { color: rgba(255,255,255,.68); }
.cart-summary strong { font-size: 18px; }
.cart-summary .btn-primary { color: var(--mx-primary-dark); background: var(--mx-secondary); }
.cart-checkout-action { display: grid; justify-items: end; gap: 7px; max-width: 330px; }
.cart-checkout-action > small { display: flex; align-items: flex-start; gap: 6px; color: rgba(255,255,255,.78); font-size: 8px; line-height: 1.45; text-align: right; }
.cart-checkout-action > small i { margin-top: 1px; color: var(--mx-secondary); }
.auth-checkout-context { display: flex; gap: 10px; margin: -5px 0 17px; padding: 11px 12px; color: #3f5263; border: 1px solid #dce5eb; border-radius: 11px; background: #f5f8fa; }
.auth-checkout-context > i { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; color: var(--mx-primary); border-radius: 9px; background: rgba(1,183,108,.18); }
.auth-checkout-context strong { color: var(--mx-primary); font-size: 10px; }
.auth-checkout-context p { margin: 2px 0 0; color: var(--mx-muted); font-size: 8px; line-height: 1.45; }

.checkout-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.checkout-form > section { margin-top: 0 !important; }
.checkout-card { align-self: start; }
.card-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.card-heading > span { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; color: var(--mx-primary-dark); border-radius: 10px; background: var(--mx-secondary); font-weight: 800; }
.card-heading h2, .card-heading p { margin: 0; }
.card-heading h2 { font-size: 15px; }
.card-heading p { color: var(--mx-muted); font-size: 10px; }
.checkout-total { border-top: 3px solid var(--mx-secondary); }
.checkout-submit { width: 100%; }

.plan-builder { width: min(780px, 100%); }
.plan-builder > .field { display: inline-flex; width: calc(50% - 7px); margin-right: 10px; vertical-align: bottom; }
.plan-builder > .field:nth-of-type(2) { margin-right: 0; }
.plan-row { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.plan-row > span:nth-child(3) { justify-items: end; }
.referral-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(18px, 4vw, 28px); color: #fff; border-radius: 16px; background: var(--mx-primary); box-shadow: var(--mx-shadow-md); }
.referral-hero > div { display: grid; }
.referral-hero small, .referral-hero p { color: rgba(255,255,255,.70); }
.referral-hero strong { color: #fff; font-size: 26px; letter-spacing: .08em; }
.referral-hero p { margin: 3px 0 0; }
.referral-hero .btn-secondary { color: var(--mx-primary-dark); border-color: var(--mx-secondary); background: var(--mx-secondary); }
.referral-row { grid-template-columns: auto minmax(0, 1fr) auto; }
.referral-row > span { display: grid; width: 34px; height: 34px; place-items: center; color: var(--mx-primary); border-radius: 10px; background: #edf2f6; font-weight: 800; }
.referral-row > div { display: grid; }
.referral-row small { color: var(--mx-muted); }

.admin-page-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.admin-page-head h1, .admin-page-head p { margin: 0; }
.admin-page-head h1 { font-size: 29px; }
.admin-page-head > div > p:last-child { color: var(--mx-muted); }
.admin-page-head > span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; color: var(--mx-primary); border: 1px solid var(--mx-border); border-radius: 99px; background: #fff; font-size: 10px; font-weight: 800; }
.stat > i { position: absolute; right: 14px; top: 14px; color: #b58b31; font-size: 17px; }
.stat small { display: block; color: var(--mx-muted); }

.account-hero { background: var(--mx-primary); }
.account-identity .kicker { color: #e8c878; }
.account-avatar { background: var(--mx-primary-dark); }
.account-alert { border-color: #BFEBD5; background: #F2FBF6; }
.account-alert > i:first-child { color: var(--mx-secondary-dark); }
.account-shortcuts a > i:first-child,
.wholesale-status-card > span { color: var(--mx-primary); background: #edf2f6; }
.panel-heading > span, .register-icon, .lipa-icon { background: var(--mx-primary); }
.account-type.is-wholesale { color: var(--mx-primary-dark); border-color: #BFEBD5; background: #BFEBD5; }
.hero-offer { background: var(--mx-primary); }

@media (max-width: 760px) {
  .contact-summary, .office-grid, .checkout-form { grid-template-columns: 1fr; }
  .contact-summary { gap: 8px; }
  .plan-builder > .field { display: flex; width: 100%; margin-right: 0; }
  .cart-summary, .referral-hero { align-items: stretch; flex-direction: column; }
  .cart-summary .btn-primary, .referral-hero .btn-secondary { width: 100%; }
  .cart-checkout-action { justify-items: stretch; max-width: none; }
  .cart-checkout-action > small { text-align: left; }
}

@media (max-width: 620px) {
  body { font-size: 13px; }
  .main { padding-top: 18px; }
  .home-head h1 { font-size: 22px; }
  .page-head h1 { font-size: 25.5px; }
  .section-head h2 { font-size: 16px; }
  .field input, .field select, .field textarea, .password-wrap input { font-size: 16px; }
  .product-feed .product-card h3 { font-size: 13.5px; }
  .product-feed .product-card .price { font-size: 14.5px; }
  .premium-page-head { margin-bottom: 13px; padding-bottom: 15px; }
  .document-card { grid-template-columns: 1fr; }
  .document-mark { margin: 0 0 14px; }
  .order-card { grid-template-columns: auto minmax(0, 1fr) auto; }
  .order-value { grid-column: 2; justify-items: start; }
  .order-card > i { grid-column: 3; grid-row: 1 / 3; }
  .plan-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .plan-row > span:nth-child(3) { grid-column: 2; justify-items: start; }
  .plan-row > i { grid-column: 3; grid-row: 1 / 3; }
  .cart-line { padding: 13px; }
  .referral-hero strong { font-size: 21px; }
  .admin-page-head { align-items: flex-start; flex-direction: column; }
  .admin-page-head h1 { font-size: 25px; }
}

/* Premium form system --------------------------------------------------- */
.field { position: relative; gap: 6px; }
.field > label,
.password-wrap + .help,
fieldset > legend {
  letter-spacing: .015em;
}
.field > label,
.field > .password-wrap > label,
.password-wrap > label {
  display: flex;
  align-items: center;
  gap: 5px;
}
.field > label:has(+ input[required])::after,
.field > label:has(+ select[required])::after,
.field > label:has(+ textarea[required])::after,
.field > label:has(+ .input-shell input[required])::after,
.field > label:has(+ .password-wrap input[required])::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--mx-secondary-dark);
}

.field input,
.field select,
.field textarea,
.password-wrap input {
  color: var(--mx-ink);
  background-color: #fbfcfd;
  border-width: 1px;
}
.field input::placeholder,
.field textarea::placeholder { color: #9aa5b2; }
.field textarea { min-height: 104px; line-height: 1.55; }
.field select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%235b6877' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.field input:hover,
.field select:hover,
.field textarea:hover,
.password-wrap input:hover { background-color: #fff; }
.field input:focus,
.field select:focus,
.field textarea:focus,
.password-wrap input:focus {
  background-color: #fff;
  border-color: var(--mx-secondary-dark);
  box-shadow: var(--mx-ring);
}
.field input[readonly],
.field textarea[readonly] { color: #667383; background: #f2f4f6; cursor: not-allowed; }
.field input:disabled,
.field select:disabled,
.field textarea:disabled { color: #84909d; background: #eef1f4; cursor: not-allowed; opacity: 1; }

.input-shell { position: relative; }
.input-shell > i,
.password-wrap > .input-leading-icon {
  position: absolute;
  z-index: 2;
  left: 13px;
  top: 50%;
  color: #788696;
  transform: translateY(-50%);
  pointer-events: none;
}
.input-shell input,
.password-wrap input { padding-left: 38px; }
.input-shell:focus-within > i,
.password-wrap:focus-within > .input-leading-icon { color: var(--mx-secondary-dark); }
.password-wrap { display: block; }
.password-wrap input { padding-right: 48px; }
.password-toggle { color: #687687; }
.password-toggle:hover { color: var(--mx-primary); background: #edf2f6; }

.field-error {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  padding: 7px 9px;
  color: #9c3434;
  border-radius: 8px;
  background: #fff1f1;
}
.field-error::before { content: "\f33a"; font-family: "bootstrap-icons"; }
.help { line-height: 1.45; }
.strength { margin: 5px 0 0; }

input[type="checkbox"],
input[type="radio"] {
  appearance: none;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin: 0;
  border: 1.5px solid #aab5c0;
  background: #fff;
  cursor: pointer;
}
input[type="checkbox"] { border-radius: 5px; }
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]:checked {
  border-color: var(--mx-primary);
  background-color: var(--mx-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m3.5 8 3 3 6-6'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
}
input[type="radio"]:checked { border: 5px solid var(--mx-primary); }
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible { box-shadow: var(--mx-ring); }

.form-section > label:has(> input[type="checkbox"]),
.settings-form .card > label:has(> input[type="checkbox"]),
.checkout-total > label:has(> input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  margin: 7px 0;
  padding: 9px 11px;
  border: 1px solid var(--mx-border);
  border-radius: 10px;
  background: #f8fafb;
  font-weight: 700;
}
.switch {
  min-height: 42px;
  margin: 7px 0;
  padding: 9px 11px;
  border: 1px solid var(--mx-border);
  border-radius: 10px;
  background: #f8fafb;
  font-size: 11.5px;
}

input[type="file"] {
  min-height: 48px;
  padding: 5px !important;
  border-style: dashed !important;
  background: #f8fafb !important;
  cursor: pointer;
}
input[type="file"]::file-selector-button {
  min-height: 36px;
  margin-right: 10px;
  padding: 7px 11px;
  color: var(--mx-primary);
  border: 0;
  border-radius: 8px;
  background: #e9eff4;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.auth-form-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  margin-bottom: 22px;
}
.auth-form-head > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--mx-primary-dark);
  border-radius: 13px;
  background: var(--mx-secondary);
  font-size: 17px;
}
.auth-form-head h1,
.auth-form-head p { margin: 0; }
.auth-form-head h1 { font-size: clamp(22px, 5vw, 29px); }
.auth-form-head .kicker { margin-bottom: 3px; }
.auth-form-head > div > p:last-child { margin-top: 4px; color: var(--mx-muted); font-size: 11px; }
.auth-form .field { margin-bottom: 15px; }
.auth-form .form-submit { width: 100%; margin-top: 3px; }
.auth-form-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px !important;
  font-size: 11px;
}
.auth-form-links span { width: 3px; height: 3px; border-radius: 50%; background: #9aa5b2; }
.auth-back-link { display: flex; justify-content: center; gap: 6px; margin-top: 16px; font-size: 11px; text-decoration: none; }
.auth-secondary-action { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 12px; color: var(--mx-muted); font-size: 11px; }
.auth-secondary-action .btn-ghost { min-height: 36px; padding: 7px 10px; }
.otp-input { letter-spacing: .35em; font-variant-numeric: tabular-nums; font-weight: 800; }

.account-choice,
fieldset.form-group {
  padding: 0;
  border: 0;
}
.account-choice legend,
fieldset.form-group legend { margin-bottom: 8px; color: var(--mx-primary); font-size: 11px; font-weight: 800; }
.choice label { background: #fbfcfd; }
.choice label:hover { background: #fff; }
.marketing-check { padding: 10px 11px; border-radius: 10px; background: #f7f9fb; }

.filters {
  border-color: rgba(20, 35, 53, .10);
  background: rgba(255,255,255,.98);
  box-shadow: var(--mx-shadow-sm);
}
.filters .btn-primary { min-width: 92px; }

.catalog-filter-disclosure {
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid rgba(20, 35, 53, .10);
  border-radius: var(--mx-radius);
  background: rgba(255,255,255,.98);
  box-shadow: var(--mx-shadow-sm);
}
.catalog-filter-disclosure > summary {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  color: var(--mx-text);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.catalog-filter-disclosure > summary::-webkit-details-marker { display: none; }
.catalog-filter-disclosure > summary:hover { background: var(--mx-surface-muted); }
.catalog-filter-disclosure > summary:focus-visible {
  outline: 3px solid rgba(24, 66, 104, .20);
  outline-offset: -3px;
}
.catalog-filter-label,
.catalog-filter-summary-end { display: inline-flex; align-items: center; gap: 9px; }
.catalog-filter-label > i { color: var(--mx-primary); font-size: 16px; }
.catalog-filter-count {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--mx-primary);
  color: #fff;
  font-size: 11px;
  line-height: 1;
}
.catalog-filter-chevron { transition: transform .18s ease; }
.catalog-filter-disclosure[open] .catalog-filter-chevron { transform: rotate(180deg); }
.catalog-filter-form {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--mx-border);
  border-radius: 0;
  box-shadow: none;
}

@media (min-width: 761px) {
  .catalog-filter-form { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
}

.admin-form > .form-section { border-top: 3px solid #d9c38a; }
.admin-form > .form-section > h2 { margin-bottom: 16px; }
.admin-form > .btn-primary { justify-self: start; min-width: 160px; }

@media (min-width: 780px) {
  .product-form > .form-section {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 13px;
  }
  .product-form > .form-section > h2,
  .product-form > .form-section > p,
  .product-form > .form-section > .progress,
  .product-form > .form-section > #variations,
  .product-form > .form-section > button,
  .product-form > .form-section > .switch,
  .product-form > .form-section > .field:has(textarea) { grid-column: 1 / -1; }
  #variations > .card,
  #var-template > .card {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 12px;
    margin-bottom: 10px;
    box-shadow: none;
  }
  .settings-form > .card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 13px;
  }
  .settings-form > .card > h2,
  .settings-form > .card > label:has(input[type="checkbox"]),
  .settings-form > .card > .field:has(textarea) { grid-column: 1 / -1; }
}

/* Admin-managed brand color controls. */
.brand-settings-card { position: relative; overflow: hidden; }
.brand-settings-card::after { content: ""; position: absolute; top: 0; right: 0; width: 96px; height: 4px; background: linear-gradient(90deg, var(--mx-primary) 50%, var(--mx-secondary) 50%); }
.brand-settings-copy { grid-column: 1 / -1; max-width: 680px; }
.brand-settings-copy h2 { margin: 3px 0 6px; }
.brand-settings-copy p { margin: 0; line-height: 1.6; }
.settings-kicker { color: var(--mx-secondary-dark); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.brand-color-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.color-input-shell { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 12px 6px 7px; border: 1px solid var(--mx-border); border-radius: 12px; background: #f8fafb; }
.color-input-shell:focus-within { border-color: var(--mx-secondary-dark); box-shadow: 0 0 0 3px rgba(1,183,108,.13); }
.color-input-shell input[type="color"] { width: 42px; height: 34px; padding: 0; border: 0; border-radius: 9px; background: transparent; cursor: pointer; }
.color-input-shell input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.color-input-shell input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 8px; }
.color-input-shell strong { color: var(--mx-primary); font-size: 11px; letter-spacing: .06em; }
.brand-preview { grid-column: 1 / -1; display: flex; align-items: center; gap: 11px; min-height: 66px; padding: 12px 14px; color: #fff; border-radius: 13px; background: var(--preview-primary); }
.brand-preview-mark { display: grid; width: 38px; height: 38px; place-items: center; color: var(--preview-primary); border-radius: 10px; background: var(--preview-secondary); }
.brand-preview > span:nth-child(2) { display: grid; gap: 2px; }
.brand-preview strong { font-size: 11px; letter-spacing: .12em; }
.brand-preview small { color: rgba(255,255,255,.7); font-size: 9px; }
.brand-preview-action { margin-left: auto; padding: 8px 12px; color: var(--preview-primary); border-radius: 9px; background: var(--preview-secondary); font-size: 10px; font-weight: 800; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.page-heading h1 { margin-bottom: 5px; }
.page-heading p { margin: 0; }
.heading-actions, .table-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.table-actions form { margin: 0; }
.table-actions .btn-ghost, .table-actions .btn-danger, .table-actions .btn-secondary { min-height: 32px; padding: 7px 9px; font-size: 9px; }
.bulk-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--mx-border); border-radius: 12px; background: #fff; }
.bulk-bar label { color: var(--mx-muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.bulk-bar select { min-width: 150px; min-height: 36px; }
.bulk-bar button { margin-left: auto; }
.notification-rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.notification-rule { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 10px 12px; border: 1px solid var(--mx-border); border-radius: 11px; background: #f8fafb; }
.notification-rule > span { display: grid; gap: 2px; min-width: 0; }
.notification-rule strong { overflow: hidden; color: var(--mx-primary); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.notification-rule small { color: var(--mx-muted); font-size: 9px; }
.product-photo-admin-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; grid-column: 1 / -1; }
.product-photo-admin { overflow: hidden; border: 1px solid var(--mx-border); border-radius: 12px; background: #fff; }
.product-photo-admin img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-photo-actions { display: grid; gap: 7px; padding: 8px; }
.product-photo-actions label { display: flex; align-items: center; gap: 6px; font-size: 9px; }
.product-bg-remove { width: 100%; min-height: 34px; justify-content: center; padding: 7px 9px; font-size: 8.5px; }
.product-bg-remove:disabled { opacity: .5; cursor: not-allowed; }
.product-bg-help { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; }
.settings-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; }
.role-create-card { margin-bottom: 16px; border-color: #a9d8c1; background: #f7fcf9; }
.role-create-card > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--mx-primary); cursor: pointer; list-style: none; }
.role-create-card > summary::-webkit-details-marker { display: none; }
.role-create-card > summary > span { display: inline-flex; align-items: center; gap: 9px; }
.role-create-card > summary > span > i { color: var(--mx-secondary-dark); font-size: 17px; }
.role-create-card[open] > summary > i { transform: rotate(180deg); }
.role-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.role-editor-form { display: grid; align-content: start; gap: 12px; min-width: 0; }
.role-create-card .role-editor-form { margin-top: 16px; }
.role-editor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.role-editor-head h2 { margin: 2px 0 0; font-size: 17px; }
.role-editor-head > span { padding: 5px 8px; color: var(--mx-muted); border-radius: 999px; background: #f1f4f6; font-size: 8px; font-weight: 800; white-space: nowrap; }
.role-permission-fieldset { margin: 0; padding: 11px; border: 1px solid var(--mx-border); border-radius: 12px; background: #f8fafb; }
.role-permission-fieldset legend { padding: 0 5px; color: var(--mx-muted); font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.role-permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.role-permission-grid label { display: flex; min-width: 0; align-items: flex-start; gap: 7px; padding: 8px; border: 1px solid var(--mx-border); border-radius: 9px; background: #fff; font-size: 9px; line-height: 1.35; }
.role-permission-grid input { flex: 0 0 auto; margin-top: 1px; accent-color: var(--mx-secondary-dark); }
.homepage-settings-section { margin-top: 24px; }
.homepage-settings-section > .section-head { margin: 0 0 12px; }
.homepage-settings-section > .section-head h2 { margin: 0 0 4px; font-size: 18px; }
.homepage-settings-section > .section-head p { margin: 0; }
.homepage-banner-admin-grid { display: grid; gap: 14px; }
.homepage-banner-form { display: grid; grid-template-columns: minmax(320px, 1.15fr) minmax(310px, .85fr); gap: 18px; overflow: hidden; padding: 14px; }
.homepage-banner-preview { position: relative; min-height: 270px; overflow: hidden; border-radius: 13px; background: var(--mx-primary); }
.homepage-banner-preview > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.homepage-banner-preview::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(4,19,15,.94), rgba(4,19,15,.42) 65%, transparent); }
.homepage-banner-preview > span:not(.homepage-banner-preview-copy) { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.72); }
.homepage-banner-preview-copy { position: relative; z-index: 2; display: flex; width: 58%; height: 100%; min-height: 270px; flex-direction: column; justify-content: center; align-items: flex-start; padding: 25px; }
.homepage-banner-preview-copy strong { color: #fff; font-size: clamp(19px, 2.2vw, 30px); line-height: 1.08; }
.homepage-banner-preview-copy em { margin-bottom: 7px; color: var(--mx-secondary); font-size: 8px; font-style: normal; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.homepage-banner-preview-copy small { margin-top: 8px; color: rgba(255,255,255,.72); font-size: 9px; line-height: 1.45; }
.homepage-banner-preview-copy b { margin-top: 16px; padding: 8px 12px; color: #fff; border-radius: 7px; background: var(--mx-secondary); font-size: 9px; }
.homepage-banner-fields { display: grid; align-content: start; gap: 10px; }
.homepage-banner-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px; gap: 10px; }
.homepage-banner-fields .field { margin: 0; }
.homepage-image-upload { min-height: 68px; padding: 10px; }
.homepage-image-upload > i { width: 36px; height: 36px; }
.homepage-banner-fields > .btn-primary { justify-self: end; }
.banner-item-visibility { margin: 0; padding: 10px 12px 12px; border: 1px solid var(--mx-border); border-radius: 12px; background: #f8fafb; }
.banner-item-visibility legend { padding: 0 5px; color: var(--mx-muted); font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.banner-item-visibility > div { display: flex; flex-wrap: wrap; gap: 7px; }
.banner-item-visibility label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid var(--mx-border); border-radius: 999px; background: #fff; cursor: pointer; font-size: 9px; font-weight: 800; }
.banner-item-visibility input { width: 14px; height: 14px; accent-color: var(--mx-secondary-dark); }
.banner-slide-toggle { border-color: #a9d8c1; background: #f0faf5; }
.homepage-brand-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.homepage-brand-form { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 12px; }
.homepage-brand-preview { display: grid; width: 48px; height: 48px; place-items: center; overflow: hidden; color: #fff; border-radius: 12px; background: var(--mx-primary); }
.homepage-brand-preview img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.homepage-brand-copy { display: grid; gap: 3px; min-width: 0; }
.homepage-brand-copy strong { overflow: hidden; color: var(--mx-primary); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.homepage-brand-copy small { color: var(--mx-muted); font-size: 8.5px; }
.homepage-brand-upload { position: relative; margin: 0; cursor: pointer; }
.homepage-brand-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.photo-upload-zone { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; min-height: 84px; padding: 14px; border: 1px dashed #b9c7d2; border-radius: 13px; background: #f8fafb; cursor: pointer; }
.photo-upload-zone > i { display: grid; width: 42px; height: 42px; place-items: center; color: var(--mx-primary); border-radius: 11px; background: #fff; font-size: 18px; }
.photo-upload-zone > span { display: grid; gap: 3px; }
.photo-upload-zone small { color: var(--mx-muted); font-size: 9px; }
.photo-upload-zone input { margin-left: auto; max-width: 220px; font-size: 9px; }
.brand-assets-heading { grid-column: 1 / -1; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--mx-border); }
.brand-assets-heading h3 { margin: 3px 0 5px; font-size: 16px; }
.brand-assets-heading p { margin: 0; }
.brand-assets-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.brand-asset-upload { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 12px; align-items: center; min-width: 0; padding: 12px; border: 1px solid var(--mx-border); border-radius: 14px; background: #f8fafb; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.brand-asset-upload:hover, .brand-asset-upload:focus-within { border-color: var(--mx-secondary-dark); box-shadow: 0 0 0 3px rgba(1,183,108,.12); transform: translateY(-1px); }
.brand-asset-upload.has-selection { background: #fffdf7; }
.brand-asset-upload input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.brand-asset-preview { display: grid; width: 82px; height: 58px; place-items: center; overflow: hidden; color: var(--mx-muted); border: 1px dashed #c7d1da; border-radius: 11px; background: #fff; font-size: 9px; text-align: center; }
.brand-asset-preview img { width: 100%; height: 100%; object-fit: contain; }
.brand-asset-preview-icon { width: 58px; border-style: solid; border-radius: 14px; }
.brand-asset-preview-icon img { object-fit: cover; }
.brand-asset-preview i { display: block; margin-bottom: 2px; font-size: 18px; }
.brand-asset-copy { display: grid; gap: 3px; min-width: 0; }
.brand-asset-copy strong { color: var(--mx-primary); font-size: 11px; }
.brand-asset-copy small { overflow: hidden; color: var(--mx-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.brand-asset-action { grid-column: 1 / -1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; color: var(--mx-primary); border-radius: 9px; background: #fff; box-shadow: inset 0 0 0 1px var(--mx-border); font-size: 10px; font-weight: 800; }

.status-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 18px; }
.status-strip span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; color: var(--mx-primary); border: 1px solid var(--mx-border); border-radius: 999px; background: #f7f9fa; font-size: 10px; font-weight: 800; }
.status-strip .bi-check-circle-fill { color: var(--mx-success); }
.status-strip .bi-exclamation-circle { color: var(--mx-warning); }
.setting-toggle { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--mx-border); border-radius: 12px; background: #f7f9fa; font-weight: 800; }
.setting-toggle input { width: 17px; height: 17px; }
.copy-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.copy-field input { overflow: hidden; color: var(--mx-muted); text-overflow: ellipsis; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.payment-status-card { display: grid; gap: 12px; margin: 18px 0; border-left: 3px solid var(--mx-secondary); }
.payment-status-card .card-heading { margin-bottom: 0; }
.payment-status-card .inline-form { display: inline-flex; margin: 0; }

/* Wholesale review workspace ------------------------------------------- */
.review-breadcrumb { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--mx-muted); font-size: 10px; font-weight: 700; }
.review-breadcrumb a { display: inline-flex; align-items: center; gap: 6px; color: var(--mx-primary); text-decoration: none; }
.review-breadcrumb a:hover { color: var(--mx-secondary-dark); }
.wholesale-review-head { align-items: flex-end; }
.review-head-status { display: grid; justify-items: end; gap: 5px; }
.review-head-status small { color: var(--mx-muted); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.review-status { padding: 7px 11px; font-size: 10px; }
.review-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, 350px); gap: 18px; align-items: start; }
.review-main { display: grid; gap: 16px; min-width: 0; }
.review-sidebar { position: sticky; top: 16px; min-width: 0; }
.review-overview, .review-commerce, .review-history, .review-decision { border-color: #dde4e9; box-shadow: 0 10px 28px rgba(7,27,49,.055); }
.section-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.section-title-row h2 { margin: 2px 0 0; font-size: 16px; }
.section-title-row > .muted { max-width: 210px; font-size: 9px; text-align: right; }
.review-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; overflow: hidden; border: 1px solid var(--mx-border); border-radius: 13px; }
.review-facts > div { min-width: 0; padding: 13px 14px; border-right: 1px solid var(--mx-border); border-bottom: 1px solid var(--mx-border); background: #fbfcfd; }
.review-facts > div:nth-child(3n) { border-right: 0; }
.review-facts > div:nth-last-child(-n+3) { border-bottom: 0; }
.review-facts dt { margin-bottom: 5px; color: var(--mx-muted); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.review-facts dd { display: grid; gap: 2px; min-width: 0; margin: 0; color: var(--mx-primary); font-size: 11px; font-weight: 800; overflow-wrap: anywhere; }
.review-facts dd small { color: var(--mx-muted); font-size: 9px; font-weight: 600; }
.applicant-note { display: flex; gap: 11px; margin-top: 14px; padding: 13px 14px; color: #3a4d5e; border: 1px solid #dce5ec; border-radius: 12px; background: #f7f9fb; }
.applicant-note > i { margin-top: 1px; color: var(--mx-secondary-dark); font-size: 15px; }
.applicant-note strong { color: var(--mx-primary); font-size: 10px; }
.applicant-note p { margin: 4px 0 0; font-size: 10px; line-height: 1.55; }
.applicant-note.is-empty { color: var(--mx-muted); border-style: dashed; background: #fff; }
.review-message { margin-top: 10px; padding: 11px 13px; border-left: 3px solid var(--mx-secondary); border-radius: 0 10px 10px 0; background: #fff9eb; }
.review-message span { color: #896111; font-size: 8px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.review-message p { margin: 4px 0 0; color: #5d4b25; font-size: 10px; line-height: 1.5; }
.review-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-bottom: 14px; }
.review-metrics > div { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px; border: 1px solid var(--mx-border); border-radius: 12px; background: #fafcfd; }
.review-metrics > div > i { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; color: var(--mx-primary); border-radius: 10px; background: rgba(1,183,108,.16); }
.review-metrics span { display: grid; min-width: 0; }
.review-metrics strong { overflow: hidden; color: var(--mx-primary); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.review-metrics small { color: var(--mx-muted); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.review-order-list { overflow: hidden; border: 1px solid var(--mx-border); border-radius: 13px; }
.review-order-list > a { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 14px; align-items: center; gap: 10px; min-height: 58px; padding: 9px 12px; color: inherit; border-bottom: 1px solid #e8edf1; text-decoration: none; }
.review-order-list > a:last-child { border-bottom: 0; }
.review-order-list > a:hover { background: #f7f9fb; }
.review-order-icon { display: grid; width: 32px; height: 32px; place-items: center; color: var(--mx-primary); border-radius: 9px; background: #edf2f5; }
.review-order-list a > span:nth-child(2), .review-order-total { display: grid; gap: 2px; }
.review-order-list a > span:nth-child(2) strong { color: var(--mx-primary); font-size: 10px; }
.review-order-list small { color: var(--mx-muted); font-size: 8px; }
.review-order-total { justify-items: end; }
.review-order-total strong { color: var(--mx-primary); font-size: 10px; }
.review-order-total .table-status { padding: 2px 6px; font-size: 7px; }
.review-order-list > a > i { color: #a4afb9; font-size: 9px; }
.review-empty { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 92px; color: var(--mx-muted); border: 1px dashed var(--mx-border); border-radius: 13px; }
.review-empty > i { font-size: 20px; }
.review-empty span { display: grid; gap: 2px; }
.review-empty strong { color: var(--mx-primary); font-size: 11px; }
.review-empty small { font-size: 9px; }
.review-timeline { list-style: none; margin: 0; padding: 0; }
.review-timeline li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 11px; position: relative; padding-bottom: 17px; }
.review-timeline li:not(:last-child)::before { content: ""; position: absolute; top: 29px; bottom: 0; left: 14px; width: 1px; background: #dbe3e9; }
.review-timeline li:last-child { padding-bottom: 0; }
.review-timeline-dot { z-index: 1; display: grid; width: 29px; height: 29px; place-items: center; color: var(--mx-primary); border: 1px solid #d8e0e6; border-radius: 50%; background: #fff; font-size: 10px; }
.review-timeline-body { min-width: 0; padding: 5px 0 0; }
.review-timeline-body > div:first-child { display: flex; justify-content: space-between; gap: 12px; }
.review-timeline-body strong { color: var(--mx-primary); font-size: 10px; }
.review-timeline-body time { color: var(--mx-muted); font-size: 8px; white-space: nowrap; }
.review-timeline-body > p { margin: 3px 0 0; color: var(--mx-muted); font-size: 9px; }
.review-timeline blockquote { margin: 8px 0 0; padding: 9px 11px; color: #4f5d69; border: 0; border-radius: 9px; background: #f6f8fa; font-size: 9px; line-height: 1.5; }
.review-timeline blockquote span { display: block; margin-bottom: 2px; color: var(--mx-muted); font-size: 7px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.review-timeline blockquote.internal { background: #fff8e9; }
.review-decision { display: grid; gap: 14px; }
.decision-heading { display: flex; align-items: center; gap: 10px; }
.decision-heading > span { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; color: var(--mx-primary); border-radius: 11px; background: var(--mx-secondary); font-size: 15px; }
.decision-heading h2, .decision-heading p { margin: 0; }
.decision-heading h2 { font-size: 15px; }
.decision-heading p { margin-top: 2px; color: var(--mx-muted); font-size: 9px; }
.decision-options { display: grid; gap: 7px; min-width: 0; margin: 0; padding: 0; border: 0; }
.decision-options legend { margin-bottom: 6px; color: var(--mx-muted); font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.decision-option { display: grid; grid-template-columns: 34px minmax(0, 1fr) 16px; align-items: center; gap: 9px; position: relative; min-height: 58px; padding: 9px 10px; border: 1px solid #dfe5ea; border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.decision-option:hover { border-color: #bdc9d3; background: #fafcfd; transform: translateY(-1px); }
.decision-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.decision-option-icon { display: grid; width: 33px; height: 33px; place-items: center; color: #7b8895; border-radius: 9px; background: #eef2f5; }
.decision-option > span:nth-of-type(2) { display: grid; gap: 2px; }
.decision-option strong { color: var(--mx-primary); font-size: 10px; }
.decision-option small { color: var(--mx-muted); font-size: 8px; line-height: 1.35; }
.decision-check { color: transparent; font-size: 14px; }
.decision-option:has(input:checked) { border-color: var(--mx-primary); background: #f2f6f8; box-shadow: 0 0 0 3px rgba(11,39,69,.07); }
.decision-option[data-tone="good"]:has(input:checked) { border-color: #55a987; background: #f1faf6; }
.decision-option[data-tone="bad"]:has(input:checked) { border-color: #d98989; background: #fff7f7; }
.decision-option:has(input:checked) .decision-check { color: var(--mx-primary); }
.decision-option[data-tone="good"]:has(input:checked) .decision-check { color: var(--mx-success); }
.decision-option[data-tone="bad"]:has(input:checked) .decision-check { color: var(--mx-danger); }
.field-optional { display: block; margin-top: 2px; color: var(--mx-muted); font-size: 8px; font-weight: 600; }
.review-internal-note { border: 1px solid var(--mx-border); border-radius: 11px; background: #fafbfc; }
.review-internal-note summary { display: flex; align-items: center; gap: 7px; padding: 10px 11px; color: var(--mx-primary); cursor: pointer; font-size: 9px; font-weight: 800; list-style: none; }
.review-internal-note summary::-webkit-details-marker { display: none; }
.review-internal-note summary span { margin-left: auto; color: var(--mx-muted); font-size: 7px; letter-spacing: .07em; text-transform: uppercase; }
.review-internal-note .field { margin: 0; padding: 0 10px 10px; }
.decision-safety { display: flex; gap: 8px; padding: 9px 10px; color: #596978; border-radius: 10px; background: #f5f7f9; }
.decision-safety i { color: var(--mx-secondary-dark); }
.decision-safety p { margin: 0; font-size: 8px; line-height: 1.45; }
.decision-submit { width: 100%; justify-content: center; }
.review-locked { display: grid; justify-items: center; gap: 7px; padding: 28px; color: var(--mx-muted); text-align: center; }
.review-locked > i { font-size: 24px; }
.review-locked h2, .review-locked p { margin: 0; }
.review-locked h2 { color: var(--mx-primary); font-size: 14px; }
.review-locked p { font-size: 9px; }

@media (max-width: 620px) {
  .brand-color-fields { grid-template-columns: 1fr; }
  .brand-assets-grid { grid-template-columns: 1fr; }
  .role-list, .role-permission-grid { grid-template-columns: 1fr; }
  .homepage-banner-form { grid-template-columns: 1fr; padding: 10px; }
  .homepage-banner-preview, .homepage-banner-preview-copy { min-height: 210px; }
  .homepage-banner-preview-copy { width: 70%; padding: 18px; }
  .homepage-banner-row { grid-template-columns: 1fr; }
  .homepage-banner-fields > .btn-primary { width: 100%; justify-content: center; }
  .homepage-brand-admin-grid { grid-template-columns: 1fr; }
  .homepage-brand-form { grid-template-columns: 48px minmax(0, 1fr); }
  .homepage-brand-upload, .homepage-brand-form > .btn-primary { justify-content: center; width: 100%; }
  .brand-preview-action { display: none; }
  .copy-field { grid-template-columns: 1fr; }
  .copy-field .btn-secondary { width: 100%; }
  .form-actions { align-items: stretch; flex-direction: column-reverse; }
  .form-actions > * { justify-content: center; width: 100%; }
  .wholesale-review-head { align-items: flex-start; }
  .review-head-status { justify-items: start; }
  .review-workspace { grid-template-columns: 1fr; }
  .review-sidebar { position: static; grid-row: 1; }
  .review-facts { grid-template-columns: 1fr 1fr; }
  .review-facts > div, .review-facts > div:nth-child(3n) { border-right: 1px solid var(--mx-border); border-bottom: 1px solid var(--mx-border); }
  .review-facts > div:nth-child(2n) { border-right: 0; }
  .review-facts > div:nth-last-child(-n+2) { border-bottom: 0; }
  .review-metrics { grid-template-columns: 1fr; }
  .review-order-list > a { grid-template-columns: 32px minmax(0, 1fr) 12px; }
  .review-order-total { grid-column: 2; justify-items: start; }
  .review-order-list > a > i { grid-column: 3; grid-row: 1 / span 2; }
  .section-title-row { align-items: flex-start; flex-direction: column; }
  .section-title-row > .muted { max-width: none; text-align: left; }
  .page-heading { align-items: stretch; flex-direction: column; }
  .heading-actions > * { flex: 1; justify-content: center; }
  .bulk-bar > * { width: 100%; }
  .bulk-bar button { margin-left: 0; }
  .notification-rule-grid { grid-template-columns: 1fr; }
  .product-photo-admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-upload-zone { align-items: flex-start; flex-wrap: wrap; }
  .photo-upload-zone input { width: 100%; max-width: none; margin-left: 0; }
}

/* Admin data tables ----------------------------------------------------- */
.data-table-shell {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--mx-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--mx-shadow-sm);
  scrollbar-width: thin;
}
.data-table-shell table.data { min-width: 100%; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.data-table-shell table.data th,
.data-table-shell table.data td { padding: 11px 14px; }
.data-table-shell table.data thead th { white-space: nowrap; border-bottom-color: #d4dde5; }
.data-table-shell table.data tbody tr:nth-child(even) td { background: #fbfcfd; }
.data-table-shell table.data tbody tr:hover td { background: #f3f7fa; }
.data-table-shell table.data tbody tr:focus-within td { background: #eef4f8; }
.data-table-shell table.data td[data-label="Retail"],
.data-table-shell table.data td[data-label="Wholesale"],
.data-table-shell table.data td[data-label="Total"],
.data-table-shell table.data td[data-label="Count"],
.data-table-shell table.data td[data-label="Min"],
.data-table-shell table.data td[data-label="Stock"] { white-space: nowrap; font-variant-numeric: tabular-nums; }

.data-table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 8px; }
.data-table-count { display: inline-flex; align-items: center; gap: 6px; color: var(--mx-muted); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.data-table-count i { color: var(--mx-secondary-dark); font-size: 13px; }
.table-columns { position: relative; margin-left: auto; }
.table-columns summary { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 7px 11px; color: var(--mx-primary); border: 1px solid var(--mx-border); border-radius: 10px; background: #fff; cursor: pointer; font-size: 10px; font-weight: 800; list-style: none; }
.table-columns summary::-webkit-details-marker { display: none; }
.table-columns[open] summary { border-color: var(--mx-secondary-dark); box-shadow: 0 0 0 3px rgba(1,183,108,.12); }
.table-column-menu { position: absolute; z-index: 12; top: calc(100% + 6px); right: 0; display: grid; gap: 6px; width: max-content; min-width: 170px; padding: 10px; border: 1px solid var(--mx-border); border-radius: 12px; background: #fff; box-shadow: 0 16px 36px rgba(7,27,49,.16); }
.table-column-menu label { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 4px 6px; border-radius: 8px; font-size: 11px; font-weight: 700; }
.table-column-menu label:hover { background: #f4f7f9; }
.table-column-menu input { width: 16px; height: 16px; }
.table-col-hidden { display: none !important; }

.table-sort { display: inline-flex; align-items: center; gap: 6px; padding: 0; color: inherit; border: 0; background: transparent; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.table-sort::after { content: "\F282"; color: #93a0ad; font-family: "bootstrap-icons"; font-size: 8px; }
th[aria-sort="ascending"] .table-sort::after { content: "\F286"; color: var(--mx-primary); }
th[aria-sort="descending"] .table-sort::after { content: "\F282"; color: var(--mx-primary); }
.table-sort:focus-visible { outline: 2px solid var(--mx-secondary); outline-offset: 4px; border-radius: 3px; }

.table-status { display: inline-flex; align-items: center; gap: 6px; width: max-content; max-width: 100%; padding: 4px 8px; color: #526172; border: 1px solid #d9e0e6; border-radius: 99px; background: #f3f6f8; font-size: 9px; font-weight: 800; letter-spacing: .035em; line-height: 1.2; text-transform: capitalize; }
.table-status::before { content: ""; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #8795a4; }
.table-status[data-status="approved"], .table-status[data-status="completed"], .table-status[data-status="delivered"], .table-status[data-status="read"], .table-status[data-status="provider_accepted"] { color: #126345; border-color: #bfe2d3; background: #edf8f3; }
.table-status[data-status="approved"]::before, .table-status[data-status="completed"]::before, .table-status[data-status="delivered"]::before, .table-status[data-status="read"]::before, .table-status[data-status="provider_accepted"]::before { background: var(--mx-success); }
.table-status[data-status="pending"], .table-status[data-status="queued"], .table-status[data-status="processing"], .table-status[data-status="confirmed"], .table-status[data-status="shipped"], .table-status[data-status="needs_information"] { color: #87580d; border-color: #ead49a; background: #fff8e8; }
.table-status[data-status="pending"]::before, .table-status[data-status="queued"]::before, .table-status[data-status="processing"]::before, .table-status[data-status="confirmed"]::before, .table-status[data-status="shipped"]::before, .table-status[data-status="needs_information"]::before { background: var(--mx-warning); }
.table-status[data-status="failed"], .table-status[data-status="rejected"], .table-status[data-status="suspended"], .table-status[data-status="cancelled"] { color: #9f3030; border-color: #efc5c5; background: #fff1f1; }
.table-status[data-status="failed"]::before, .table-status[data-status="rejected"]::before, .table-status[data-status="suspended"]::before, .table-status[data-status="cancelled"]::before { background: var(--mx-danger); }

.table-empty { display: grid; justify-items: center; gap: 6px; padding: 36px 18px; color: var(--mx-muted); border: 1px dashed #cad4dd; border-radius: 14px; background: #fff; text-align: center; }
.table-empty i { color: var(--mx-secondary-dark); font-size: 24px; }
.table-empty strong { color: var(--mx-primary); font-size: 13px; }
.data-table-total { margin: 10px 2px 0; color: var(--mx-muted); font-size: 10px; font-weight: 700; }
.table-cell-note { max-width: 320px; margin-top: 5px; color: var(--mx-muted); font-size: 10px; line-height: 1.45; }

.product-list-filters { align-items: end; }
.product-list-filters .field:first-child { min-width: min(360px, 100%); flex: 1; }
.product-list-filters .rows-per-page { width: 130px; flex: 0 0 130px; }
.bulk-select-page { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.bulk-select-page input, .product-admin-table input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--mx-primary); }
.bulk-selection-count { min-width: 66px; color: var(--mx-muted); font-size: 10px; font-weight: 800; }
.bulk-bar [data-bulk-submit]:disabled { cursor: not-allowed; opacity: .45; }
.admin-product-cell { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 10px; min-width: 210px; }
.admin-product-thumb { display: grid; width: 48px; height: 48px; overflow: hidden; place-items: center; color: #9aa7b3; border: 1px solid #e1e7ec; border-radius: 10px; background: #f3f6f8; }
.admin-product-thumb img { width: 100%; height: 100%; object-fit: contain; }
.admin-product-cell > span:last-child { display: grid; min-width: 0; gap: 3px; }
.admin-product-cell strong, .admin-product-cell small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-product-cell strong { color: var(--mx-primary-dark); font-size: 11px; }
.admin-product-cell small { color: var(--mx-muted); font-size: 9px; }

.table-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.table-pagination-pages { display: flex; align-items: center; justify-content: center; gap: 5px; }
.table-pagination a, .table-pagination span { display: inline-flex; min-width: 36px; min-height: 36px; align-items: center; justify-content: center; padding: 6px 10px; border: 1px solid var(--mx-border); border-radius: 10px; background: #fff; font-size: 10px; font-weight: 800; text-decoration: none; }
.table-pagination a { color: var(--mx-primary); }
.table-pagination a:hover { border-color: var(--mx-primary); background: #f5f8fa; }
.table-pagination .is-current { color: var(--mx-primary-dark); border-color: var(--mx-secondary); background: var(--mx-secondary); }
.table-pagination .is-disabled { color: #9aa5b0; background: #f3f5f7; }

@media (max-width: 760px) {
  .data-table-toolbar { margin-top: 8px; }
  .table-columns { display: none; }
  .data-table-shell { overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .data-table-shell table.data { display: block; background: transparent; }
  .data-table-shell table.data tbody { display: block; }
  .data-table-shell table.data tr { overflow: hidden; padding: 8px 10px; border: 1px solid #e2e8ed; border-radius: 14px; background: #fff; box-shadow: var(--mx-shadow-sm); }
  .data-table-shell table.data td { min-height: 34px; align-items: center; padding: 7px 5px; }
  .data-table-shell table.data td::before { flex: 0 0 34%; max-width: 108px; }
  .data-table-shell table.data td:has(> .muted) { display: grid; grid-template-columns: minmax(82px, 34%) minmax(0, 1fr); align-items: start; }
  .data-table-shell table.data td:has(> .muted)::before { grid-row: 1 / span 2; }
  .data-table-shell table.data td > .muted { grid-column: 2; min-width: 0; margin-top: 3px; text-align: left; }
  .data-table-shell table.data .table-cell-note { flex-basis: 100%; max-width: none; text-align: right; }
  .data-table-shell table.data td[data-label="Actions"] { align-items: stretch; flex-direction: column; }
  .data-table-shell table.data td[data-label="Actions"]::before { max-width: none; }
  .data-table-shell table.data td[data-label="Actions"] form { display: flex; gap: 7px; width: 100%; }
  .data-table-shell table.data td[data-label="Actions"] input { min-width: 0; flex: 1; }
  .table-pagination { align-items: stretch; }
  .table-pagination-pages a, .table-pagination-pages span { display: none; }
  .table-pagination-pages .is-current { display: inline-flex; }
  .table-pagination > a, .table-pagination > span { flex: 1; }
  .product-list-filters .rows-per-page { width: 100%; flex-basis: 100%; }
  .admin-product-cell { min-width: 0; }
  .product-admin-table td[data-label="Product"] { align-items: start; }
}

@media (max-width: 620px) {
  .auth-card { padding: 22px 18px; }
  .auth-form-head { gap: 11px; margin-bottom: 18px; }
  .auth-form-head > span { width: 40px; height: 40px; }
  .auth-form-head h1 { font-size: 22px; }
  .auth-form-head > div > p:last-child { font-size: 10px; }
  .auth-form-links { flex-wrap: wrap; }
  .choice label { padding: 10px; }
}

/* Storefront home ------------------------------------------------------ */
.market-home { display: grid; gap: 54px; }
.market-home > section { min-width: 0; margin-top: 0 !important; }
.market-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 18px;
  min-height: 420px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid #dce4ea;
  border-radius: 24px;
  background: #f4f7f9;
}
.market-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(22px, 5vw, 58px);
  border-radius: 18px;
  background: #fff;
}
.market-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--mx-secondary-dark);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.3;
  text-transform: uppercase;
}
.market-eyebrow > span { width: 18px; height: 2px; background: var(--mx-secondary); }
.market-hero h1 {
  max-width: 650px;
  margin: 0;
  color: var(--mx-primary-dark);
  font-size: clamp(32px, 5vw, 54px);
  letter-spacing: -.052em;
  line-height: 1.02;
}
.market-hero-copy > p:not(.market-eyebrow) { max-width: 610px; margin: 17px 0 0; color: var(--mx-muted); font-size: 13px; line-height: 1.7; }
.market-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 23px; }
.market-actions a { min-height: 43px; padding-inline: 17px; }
.market-proof { display: flex; flex-wrap: wrap; gap: 17px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--mx-border); }
.market-proof span { display: inline-flex; align-items: center; gap: 7px; color: #536273; font-size: 10px; font-weight: 750; }
.market-proof i { color: var(--mx-secondary-dark); font-size: 14px; }
.market-hero-product {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  overflow: hidden;
  padding: 20px;
  color: #fff;
  border-radius: 18px;
  background: var(--mx-primary);
  text-decoration: none;
}
.market-hero-product::after { position: absolute; right: -45px; bottom: -65px; width: 180px; height: 180px; content: ""; border: 35px solid rgba(1, 183, 108, .14); border-radius: 50%; }
.market-hero-product-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.market-hero-product-top i { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%; }
.market-hero-device { position: relative; z-index: 1; display: grid; min-height: 190px; place-items: center; margin: 8px 0; }
.market-hero-device img { width: 100%; height: 235px; object-fit: contain; filter: drop-shadow(0 20px 22px rgba(0, 0, 0, .22)); transition: transform .25s ease; }
.market-hero-device > i { color: rgba(255, 255, 255, .45); font-size: 96px; }
.market-hero-product:hover .market-hero-device img { transform: translateY(-4px) scale(1.025); }
.market-hero-product-copy { position: relative; z-index: 1; display: grid; gap: 3px; }
.market-hero-product-copy span { color: rgba(255, 255, 255, .64); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.market-hero-product-copy strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.market-hero-product-copy b { margin-top: 5px; color: var(--mx-secondary); font-size: 16px; }

.market-section { scroll-margin-top: 88px; }
.market-section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 15px; }
.market-section-head > div { min-width: 0; }
.market-section-head h2 { max-width: 650px; margin: 0; color: var(--mx-primary-dark); font-size: clamp(19px, 2.5vw, 27px); letter-spacing: -.025em; }
.market-section-head > a { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; color: var(--mx-primary); font-size: 10px; font-weight: 800; text-decoration: none; }
.market-section-head > a:hover { color: var(--mx-secondary-dark); }

.category-rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.category-tile { display: grid; grid-template-columns: 39px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-width: 0; min-height: 76px; padding: 11px; border: 1px solid var(--mx-border); border-radius: 14px; background: #fff; text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.category-tile:hover { border-color: rgba(11, 39, 69, .28); box-shadow: var(--mx-shadow-sm); transform: translateY(-2px); }
.category-icon { display: grid; width: 39px; height: 39px; place-items: center; color: var(--mx-primary); border-radius: 11px; background: #f0f4f7; font-size: 17px; }
.category-tile > span:nth-child(2) { display: grid; min-width: 0; gap: 3px; }
.category-tile strong { overflow: hidden; color: var(--mx-primary-dark); font-size: 10.5px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.category-tile small { color: var(--mx-muted); font-size: 8.5px; }
.category-tile > i { color: #9ba6b1; font-size: 9px; }

.market-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.market-product-grid .product-card .device { aspect-ratio: 1.08; }
.market-product-grid .product-card { min-height: 100%; }

.condition-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.condition-grid > a { display: grid; grid-template-columns: 45px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 98px; padding: 16px; border: 1px solid var(--mx-border); border-radius: 16px; background: #fff; text-decoration: none; }
.condition-grid > a:hover { border-color: rgba(11, 39, 69, .3); box-shadow: var(--mx-shadow-sm); }
.condition-grid > a > span { display: grid; width: 45px; height: 45px; place-items: center; color: var(--mx-secondary-dark); border-radius: 50%; background: #fbf6e9; font-size: 17px; }
.condition-grid > a > div { display: grid; gap: 4px; }
.condition-grid strong { color: var(--mx-primary-dark); font-size: 12px; }
.condition-grid small { color: var(--mx-muted); font-size: 9px; line-height: 1.45; }
.condition-grid > a > i { color: var(--mx-primary); font-size: 11px; }

.market-popular { padding: clamp(20px, 3vw, 32px); border-radius: 22px; background: #f3f6f8; }
.market-value { display: grid; grid-template-columns: minmax(190px, .65fr) minmax(0, 1.8fr); gap: 28px; padding: clamp(23px, 4vw, 42px); color: #fff; border-radius: 22px; background: var(--mx-primary-dark); }
.market-value .market-eyebrow { color: var(--mx-secondary); }
.market-value-intro h2 { margin: 0; color: #fff; font-size: clamp(20px, 3vw, 29px); line-height: 1.18; }
.market-value-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.market-value-grid article { display: grid; grid-template-columns: 31px minmax(0, 1fr); align-items: start; gap: 10px; }
.market-value-grid article > i { display: grid; width: 31px; height: 31px; place-items: center; color: var(--mx-secondary); border: 1px solid rgba(255, 255, 255, .15); border-radius: 9px; font-size: 13px; }
.market-value-grid h3 { margin: 2px 0 6px; color: #fff; font-size: 11px; }
.market-value-grid p { margin: 0; color: rgba(255, 255, 255, .64); font-size: 9px; line-height: 1.55; }
.market-help { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 21px 24px; border: 1px solid var(--mx-border); border-radius: 18px; background: #fff; }
.market-help > div { display: flex; align-items: center; gap: 14px; }
.market-help > div > span { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; color: var(--mx-primary); border-radius: 12px; background: #f0f4f7; font-size: 18px; }
.market-help h2 { margin: 0 0 3px; color: var(--mx-primary-dark); font-size: 15px; }
.market-help p { margin: 0; color: var(--mx-muted); font-size: 9.5px; }

@media (max-width: 940px) {
  .market-home { gap: 44px; }
  .market-hero { grid-template-columns: minmax(0, 1.1fr) minmax(260px, .7fr); }
  .market-hero-copy { padding: 31px; }
  .category-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .market-value { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .market-home { gap: 37px; }
  .market-hero { grid-template-columns: 1fr; min-height: 0; padding: 8px; border-radius: 20px; }
  .market-hero-copy { padding: 27px 20px; }
  .market-hero h1 { font-size: clamp(30px, 10.5vw, 43px); }
  .market-hero-copy > p:not(.market-eyebrow) { font-size: 11px; }
  .market-proof { gap: 10px 16px; margin-top: 22px; }
  .market-hero-product { grid-template-columns: minmax(0, 1fr) 118px; grid-template-rows: auto 1fr; min-height: 205px; }
  .market-hero-product-top { grid-column: 1 / -1; }
  .market-hero-device { grid-column: 2; grid-row: 2; min-height: 0; margin: 0; }
  .market-hero-device img { height: 130px; }
  .market-hero-product-copy { grid-column: 1; grid-row: 2; align-content: end; }
  .category-rail { display: flex; gap: 8px; overflow-x: auto; margin-inline: 0; padding: 2px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .category-rail::-webkit-scrollbar { display: none; }
  .category-tile { flex: 0 0 178px; scroll-snap-align: start; }
  .market-product-grid { display: flex; gap: 9px; overflow-x: auto; margin-inline: 0; padding: 2px 2px 10px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .market-product-grid::-webkit-scrollbar { display: none; }
  .market-product-grid .product-card { flex: 0 0 178px; scroll-snap-align: start; }
  .condition-grid { grid-template-columns: 1fr; gap: 8px; }
  .condition-grid > a { min-height: 84px; }
  .market-popular { margin-inline: 0; padding: 24px 16px; border-radius: 18px; }
  .market-value-grid { grid-template-columns: 1fr; gap: 20px; }
  .market-help { align-items: stretch; flex-direction: column; }
  .market-help .btn-secondary { justify-content: center; }
}

@media (max-width: 430px) {
  .market-actions > a { flex: 1; justify-content: center; }
  .market-proof span:nth-child(2) { display: none; }
  .market-section-head { align-items: end; }
  .market-section-head h2 { font-size: 18px; }
  .market-section-head > a { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .search input::placeholder { transition: none; }
  .search .search-voice.is-listening { animation: none; }
  .commerce-hero-slide, .hero-dots button { transition: none; }
}

/* Two-column storefront product grid on phones ------------------------ */
@media (max-width: 700px) {
  .market-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
    margin-inline: 0;
    padding: 0;
    scroll-snap-type: none;
  }
  .market-product-grid .product-card { min-width: 0; flex: none; }
}

@media (max-width: 620px) {
  .grid.product-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-feed .product-card {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    transform: none;
  }
  .product-feed .device {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1;
    align-self: stretch;
    border-right: 0;
    border-bottom: 1px solid var(--mx-border);
  }
  .product-feed .product-card-body { min-width: 0; padding: 11px; }
  .product-feed .product-card h3 {
    display: -webkit-box;
    min-height: 2.7em;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.35;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .product-feed .product-card .meta { margin-top: 6px; }
  .product-feed .product-card .price { margin-top: auto; padding-top: 9px; font-size: 13.5px; }
}

/* Keep the screenshot-matched homepage rhythm after legacy home rules. */
.market-home.market-home-reference { gap: 34px; }
@media (max-width: 620px) { .market-home.market-home-reference { gap: 28px; } }
@media (max-width: 899px) {
  .storefront-body .store-account-link,
  .storefront-body .store-cart-link { display: none; }
}

/* ---------- WhatsApp bulk messaging ---------- */
.wa-tabs { display: flex; gap: 4px; margin: 0 0 18px; padding: 4px; overflow-x: auto; border: 1px solid var(--mx-border); border-radius: 14px; background: #fff; scrollbar-width: none; }
.wa-tabs::-webkit-scrollbar { display: none; }
.wa-tabs a { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; padding: 9px 14px; color: var(--mx-muted); border-radius: 10px; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.wa-tabs a:hover { color: var(--mx-ink); background: var(--mx-surface-muted); }
.wa-tabs a.active { color: #fff; background: var(--mx-primary); }
.wa-tabs a:focus-visible { outline: 2px solid var(--mx-secondary); outline-offset: 2px; }

.wa-row-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.wa-row-head h2 { margin: 0; }
.wa-plain { margin: 8px 0 0; padding-left: 18px; }
.wa-checklist { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.wa-err { color: var(--mx-danger); }
.wa-ok { color: var(--mx-success); }
.wa-label { font-size: 13px; font-weight: 800; }
.wa-grid-2 { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
.wa-grid-3 { display: grid; gap: 0 12px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .wa-grid-2 { grid-template-columns: 1fr 1fr; } .wa-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.wa-inline-form { display: grid; gap: 0 14px; align-items: end; grid-template-columns: 1fr; }
@media (min-width: 720px) { .wa-inline-form { grid-template-columns: 1fr 1fr auto; } .wa-inline-form .btn-primary, .wa-inline-form .btn-secondary { margin-bottom: 16px; } }
.wa-fieldset { margin: 6px 0 0; padding: 0; border: 0; min-width: 0; }
.wa-fieldset legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 800; }
.req { color: var(--mx-danger); font-size: 11px; font-weight: 700; }

.wa-choice { display: grid; gap: 10px; margin-bottom: 14px; }
@media (min-width: 720px) { .wa-choice { grid-template-columns: 1fr 1fr; } }
.wa-choice > label { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 4px; align-items: start; padding: 12px 14px; border: 1px solid var(--mx-border); border-radius: 12px; background: #fff; cursor: pointer; }
.wa-choice > label:has(input:checked) { border-color: var(--mx-secondary); background: #f3fbf7; }
.wa-choice > label > span { grid-column: 2; color: var(--mx-muted); font-size: 13px; }
.wa-choice > label > span input, .wa-choice > label > span select { width: 100%; margin-top: 4px; min-height: 40px; padding: 8px 10px; border: 1px solid var(--mx-border); border-radius: 10px; background: #fff; font: inherit; }

.wa-chip { display: inline-block; margin: 2px 4px 2px 0; padding: 3px 9px; color: var(--mx-ink); border: 1px solid var(--mx-border); border-radius: 99px; background: var(--mx-surface-muted); font-size: 12px; font-weight: 600; }
button.wa-chip { cursor: pointer; font-family: ui-monospace, Menlo, Consolas, monospace; }
button.wa-chip:hover { border-color: var(--mx-secondary); }
.wa-chips { display: flex; flex-wrap: wrap; margin-top: 6px; }

.wa-check { width: auto; }
th.wa-check, td.wa-check { width: 36px; }
.wa-bulkbar { margin-top: 12px; }
tr.is-selected td { background: #f3fbf7; }

.wa-checks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
li.wa-check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--mx-border); border-radius: 10px; background: #fff; font-size: 14px; }
li.wa-check.ok { border-color: #bfe2d3; background: #edf8f3; }
li.wa-check.ok i { color: var(--mx-success); }
li.wa-check.bad { border-color: #efc5c5; background: #fff1f1; }
li.wa-check.bad i { color: var(--mx-danger); }
li.wa-check.info i { color: var(--mx-warning); }

/* import */
.wa-gridwrap { max-width: 100%; overflow: auto; border: 1px solid var(--mx-border); border-radius: 12px; background: #fff; }
.wa-gridwrap:focus-visible { outline: 2px solid var(--mx-secondary); }
table.wa-grid { border-collapse: collapse; width: max-content; min-width: 100%; font-size: 12px; }
table.wa-grid th, table.wa-grid td { padding: 6px 10px; border-bottom: 1px solid var(--mx-border); border-right: 1px solid var(--mx-border); white-space: nowrap; text-align: left; }
table.wa-grid thead th { position: sticky; top: 0; background: var(--mx-surface-muted); font-weight: 800; text-align: center; }
table.wa-grid .wa-rownum { position: sticky; left: 0; width: 36px; color: var(--mx-muted); background: var(--mx-surface-muted); text-align: center; font-weight: 700; }
table.wa-grid tr.is-header td { background: #e5f6ed; font-weight: 800; }
table.wa-table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.wa-table th, table.wa-table td { padding: 8px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--mx-border); word-break: break-word; }
table.wa-table th { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; background: var(--mx-surface-muted); white-space: nowrap; }
.wa-fields td { vertical-align: middle; }
.wa-fields input:not([type=checkbox]) { width: 100%; min-height: 36px; padding: 6px 10px; border: 1px solid var(--mx-border); border-radius: 8px; font: inherit; }
.wa-upload input[type=file] { padding: 22px 16px; border: 2px dashed var(--mx-border); border-radius: 14px; background: var(--mx-surface-muted); width: 100%; }

/* campaign variables */
.wa-var { display: grid; gap: 8px; margin-bottom: 10px; align-items: center; grid-template-columns: 1fr; padding: 10px; border: 1px solid var(--mx-border); border-radius: 12px; background: #fff; }
@media (min-width: 820px) { .wa-var { grid-template-columns: 64px 180px 1fr 1fr 44px; } }
.wa-var-n { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 800; }
.wa-var select, .wa-var input { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--mx-border); border-radius: 10px; background: #fff; font: inherit; }
.wa-var input[hidden] { display: none; }

/* live progress */
.wa-live-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.wa-bignum strong { display: block; font-size: clamp(34px, 7vw, 54px); line-height: 1; font-variant-numeric: tabular-nums; color: var(--mx-primary); }
.wa-bignum span { color: var(--mx-muted); font-size: 13px; }
.wa-speed { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.wa-speed small { color: var(--mx-muted); font-weight: 600; }
.wa-bar { height: 14px; overflow: hidden; border-radius: 99px; background: var(--mx-surface-muted); border: 1px solid var(--mx-border); }
.wa-bar span { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--mx-secondary-dark), var(--mx-secondary)); transition: width .35s ease; }
.wa-counts { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); margin: 16px 0; }
@media (min-width: 720px) { .wa-counts { grid-template-columns: repeat(6, 1fr); } }
.wa-count { padding: 12px; border: 1px solid var(--mx-border); border-radius: 12px; background: #fff; }
.wa-count strong { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.wa-count span { color: var(--mx-muted); font-size: 12px; font-weight: 700; }
.wa-count[data-count-box="failed"] strong { color: var(--mx-danger); }
.wa-count[data-count-box="read"] strong, .wa-count[data-count-box="delivered"] strong { color: var(--mx-success); }
.wa-controls { margin-top: 4px; }
.wa-feed { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; max-height: 320px; overflow: auto; }
.wa-feed li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--mx-border); font-size: 13px; }
.wa-minibar { height: 6px; margin-bottom: 4px; overflow: hidden; border-radius: 99px; background: var(--mx-surface-muted); }
.wa-minibar span { display: block; height: 100%; background: var(--mx-secondary); }
.wa-bubble { max-width: 520px; margin: 8px 0; padding: 12px 14px; border-radius: 4px 14px 14px 14px; background: #e8f7ee; border: 1px solid #c7e9d6; white-space: normal; word-break: break-word; }
.notice.bad { border-left-color: var(--mx-danger); }

.table-status[data-status="sent"], .table-status[data-status="sending"], .table-status[data-status="paused"], .table-status[data-status="draft"] { color: #87580d; border-color: #ead49a; background: #fff8e8; }
.table-status[data-status="sent"]::before, .table-status[data-status="sending"]::before, .table-status[data-status="paused"]::before, .table-status[data-status="draft"]::before { background: var(--mx-warning); }
.table-status[data-status="sending"]::before { animation: wa-pulse 1.2s ease-in-out infinite; }
@keyframes wa-pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .table-status[data-status="sending"]::before { animation: none; } .wa-bar span { transition: none; } }

/* reports */
.wa-report-filters { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 720px) { .wa-report-filters { grid-template-columns: 1fr 1fr 2fr auto; } }
.wa-funnel { display: grid; grid-template-columns: 84px 1fr 70px; gap: 12px; align-items: center; margin: 8px 0; font-size: 13px; }
.wa-funnel-label { font-weight: 700; }
.wa-funnel strong { text-align: right; font-variant-numeric: tabular-nums; }
.wa-funnel-track { height: 16px; border-radius: 8px; background: var(--mx-surface-muted); overflow: hidden; }
.wa-funnel-track span { display: block; height: 100%; border-radius: 8px; }
.wa-f-attempted { background: #9fb3a9; } .wa-f-accepted { background: #5fbf92; } .wa-f-delivered { background: var(--mx-secondary); } .wa-f-read { background: var(--mx-secondary-dark); }
.wa-chart { margin: 0; }
.wa-chart svg { width: 100%; height: auto; overflow: visible; }
.wa-grid-line { stroke: var(--mx-border); stroke-width: 1; }
.wa-axis { fill: var(--mx-muted); font-size: 10px; font-family: var(--mx-font); }
.wa-s-read { fill: var(--mx-secondary-dark); background: var(--mx-secondary-dark); }
.wa-s-delivered { fill: var(--mx-secondary); background: var(--mx-secondary); }
.wa-s-sent { fill: #b9c9c0; background: #b9c9c0; }
.wa-s-failed { fill: var(--mx-danger); background: var(--mx-danger); }
.wa-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 12px; color: var(--mx-muted); }
.wa-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; }

[data-preview-out] h3 { margin: 20px 0 8px; }
.wa-stats { margin: 14px 0; }

.admin-main [hidden] { display: none !important; }

.jiunge-card { display: grid; justify-items: center; gap: 10px; max-width: 640px; margin: 24px auto; text-align: center; }
.jiunge-card h1 { margin: 0; font-size: clamp(26px, 5vw, 38px); }
.jiunge-card .lede { max-width: 32rem; }
.jiunge-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--mx-primary); color: #fff; font-size: 26px; }
.jiunge-actions { justify-content: center; margin-top: 6px; }

/* Sign-in and registration help */
.auth-notice { display: flex; gap: 10px; margin: -6px 0 18px; padding: 12px 14px; color: var(--mx-ink); border: 1px solid color-mix(in srgb, var(--mx-secondary) 45%, var(--mx-border)); border-radius: 12px; background: color-mix(in srgb, var(--mx-secondary) 10%, #fff); }
.auth-notice > i { flex: 0 0 auto; margin-top: 1px; color: var(--mx-secondary-dark); font-size: 18px; }
.auth-notice strong { display: block; font-size: 13px; }
.auth-notice p { margin: 3px 0 0; color: var(--mx-muted); font-size: 12.5px; line-height: 1.5; }
.auth-form .help { margin: 5px 0 0; color: var(--mx-muted); font-size: 12px; }
.btn-register { display: inline-flex; width: 100%; min-height: 54px; align-items: center; justify-content: center; gap: 9px; padding: 12px 18px; color: var(--mx-primary) !important; border: 0; border-radius: 12px; background: var(--mx-secondary); box-shadow: 0 10px 22px color-mix(in srgb, var(--mx-secondary) 35%, transparent); font-size: 16px; font-weight: 800; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; }
.btn-register:hover { background: color-mix(in srgb, var(--mx-secondary) 85%, #fff); transform: translateY(-1px); box-shadow: 0 14px 28px color-mix(in srgb, var(--mx-secondary) 42%, transparent); }
.btn-register:focus-visible { outline: 3px solid var(--mx-primary); outline-offset: 3px; }
.auth-register-cta { display: grid; gap: 12px; margin-top: 22px; padding: 18px; border: 1.5px dashed color-mix(in srgb, var(--mx-secondary) 60%, var(--mx-border)); border-radius: 16px; background: color-mix(in srgb, var(--mx-secondary) 6%, #fff); }
.auth-register-cta h2 { margin: 0; font-size: 18px; }
.auth-register-cta p { margin: 3px 0 0; color: var(--mx-muted); font-size: 13px; }
.auth-form .auth-form-links { justify-content: center; }
.register-help { margin: -4px 0 16px; padding: 10px 14px; border: 1px solid var(--mx-border); border-radius: 12px; background: var(--mx-surface-muted); }
.register-help summary { color: var(--mx-ink); font-size: 13px; font-weight: 800; cursor: pointer; }
.register-help ol { margin: 8px 0 2px; padding-left: 20px; color: var(--mx-muted); font-size: 13px; line-height: 1.6; }
.register-form .help { font-size: 11.5px; color: var(--mx-muted); }
.account-choice-help { margin: 0 0 8px !important; }
.register-submit.btn-register { margin-top: 6px; }

/* WhatsApp › Connect (Embedded Signup) */
.wac-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 18px; margin: 12px 0 0; }
.wac-dl div { padding: 10px 12px; border: 1px solid var(--mx-border); border-radius: 10px; background: var(--mx-surface-muted); }
.wac-dl dt { color: var(--mx-muted); font-size: 12px; font-weight: 700; }
.wac-dl dd { margin: 3px 0 0; overflow-wrap: anywhere; font-size: 14px; }
.wac-phase { display: inline-block; margin: 0 8px 2px 0; }
.wac-inline { margin-top: 12px; }
.wac-steps { display: grid; gap: 8px; margin: 12px 0 0; padding-left: 22px; line-height: 1.55; }
.wac-steps li.done::marker { color: var(--mx-success); font-weight: 800; }
.wac-steps li.done > strong::after { content: " ✓"; color: var(--mx-success); }
.wac-config { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
.wac-config .form-actions { grid-column: 1 / -1; }
.wac-pin { max-width: 360px; margin: 12px 0; }
.wac-result { display: grid; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.wac-result li { display: flex; gap: 8px; align-items: baseline; padding: 8px 10px; border-radius: 9px; background: var(--mx-surface-muted); font-size: 14px; }
.wac-result li.ok i { color: var(--mx-success); }
.wac-result li.bad i { color: var(--mx-danger); }
@media (max-width: 760px) { .wac-config { grid-template-columns: 1fr; } }
