/* ============================================================
   HoReCaz — reset, primitives, component library.
   Mobile-first. Every screen composes from this file.
   ============================================================ */

/* ---------- 1. Reset -------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-15);
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv02" 1, "cv03" 1, "cv04" 1, "cv11" 1;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 {
  font-family: var(--font-display); margin: 0; font-weight: 600;
  letter-spacing: var(--tracking-heading); line-height: var(--lh-snug); color: var(--text-primary);
}
h1 { font-size: var(--fs-24); letter-spacing: var(--tracking-display); }
h2 { font-size: var(--fs-20); }
h3 { font-size: var(--fs-16); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: block; flex: none; width: 18px; height: 18px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
dl, dd { margin: 0; }

:focus-visible { outline: 2px solid var(--ember-500); outline-offset: 2px; border-radius: var(--r-xs); }
::selection { background: var(--ember-100); color: var(--ember-800); }

* { scrollbar-width: thin; scrollbar-color: var(--ink-300) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--ink-300); border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--ink-400); background-clip: content-box; border: 3px solid transparent; }

/* ---------- 2. Type utilities ----------------------------- */
.display   { font-family: var(--font-display); font-size: var(--fs-34); font-weight: 700; letter-spacing: var(--tracking-display); line-height: 1.06; }
.title-lg  { font-family: var(--font-display); font-size: var(--fs-24); font-weight: 600; letter-spacing: var(--tracking-display); }
.title     { font-family: var(--font-display); font-size: var(--fs-18); font-weight: 600; letter-spacing: var(--tracking-heading); }
.subtitle  { font-size: var(--fs-14); color: var(--text-secondary); }
.small     { font-size: var(--fs-13); }
.micro     { font-size: var(--fs-12); }
.muted     { color: var(--text-muted); }
.secondary { color: var(--text-secondary); }
.strong    { font-weight: 600; }
.num       { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.eyebrow   { font-size: var(--fs-11); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--text-muted); }
.truncate  { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.clamp-2   { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3   { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.link      { color: var(--ember-700); font-weight: 600; text-underline-offset: 3px; }
.link:hover { text-decoration: underline; }
.price     { font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; letter-spacing: -0.02em; }
.price-old { color: var(--text-muted); text-decoration: line-through; font-weight: 500; font-size: .85em; }

/* ---------- 3. Layout utilities --------------------------- */
.row   { display: flex; align-items: center; gap: var(--s-5); }
.row-t { display: flex; align-items: flex-start; gap: var(--s-5); }
.col   { display: flex; flex-direction: column; gap: var(--s-5); }
.wrap  { flex-wrap: wrap; }
.between { justify-content: space-between; }
.center  { justify-content: center; }
.end     { justify-content: flex-end; }
.grow    { flex: 1 1 auto; min-width: 0; }
.none    { flex: none; }
.gap-2 { gap: var(--s-2); } .gap-3 { gap: var(--s-3); } .gap-4 { gap: var(--s-4); }
.gap-5 { gap: var(--s-5); } .gap-6 { gap: var(--s-6); } .gap-8 { gap: var(--s-8); }
.mt-2 { margin-top: var(--s-2); } .mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); } .mt-7 { margin-top: var(--s-7); } .mt-8 { margin-top: var(--s-8); }
.mb-4 { margin-bottom: var(--s-4); } .mb-5 { margin-bottom: var(--s-5); }
.mb-6 { margin-bottom: var(--s-6); } .mb-8 { margin-bottom: var(--s-8); }
.hide { display: none !important; }
.grid { display: grid; gap: var(--s-6); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- 4. Buttons ------------------------------------ */
.btn {
  --btn-h: 42px;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-4);
  height: var(--btn-h); padding: 0 var(--s-6);
  border-radius: var(--r-sm);
  font-family: var(--font-display); font-size: var(--fs-14); font-weight: 600;
  white-space: nowrap; user-select: none; border: 1px solid transparent;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; }

.btn-primary   { background: var(--ember-600); color: #fff; }
.btn-primary:hover { background: var(--ember-700); }
.btn-secondary { background: var(--white); color: var(--ink-800); border-color: var(--border-strong); box-shadow: var(--sh-1); }
.btn-secondary:hover { background: var(--ink-50); border-color: var(--ink-400); }
.btn-ghost     { background: transparent; color: var(--ink-700); }
.btn-ghost:hover { background: var(--ink-100); }
.btn-quiet     { background: var(--ink-100); color: var(--ink-800); }
.btn-quiet:hover { background: var(--ink-200); }
.btn-plum      { background: var(--plum-800); color: #fff; }
.btn-plum:hover { background: var(--plum-900); }
.btn-saffron   { background: var(--saffron-500); color: var(--plum-900); }
.btn-saffron:hover { background: var(--saffron-600); color: #fff; }
.btn-danger    { background: var(--white); color: var(--risk-600); border-color: #E8C5C0; }
.btn-danger:hover { background: var(--risk-100); border-color: var(--risk-600); }
.btn-onDark    { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.24); }
.btn-onDark:hover { background: rgba(255,255,255,.24); }

.btn-sm { --btn-h: 34px; padding: 0 var(--s-5); font-size: var(--fs-13); }
.btn-sm svg { width: 15px; height: 15px; }
.btn-lg { --btn-h: 52px; padding: 0 var(--s-8); font-size: var(--fs-16); border-radius: var(--r-md); }
.btn-lg svg { width: 19px; height: 19px; }
.btn-block { width: 100%; }
.btn-icon { width: var(--btn-h); padding: 0; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn-loading::after {
  content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite;
}
.btn-secondary.btn-loading::after, .btn-quiet.btn-loading::after { border-color: var(--ink-300); border-top-color: var(--ink-600); }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; position: relative;
  width: 42px; height: 42px; border-radius: var(--r-sm); color: var(--ink-700);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.icon-btn:hover { background: var(--ink-100); color: var(--ink-900); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .dot {
  position: absolute; top: 4px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 99px; background: var(--ember-600); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 15px; text-align: center;
  border: 2px solid var(--white); box-sizing: border-box; font-variant-numeric: tabular-nums;
}

/* ---------- 5. Form controls ------------------------------ */
.field { display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; }
.label { font-size: var(--fs-13); font-weight: 600; color: var(--ink-700); }
.hint  { font-size: var(--fs-12); color: var(--text-muted); }
.error-text { font-size: var(--fs-12); color: var(--risk-600); display: flex; gap: 5px; align-items: center; }
.error-text svg { width: 13px; height: 13px; }

.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px var(--s-5);
  background: var(--white); border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  font-size: var(--fs-14); color: var(--text-primary);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-400); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-400); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ember-400); box-shadow: var(--ring); }
.textarea { min-height: 96px; resize: vertical; line-height: var(--lh-normal); }
.select {
  appearance: none; padding-right: var(--s-9); cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B6158' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
[aria-invalid="true"].input, [aria-invalid="true"].textarea, [aria-invalid="true"].select {
  border-color: var(--risk-600); box-shadow: 0 0 0 3px rgba(166,42,34,.14);
}
.input-affix { position: relative; display: flex; align-items: center; }
.input-affix > svg { position: absolute; left: 13px; width: 17px; height: 17px; color: var(--ink-400); pointer-events: none; }
.input-affix .input { padding-left: 38px; }
.input-affix .suffix { position: absolute; right: 12px; font-size: var(--fs-13); color: var(--text-muted); font-weight: 600; }

/* Search — the front door of the marketplace */
.search { position: relative; display: flex; align-items: center; width: 100%; }
.search > svg { position: absolute; left: 15px; width: 19px; height: 19px; color: var(--ink-500); pointer-events: none; }
.search input {
  width: 100%; height: 46px; padding: 0 var(--s-10) 0 44px;
  background: var(--bg-glass-card); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: var(--glass-border); border-radius: var(--r-pill);
  font-size: var(--fs-15); box-shadow: var(--sh-1), var(--glass-specular);
  transition: box-shadow var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease), background var(--dur-base) var(--ease);
}
.search input::placeholder { color: var(--ink-400); }
.search input:focus { outline: none; border-color: var(--ember-400); background: #fff; box-shadow: var(--ring), 0 8px 24px rgba(214, 70, 27, 0.12); }
.search .clear { position: absolute; right: 8px; width: 30px; height: 30px; border-radius: 50%; display: none; align-items: center; justify-content: center; color: var(--ink-500); }
.search .clear:hover { background: var(--ink-100); }
.search.has-value .clear { display: flex; }
.search-lg input { height: 54px; font-size: var(--fs-16); }

.check { display: inline-flex; align-items: flex-start; gap: var(--s-4); cursor: pointer; font-size: var(--fs-14); min-height: 32px; }
.check input { appearance: none; width: 19px; height: 19px; flex: none; margin-top: 2px; border: 1.5px solid var(--border-strong); border-radius: 5px; background: var(--white); transition: all var(--dur-fast) var(--ease); position: relative; cursor: pointer; }
.check input[type="radio"] { border-radius: 50%; }
.check input:checked { background: var(--ember-600); border-color: var(--ember-600); }
.check input:checked::after {
  content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat;
}
.check input[type="radio"]:checked::after { background: #fff; border-radius: 50%; inset: 4.5px; }
.check input:focus-visible { box-shadow: var(--ring); outline: none; }

.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { appearance: none; position: absolute; inset: 0; margin: 0; border-radius: 99px; background: var(--ink-300); cursor: pointer; transition: background var(--dur-base) var(--ease); }
.switch input:checked { background: var(--ember-600); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; box-shadow: var(--sh-1); transition: transform var(--dur-base) var(--ease-out); pointer-events: none; }
.switch:has(input:checked)::after { transform: translateX(18px); }
.switch input:focus-visible { box-shadow: var(--ring); outline: none; }

/* Quantity stepper */
.stepper { display: inline-flex; align-items: center; background: var(--ember-600); border-radius: var(--r-sm); height: 38px; overflow: hidden; color: #fff; }
.stepper button { width: 34px; height: 100%; display: grid; place-items: center; color: #fff; transition: background var(--dur-fast) var(--ease); }
.stepper button:hover { background: rgba(0,0,0,.14); }
.stepper button svg { width: 15px; height: 15px; }
.stepper input {
  width: 40px; height: 100%; border: 0; text-align: center; font-size: var(--fs-14); font-weight: 700;
  font-variant-numeric: tabular-nums; background: transparent; padding: 0; color: #fff;
}
.stepper input:focus { outline: none; }
.stepper-quiet { background: var(--white); border: 1px solid var(--border-strong); color: var(--ink-800); }
.stepper-quiet button { color: var(--ink-700); }
.stepper-quiet button:hover { background: var(--ink-100); }
.stepper-quiet input { color: var(--ink-900); }
.stepper.sm { height: 32px; } .stepper.sm button { width: 30px; } .stepper.sm input { width: 34px; font-size: var(--fs-13); }

/* ---------- 6. Cards -------------------------------------- */
.card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-md); }
.card-pad  { padding: var(--s-6); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); padding: var(--s-6); border-bottom: 1px solid var(--border); }
.card-body { padding: var(--s-6); }
.card-foot { padding: var(--s-5) var(--s-6); border-top: 1px solid var(--border); background: var(--ink-50); border-radius: 0 0 var(--r-md) var(--r-md); }
.card-hover { transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease); }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--sh-3); border-color: var(--ink-300); }

/* ---------- 7. Badges, chips ------------------------------ */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: var(--r-pill);
  font-size: var(--fs-12); font-weight: 600; white-space: nowrap; flex: none;
  background: var(--ink-100); color: var(--ink-700);
}
.badge svg { width: 13px; height: 13px; }
.badge-ok    { background: var(--ok-100);   color: var(--ok-700); }
.badge-warn  { background: var(--warn-100); color: var(--warn-700); }
.badge-risk  { background: var(--risk-100); color: var(--risk-700); }
.badge-info  { background: var(--info-100); color: var(--info-700); }
.badge-ember { background: var(--ember-100); color: var(--ember-800); }
.badge-plum  { background: var(--plum-100); color: var(--plum-700); }
.badge-saffron { background: var(--saffron-100); color: var(--saffron-700); }
.badge-solid { background: var(--ember-600); color: #fff; }
.badge-dark  { background: var(--plum-900); color: #fff; }

.chip {
  display: inline-flex; align-items: center; gap: var(--s-3); height: 38px; padding: 0 var(--s-5);
  border-radius: var(--r-pill); background: var(--white); border: 1px solid var(--border-strong);
  font-size: var(--fs-13); font-weight: 500; color: var(--ink-700); white-space: nowrap; cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.chip:hover { border-color: var(--ink-400); background: var(--ink-50); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--plum-900); border-color: var(--plum-900); color: #fff; }
.chip svg { width: 15px; height: 15px; }

/* Horizontal scroller — the rail primitive */
.scroller {
  display: flex; gap: var(--s-5); overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding: 2px 0 var(--s-3);
}
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; flex: none; }

/* ---------- 8. Status pills ------------------------------- */
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: var(--r-pill); font-size: var(--fs-12); font-weight: 600; white-space: nowrap; flex: none; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.status-pending   { background: var(--warn-100); color: var(--warn-700); }
.status-confirmed { background: var(--info-100); color: var(--info-700); }
.status-shipped   { background: var(--plum-100); color: var(--plum-700); }
.status-delivered { background: var(--ok-100);   color: var(--ok-700); }
.status-cancelled { background: var(--ink-100);  color: var(--ink-600); }
.status-rejected  { background: var(--risk-100); color: var(--risk-700); }
.status-draft     { background: var(--ink-100);  color: var(--ink-600); }
.status-active    { background: var(--ok-100);   color: var(--ok-700); }
.status-paid      { background: var(--ok-100);   color: var(--ok-700); }
.status-unpaid    { background: var(--warn-100); color: var(--warn-700); }
.status-overdue   { background: var(--risk-100); color: var(--risk-700); }

/* ---------- 9. Avatars ------------------------------------ */
.avatar {
  display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px;
  border-radius: var(--r-sm); background: var(--plum-100); color: var(--plum-700);
  font-family: var(--font-display); font-size: var(--fs-13); font-weight: 700;
  text-transform: uppercase; overflow: hidden;
}
.avatar svg { width: 48%; height: 48%; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 30px; height: 30px; font-size: var(--fs-11); border-radius: var(--r-xs); }
.avatar-lg { width: 52px; height: 52px; font-size: var(--fs-16); border-radius: var(--r-md); }
.avatar-xl { width: 76px; height: 76px; font-size: var(--fs-24); border-radius: var(--r-lg); }
.avatar-round { border-radius: 50%; }
.avatar-e { background: var(--ember-100); color: var(--ember-800); }
.avatar-s { background: var(--saffron-100); color: var(--saffron-700); }
.avatar-i { background: var(--info-100); color: var(--info-700); }
.avatar-k { background: var(--plum-900); color: #fff; }

/* ---------- 10. Tabs -------------------------------------- */
.tabs { display: flex; gap: var(--s-2); border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; flex: none; padding: var(--s-5) var(--s-5) calc(var(--s-5) - 1px);
  font-size: var(--fs-14); font-weight: 600; color: var(--text-muted);
  border-bottom: 2px solid transparent; white-space: nowrap;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.tab:hover { color: var(--ink-800); }
.tab[aria-selected="true"] { color: var(--ember-700); border-bottom-color: var(--ember-600); }
.tab .count { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: var(--r-pill); background: var(--ink-100); color: var(--ink-600); font-size: var(--fs-11); font-weight: 700; font-variant-numeric: tabular-nums; }
.tab[aria-selected="true"] .count { background: var(--ember-100); color: var(--ember-800); }

.segmented { display: inline-flex; padding: 3px; background: var(--ink-100); border-radius: var(--r-sm); gap: 2px; }
.segmented button { padding: 7px var(--s-5); border-radius: 8px; font-size: var(--fs-13); font-weight: 600; color: var(--ink-600); transition: all var(--dur-fast) var(--ease); }
.segmented button:hover { color: var(--ink-900); }
.segmented button[aria-pressed="true"] { background: var(--white); color: var(--ink-900); box-shadow: var(--sh-1); }

/* ---------- 11. Tables ------------------------------------ */
.table-wrap { width: 100%; overflow-x: auto; }
table.data { width: 100%; font-size: var(--fs-14); }
table.data th {
  text-align: left; font-size: var(--fs-12); font-weight: 600; letter-spacing: .02em;
  text-transform: uppercase; color: var(--text-muted); padding: var(--s-5) var(--s-6);
  background: var(--ink-50); border-bottom: 1px solid var(--border); white-space: nowrap;
}
table.data th.right, table.data td.right { text-align: right; }
table.data td { padding: var(--s-5) var(--s-6); border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data tbody tr { transition: background var(--dur-fast) var(--ease); }
table.data tbody tr:hover { background: var(--ember-50); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data .cell-main { font-weight: 600; color: var(--ink-900); }
table.data .cell-sub { font-size: var(--fs-12); color: var(--text-muted); }

/* ---------- 12. Menus ------------------------------------- */
.menu {
  position: absolute; min-width: 210px; padding: var(--s-3);
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--sh-3); z-index: var(--z-drawer); animation: menu-in var(--dur-fast) var(--ease-out);
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.menu-item {
  display: flex; align-items: center; gap: var(--s-5); width: 100%;
  padding: 9px var(--s-5); border-radius: var(--r-xs);
  font-size: var(--fs-14); color: var(--ink-800); text-align: left;
  transition: background var(--dur-fast) var(--ease);
}
.menu-item:hover { background: var(--ink-100); }
.menu-item svg { width: 17px; height: 17px; color: var(--ink-500); }
.menu-item.is-on { background: var(--ember-50); color: var(--ember-800); font-weight: 600; }
.menu-item.danger { color: var(--risk-600); } .menu-item.danger svg { color: var(--risk-600); }
.menu-item.danger:hover { background: var(--risk-100); }
.menu-sep { height: 1px; background: var(--border); margin: var(--s-3) calc(-1 * var(--s-3)); }
.menu-label { padding: var(--s-4) var(--s-5) var(--s-2); font-size: var(--fs-11); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--text-muted); }

/* ---------- 13. Overlays ---------------------------------- */
.overlay {
  position: fixed; inset: 0; background: rgba(21, 12, 28, .5); backdrop-filter: blur(2px);
  z-index: var(--z-modal); display: flex; align-items: flex-end; justify-content: center;
  animation: fade-in var(--dur-base) var(--ease);
}
@keyframes fade-in { from { opacity: 0; } }
.modal {
  width: 100%; max-width: 560px; max-height: 92vh; display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--r-2xl) var(--r-2xl) 0 0; box-shadow: var(--sh-4);
  animation: sheet-up var(--dur-slow) var(--ease-out);
}
@keyframes sheet-up { from { transform: translateY(24px); opacity: .4; } }
.modal-grip { width: 40px; height: 4px; border-radius: 99px; background: var(--ink-200); margin: var(--s-4) auto 0; flex: none; }
.modal-head { display: flex; align-items: flex-start; gap: var(--s-5); padding: var(--s-6) var(--s-6) var(--s-5); }
.modal-body { padding: 0 var(--s-6) var(--s-6); overflow-y: auto; flex: 1 1 auto; }
.modal-foot {
  display: flex; gap: var(--s-4); padding: var(--s-5) var(--s-6);
  border-top: 1px solid var(--border); background: var(--white); flex: none;
  padding-bottom: max(var(--s-5), env(safe-area-inset-bottom));
}
.modal-foot .btn { flex: 1; }
.modal-wide { max-width: 860px; }
.modal-narrow { max-width: 440px; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: var(--white); box-shadow: var(--sh-4); z-index: var(--z-modal);
  display: flex; flex-direction: column; animation: drawer-in var(--dur-slow) var(--ease-out);
}
@keyframes drawer-in { from { transform: translateX(100%); } }
.drawer-head { display: flex; align-items: center; gap: var(--s-5); padding: var(--s-6); border-bottom: 1px solid var(--border); flex: none; }
.drawer-body { flex: 1; overflow-y: auto; }

/* ---------- 14. Toasts ------------------------------------ */
.toast-region {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--bottomnav-h) + var(--s-5) + env(safe-area-inset-bottom));
  z-index: var(--z-toast); display: flex; flex-direction: column-reverse; gap: var(--s-4);
  width: min(430px, calc(100vw - 24px)); pointer-events: none;
}
.toast {
  display: flex; align-items: flex-start; gap: var(--s-5); padding: var(--s-5) var(--s-6);
  border-radius: var(--r-md); background: var(--plum-950); color: #fff; box-shadow: var(--sh-4);
  font-size: var(--fs-14); pointer-events: auto; animation: toast-in var(--dur-slow) var(--ease-out);
}
.toast.leaving { animation: toast-out var(--dur-base) var(--ease) forwards; }
@keyframes toast-in { from { transform: translateY(16px); opacity: 0; } }
@keyframes toast-out { to { transform: translateY(8px); opacity: 0; } }
.toast svg { width: 18px; height: 18px; margin-top: 1px; }
.toast .toast-title { font-weight: 600; }
.toast .toast-desc { color: rgba(255,255,255,.72); font-size: var(--fs-13); margin-top: 2px; }
.toast-ok svg { color: #7DDCA4; }
.toast-risk svg { color: #FFAD9E; }
.toast-info svg { color: var(--ember-400); }
.toast .toast-action { margin-left: auto; color: var(--ember-400); font-weight: 600; font-size: var(--fs-13); flex: none; }

/* ---------- 15. Alerts ------------------------------------ */
.alert { display: flex; align-items: flex-start; gap: var(--s-5); padding: var(--s-5) var(--s-6); border-radius: var(--r-md); border: 1px solid; font-size: var(--fs-14); }
.alert svg { width: 19px; height: 19px; margin-top: 1px; }
.alert .alert-title { font-weight: 600; margin-bottom: 2px; }
.alert-info  { background: var(--info-100); border-color: #CBD9F1; color: var(--info-700); }
.alert-warn  { background: var(--warn-100); border-color: #F0DCAE; color: var(--warn-700); }
.alert-risk  { background: var(--risk-100); border-color: #EFCCC7; color: var(--risk-700); }
.alert-ok    { background: var(--ok-100);   border-color: #C3E2D0; color: var(--ok-700); }
.alert-ember { background: var(--ember-50); border-color: var(--ember-200); color: var(--ember-800); }

/* ---------- 16. Empty / loading --------------------------- */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: var(--s-11) var(--s-6); gap: var(--s-5); }
.empty-art { width: 76px; height: 76px; display: grid; place-items: center; border-radius: var(--r-lg); background: var(--ember-50); color: var(--ember-500); border: 1px solid var(--ember-100); }
.empty-art svg { width: 32px; height: 32px; }
.empty h3 { font-size: var(--fs-18); }
.empty p { max-width: 44ch; color: var(--text-secondary); font-size: var(--fs-14); }

.skeleton { background: linear-gradient(100deg, var(--ink-100) 30%, var(--ink-50) 50%, var(--ink-100) 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; border-radius: var(--r-xs); }
@keyframes shimmer { to { background-position: -150% 0; } }
.sk-line { height: 12px; margin-bottom: 8px; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--ink-200); border-top-color: var(--ember-600); animation: spin .7s linear infinite; }

/* ---------- 17. Meters, timelines ------------------------- */
.meter { height: 6px; border-radius: 99px; background: var(--ink-100); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 99px; background: var(--ember-500); transition: width var(--dur-slow) var(--ease-out); }
.meter.warn > span { background: var(--warn-600); }
.meter.ok > span { background: var(--ok-600); }
.meter.risk > span { background: var(--risk-600); }

.supplyline { display: flex; align-items: flex-start; width: 100%; }
.supplyline .node { display: flex; flex-direction: column; align-items: center; gap: var(--s-4); flex: 1; text-align: center; position: relative; min-width: 0; }
.supplyline .node::before { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 2px; background: var(--ink-200); }
.supplyline .node:first-child::before { display: none; }
.supplyline .node.done::before, .supplyline .node.current::before { background: var(--ember-500); }
.supplyline .bullet { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 2px solid var(--ink-200); color: var(--ink-400); position: relative; z-index: 1; flex: none; }
.supplyline .bullet svg { width: 14px; height: 14px; }
.supplyline .node.done .bullet { background: var(--ember-500); border-color: var(--ember-500); color: #fff; }
.supplyline .node.current .bullet { background: var(--white); border-color: var(--ember-500); color: var(--ember-600); box-shadow: 0 0 0 4px var(--ember-100); }
.supplyline .node.failed .bullet { background: var(--risk-600); border-color: var(--risk-600); color: #fff; }
.supplyline .node .lab { font-size: var(--fs-11); font-weight: 600; color: var(--text-muted); line-height: 1.25; }
.supplyline .node.done .lab, .supplyline .node.current .lab { color: var(--ink-800); }
.supplyline .node .when { font-size: 10px; color: var(--ink-400); font-variant-numeric: tabular-nums; }

.timeline { position: relative; padding-left: var(--s-9); }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--ink-100); }
.tl-item { position: relative; padding-bottom: var(--s-7); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: calc(-1 * var(--s-9) + 6px); top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 2px solid var(--ink-300); }
.tl-item.accent::before { border-color: var(--ember-500); background: var(--ember-500); }
.tl-item .tl-when { font-size: var(--fs-12); color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* ---------- 18. Key/value lists --------------------------- */
.kv { display: flex; justify-content: space-between; gap: var(--s-5); padding: var(--s-4) 0; font-size: var(--fs-14); }
.kv + .kv { border-top: 1px dashed var(--border); }
.kv dt { color: var(--text-secondary); }
.kv dd { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.kv.total { font-size: var(--fs-16); padding-top: var(--s-5); border-top: 1px solid var(--ink-300); }
.kv.total dd { font-family: var(--font-display); font-size: var(--fs-20); font-weight: 700; }
.divider { height: 1px; background: var(--border); }

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

.star-on svg { fill: var(--saffron-500); color: var(--saffron-500); }
.star-off svg { color: var(--ink-200); }

/* ============================================================
   19. 2026 Modern Marketplace Components
   ============================================================ */

/* ---------- 2026 Badges & Pills --------------------------- */
.badge-cold { background: #E6F3FB; color: #166A9C; border: 1px solid rgba(22, 106, 156, 0.2); }
.badge-local { background: #E8F5E9; color: #2E7D32; border: 1px solid rgba(46, 125, 50, 0.2); }
.badge-glow { box-shadow: 0 0 10px rgba(239, 91, 43, 0.25); border: 1px solid rgba(239, 91, 43, 0.35); }
.badge-gradient { background: linear-gradient(135deg, var(--ember-600), var(--ember-700)); color: #fff; }

/* ---------- Quick View Action Button on Cards ------------- */
.pcard-quickview {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%) translateY(8px);
  opacity: 0; pointer-events: none; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px);
  color: var(--ink-900); font-family: var(--font-display); font-size: var(--fs-12); font-weight: 600;
  box-shadow: 0 4px 14px rgba(26, 22, 19, 0.16); border: 1px solid var(--ink-200);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-base) var(--ease-spring);
  white-space: nowrap; cursor: pointer;
}
.pcard-quickview svg { width: 14px; height: 14px; color: var(--ember-600); }
.pcard:hover .pcard-quickview { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.pcard-quickview:hover { background: #fff; border-color: var(--ember-500); color: var(--ember-700); box-shadow: 0 6px 20px rgba(239, 91, 43, 0.22); }

/* ---------- Quick View Drawer / Modal ---------------------- */
.qv-dialog { max-width: 820px; width: 100%; border-radius: var(--r-xl); overflow: hidden; background: var(--white); box-shadow: var(--sh-4); }
.qv-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-6); }
@media (min-width: 700px) {
  .qv-grid { grid-template-columns: 360px 1fr; gap: var(--s-8); }
}
.qv-media { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-lg); overflow: hidden; background: var(--ink-50); }
.qv-media img { width: 100%; height: 100%; object-fit: cover; }
.qv-specs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--s-5); font-size: var(--fs-12); padding: var(--s-4); background: var(--ink-50); border-radius: var(--r-md); }
.qv-tier-table { width: 100%; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; font-size: var(--fs-12); }
.qv-tier-table th { background: var(--ink-100); padding: 6px 10px; text-align: left; font-weight: 600; }
.qv-tier-table td { padding: 6px 10px; border-top: 1px solid var(--border); }
.qv-tier-table tr.is-active { background: var(--ember-50); font-weight: 600; color: var(--ember-700); }

/* ---------- Multi-Supplier Free Delivery Progress Bar ------ */
.free-deliv-bar {
  display: flex; flex-direction: column; gap: 6px; padding: 10px 14px;
  background: var(--ink-50); border: 1px solid var(--border); border-radius: var(--r-md); margin-top: 10px;
}
.free-deliv-bar.unlocked { background: #F0FDF4; border-color: #BBF7D0; }
.free-deliv-top { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-12); }
.free-deliv-top b { font-weight: 600; }
.free-deliv-progress {
  height: 6px; border-radius: 99px; background: var(--ink-200); overflow: hidden; position: relative;
}
.free-deliv-fill {
  height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--ember-500), var(--saffron-500));
  transition: width var(--dur-slow) var(--ease-spring);
}
.free-deliv-bar.unlocked .free-deliv-fill { background: linear-gradient(90deg, #10B981, #059669); }

/* ---------- AI Procurement Copilot ------------------------ */
.copilot-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill);
  background: linear-gradient(135deg, rgba(239, 91, 43, 0.12), rgba(240, 166, 44, 0.16));
  border: 1px solid rgba(239, 91, 43, 0.3); color: var(--ember-700); font-size: var(--fs-12); font-weight: 700;
  cursor: pointer; transition: all var(--dur-fast) var(--ease);
}
.copilot-chip:hover { transform: translateY(-1px); box-shadow: var(--sh-glow-ember); background: linear-gradient(135deg, rgba(239, 91, 43, 0.18), rgba(240, 166, 44, 0.24)); }
.copilot-chip svg { width: 14px; height: 14px; color: var(--ember-600); }

/* ---------- Commercial Special Offers Chip ---------------- */
.promo-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, rgba(239, 91, 43, 0.14), rgba(240, 166, 44, 0.18));
  border: 1px solid rgba(239, 91, 43, 0.35);
  color: var(--ember-700);
  font-size: var(--fs-12);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--sh-1);
  transition: all var(--dur-fast) var(--ease);
}
.promo-chip:hover {
  transform: translateY(-1px);
  box-shadow: var(--sh-glow-ember);
  background: linear-gradient(135deg, rgba(239, 91, 43, 0.22), rgba(240, 166, 44, 0.28));
  color: var(--ember-800);
}
.promo-chip svg {
  width: 14px;
  height: 14px;
  color: #DC2626;
}
.promo-chip .badge-discount {
  background: #DC2626;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 99px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.copilot-panel { max-width: 540px; width: 100%; border-radius: var(--r-xl); overflow: hidden; background: var(--white); box-shadow: var(--sh-4); }
.copilot-header {
  padding: var(--s-6) var(--s-7); background: linear-gradient(135deg, var(--plum-900), #2D1438);
  color: #fff; display: flex; align-items: center; justify-content: space-between;
}
.copilot-avatar {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ember-500), var(--saffron-500)); color: #fff; box-shadow: var(--sh-glow-ember);
}
.copilot-prompt-pill {
  padding: 8px 12px; border-radius: var(--r-md); background: var(--ink-50); border: 1px solid var(--border);
  font-size: var(--fs-13); font-weight: 500; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  transition: all var(--dur-fast) var(--ease);
}
.copilot-prompt-pill:hover { background: #fff; border-color: var(--ember-500); transform: translateX(2px); box-shadow: var(--sh-1); }
.copilot-prompt-pill svg { width: 15px; height: 15px; color: var(--ember-600); flex: none; }

.copilot-rec-item {
  padding: var(--s-4); border-radius: var(--r-md); background: var(--white); border: 1px solid var(--border);
  display: flex; align-items: center; gap: var(--s-4); transition: border-color var(--dur-fast) var(--ease);
}
.copilot-rec-item:hover { border-color: var(--ember-400); box-shadow: var(--sh-1); }
.copilot-rec-img { width: 44px; height: 44px; border-radius: var(--r-sm); object-fit: cover; flex: none; }

/* ---------- Bulk Order SKU Matrix Table ------------------- */
.matrix-container { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--white); }
.matrix-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.matrix-table th { background: var(--ink-100); padding: 12px 14px; text-align: left; font-size: var(--fs-13); font-weight: 600; color: var(--ink-800); }
.matrix-table td { padding: 10px 14px; border-top: 1px solid var(--border); vertical-align: middle; font-size: var(--fs-13); }
.matrix-table tr:hover td { background: var(--ink-50); }
.matrix-img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; flex: none; }
.matrix-stepper { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--r-xs); height: 30px; background: #fff; }
.matrix-stepper input { width: 42px; text-align: center; border: 0; font-weight: 600; font-size: var(--fs-13); padding: 0; }
.matrix-stepper button { width: 28px; height: 28px; display: grid; place-items: center; color: var(--ink-700); }
.matrix-stepper button:hover { background: var(--ink-100); }

/* ---------- Brand Showcase Modal -------------------------- */
.brand-modal-hero { padding: var(--s-8) var(--s-6); border-radius: var(--r-lg); text-align: center; background: linear-gradient(135deg, var(--plum-900) 0%, #30173D 100%); color: #fff; margin-bottom: var(--s-6); }
.brand-swatch { border-radius: var(--r-md); padding: 12px; display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-12); font-weight: 600; border: 1px solid var(--border); }
.brand-swatch-box { height: 48px; border-radius: var(--r-sm); margin-bottom: 6px; }

/* ---------- 2026 Spotlight Radiant Borders (Aceternity/Linear) */
.spotlight-card, .pcard, .bento-card, .valcell, .cat-tile {
  position: relative;
}
.spotlight-card::before, .pcard::before, .bento-card::before, .valcell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(239, 91, 43, 0.12), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}
.spotlight-card:hover::before, .pcard:hover::before, .bento-card:hover::before, .valcell:hover::before {
  opacity: 1;
}

/* Radiant specular border ring */
.spotlight-card::after, .bento-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(320px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 122, 61, 0.8), rgba(240, 166, 44, 0.3) 40%, transparent 80%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  z-index: 3;
}
.spotlight-card:hover::after, .bento-card:hover::after {
  opacity: 1;
}

/* ---------- 2026 Shimmer Light Beam ----------------------- */
@keyframes shimmer-sweep {
  0% { transform: translateX(-120%) rotate(25deg); }
  20%, 100% { transform: translateX(250%) rotate(25deg); }
}
.shimmer-btn {
  position: relative;
  overflow: hidden;
}
.shimmer-btn::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 60%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: translateX(-120%) rotate(25deg);
  animation: shimmer-sweep 5.5s infinite cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

/* ---------- Luminous Status Indicators --------------------- */
.pulse-dot-green {
  width: 7px; height: 7px; border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
  display: inline-block;
  animation: pulse-glow 2s infinite;
}
@keyframes pulse-glow {
  0% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 6px #10B981; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 14px #10B981; }
  100% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 6px #10B981; }
}
.pulse-spark {
  animation: pulse-spark 1.8s infinite;
}
@keyframes pulse-spark {
  0% { r: 3.5; opacity: 0.7; }
  50% { r: 5.5; opacity: 1; }
  100% { r: 3.5; opacity: 0.7; }
}

/* ---------- 2026 Page View Transitions ------------------- */
.view, .workspace, .shell {
  animation: view-fade-up 320ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes view-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.996);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ---------- 3D Dynamic Card Physics ---------------------- */
.spotlight-card, .pcard, .bento-card, .cat-tile {
  transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateZ(0);
  transform-style: preserve-3d;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 240ms cubic-bezier(0.16, 1, 0.3, 1), border-color 200ms ease;
  will-change: transform;
}
.spotlight-card:hover, .pcard:hover, .bento-card:hover, .cat-tile:hover {
  box-shadow: var(--sh-tilt), var(--glass-specular);
}

/* 3D Dynamic Specular Holographic Glare */
.pcard::after, .cat-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    360px circle at var(--glare-x, 50%) var(--glare-y, 50%),
    rgba(255, 255, 255, 0.32) 0%,
    rgba(255, 255, 255, 0.08) 45%,
    transparent 80%
  );
  opacity: var(--glare-opacity, 0);
  transition: opacity 240ms ease;
  pointer-events: none;
  z-index: 4;
  mix-blend-mode: overlay;
}

/* ---------- Mobile Role Pill (Header) -------------------- */
.mobile-role-pill {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: var(--blur-chrome);
  -webkit-backdrop-filter: var(--blur-chrome);
  border: 1px solid var(--border);
  color: var(--ink-800);
  font-size: var(--fs-12);
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--sh-1);
  transition: all var(--dur-fast) var(--ease);
}
.mobile-role-pill:active { transform: scale(0.94); }
.mobile-role-pill svg { width: 12px; height: 12px; color: var(--ink-500); }
.role-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ember-500);
  box-shadow: 0 0 6px var(--ember-400);
  flex: none;
}
.role-indicator-dot.restaurant { background: var(--ember-500); box-shadow: 0 0 6px var(--ember-400); }
.role-indicator-dot.supplier { background: #10B981; box-shadow: 0 0 6px #10B981; }
.role-indicator-dot.admin { background: #8B5CF6; box-shadow: 0 0 6px #8B5CF6; }
.role-indicator-dot.guest { background: var(--ink-400); box-shadow: none; }

@media (max-width: 767px) {
  .mobile-role-pill { display: inline-flex; }
}

/* ---------- Native Mobile Bottom Sheet ------------------- */
.modal-bottom-sheet {
  border-radius: 28px 28px 0 0 !important;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.22);
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
}
.role-sheet-option {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-lg);
  border: 1.5px solid var(--border);
  background: var(--white);
  cursor: pointer;
  width: 100%;
  transition: all var(--dur-fast) var(--ease);
  position: relative;
}
.role-sheet-option:hover, .role-sheet-option:active {
  background: var(--ink-50);
  border-color: var(--ember-400);
  transform: scale(0.99);
}
.role-sheet-option.is-active {
  border-color: var(--ember-500);
  background: linear-gradient(135deg, rgba(255, 244, 239, 0.8), rgba(254, 248, 234, 0.6));
  box-shadow: 0 4px 14px rgba(214, 70, 27, 0.12);
}
.role-sheet-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
}
.role-sheet-icon.restaurant { background: var(--ember-100); color: var(--ember-700); }
.role-sheet-icon.supplier { background: #DCFCE7; color: #15803D; }
.role-sheet-icon.platform { background: #EDE9FE; color: #6D28D9; }
.role-sheet-icon.guest { background: var(--ink-200); color: var(--ink-700); }
.role-sheet-icon svg { width: 20px; height: 20px; }
.role-sheet-check {
  color: var(--ember-600);
  flex: none;
}
.role-sheet-check svg { width: 18px; height: 18px; stroke-width: 2.4; }

