/* ==========================================================================
   Update — Dashboard layout & components
   Loaded by every dashboard page AFTER styles.css
   ========================================================================== */

:root {
  --dash-side: 248px;
  --dash-top:  64px;
  --dash-gap:  1.25rem;
}

body { background: var(--bg-soft); }

.dash-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--dash-side) 1fr;
}

/* -------------------------- Sidebar --------------------------------- */
.dash-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 1rem .85rem 1rem;
  overflow-y: auto;
}
.dash-brand {
  display: flex;
  justify-content: center;
  margin: -28px 0 .5rem;
}
.dash-brand img { height: 110px; width: auto; }

.dash-menu-title {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .7rem;
  color: var(--muted);
  font-weight: 700;
  padding: .8rem .8rem .3rem;
}

.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.dash-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem .8rem;
  border-radius: 10px;
  color: var(--text);
  font-weight: 500;
  font-size: .92rem;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: 0;
  font-family: inherit;
  text-align: left;
  width: 100%;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.dash-link:hover { background: var(--bg-soft); color: var(--primary); }
.dash-link.active {
  background: var(--primary);
  color: #fff;
}
.dash-link.active .dash-link-ic { color: #fff; }
.dash-link-ic {
  width: 22px; height: 22px;
  display: inline-grid; place-items: center;
  color: var(--muted);
  flex-shrink: 0;
}
.dash-link-ic svg { width: 100%; height: 100%; }
.dash-link:hover .dash-link-ic { color: var(--primary); }

.dash-side-foot { border-top: 1px solid var(--line); padding-top: .6rem; margin-top: .5rem; }
.dash-logout { color: #c0392b; }
.dash-logout:hover { background: #fdecea; color: #c0392b; }
.dash-logout .dash-link-ic { color: #c0392b; }

/* -------------------------- Topbar ---------------------------------- */
.dash-content-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.dash-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--dash-top);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.5rem;
}
.dash-hamburger {
  display: none;
  flex-direction: column; gap: 4px;
  background: none; border: 0; cursor: pointer; padding: 6px;
}
.dash-hamburger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }

.dash-search {
  flex: 1;
  max-width: 420px;
  position: relative;
  display: flex; align-items: center; gap: .5rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .5rem .9rem;
  color: var(--muted);
}
.dash-search input {
  flex: 1; background: none; border: 0; outline: none;
  font-family: inherit; font-size: .92rem; color: var(--ink);
}

.dash-bell {
  position: relative;
  margin-left: auto;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink);
  cursor: pointer;
  background: var(--primary-100);
  transition: background .15s;
}
.dash-bell:hover, .dash-bell.open { background: #e5f4ec; }
.dash-bell-badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px;
  background: #e23d3d; color: #fff;
  font-size: .65rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.dash-bell-dropdown {
  position: absolute;
  top: calc(100% + 8px); right: 0;
  width: min(360px, 90vw);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  z-index: 40;
  overflow: hidden;
}
.dash-bell-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--primary-100);
}
.dash-bell-list { max-height: 400px; overflow-y: auto; }
.dash-bell-item {
  display: block;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink);
  transition: background .15s;
}
.dash-bell-item:last-child { border-bottom: 0; }
.dash-bell-item:hover { background: var(--primary-100); }
.dash-bell-item strong { display: block; font-size: .9rem; margin-bottom: .2rem; }
.dash-bell-item p { margin: 0 0 .3rem; color: var(--muted); font-size: .85rem; }
.dash-bell-item.unread { background: #f3fbf7; }
.dash-bell-item.unread strong::before {
  content: ''; display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary); margin-right: .4rem;
  vertical-align: middle;
}

.dash-user {
  display: flex; align-items: center; gap: .6rem;
}
.dash-user-meta {
  text-align: right;
  line-height: 1.15;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.dash-user-meta strong {
  display: block;
  font-size: .92rem;
  color: var(--ink);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-user-role {
  display: inline-block;
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  background: rgba(27, 46, 110, .08);
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1;
}
.dash-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  color: #fff; display: grid; place-items: center; font-weight: 700;
}

/* -------------------------- Main ------------------------------------ */
.dash-main {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: var(--dash-gap);
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.page-head h1 {
  font-size: 1.6rem; margin: 0;
  font-weight: 700;
}
.page-head .hint { color: var(--muted); margin: .25rem 0 0; font-size: .92rem; }

/* -------------------------- Card ------------------------------------ */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.card + .card { margin-top: var(--dash-gap); }
.card-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1rem;
}
.card-head h3 { margin: 0; font-size: 1.05rem; }

/* -------------------------- KPI / stats ----------------------------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--dash-gap);
}
.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  display: flex; flex-direction: column; gap: .3rem;
  position: relative; overflow: hidden;
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.kpi:hover {
  box-shadow: var(--shadow-sm);
  border-color: #d5d9e8;
}
.kpi::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--sky));
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.kpi:hover::before { opacity: 1; }
.kpi--accent::before { opacity: 1; }
.kpi-label { color: var(--muted); font-size: .85rem; font-weight: 500; }
.kpi-value {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--ink);
  line-height: 1;
}
.kpi-delta { font-size: .78rem; color: #0a8a55; font-weight: 600; }
.kpi-delta.down { color: #c0392b; }
.kpi-sub { color: var(--muted); font-size: .75rem; margin-top: .25rem; line-height: 1.35; }
.kpi--warn { border-color: #fde68a; background: linear-gradient(135deg, #fffbeb, #fff); }
.kpi--warn .kpi-value { color: #92400e; }
.kpi-ic {
  position: absolute; right: 14px; top: 14px;
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--primary-100); color: var(--primary);
}

/* -------------------------- Table ----------------------------------- */
.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  min-width: 600px;
}
.table th, .table td {
  padding: .85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.table th {
  color: var(--muted);
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--bg-soft);
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--bg-soft); }
.table .actions { display: flex; gap: .4rem; justify-content: flex-end; }

.chip {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 600;
  text-transform: capitalize;
  background: var(--bg-soft); color: var(--muted);
}
.chip-ok   { background: #e0f6ea; color: #0a8a55; }
.chip-info { background: #e7ebff; color: var(--primary); }
.chip-warn { background: #fff4d6; color: #a66a00; }
.chip-err  { background: #fdecea; color: #c0392b; }
.chip-muted{ background: var(--bg-soft); color: var(--muted); }
.chip--ok,    .chip.chip--ok    { background: #e0f6ea; color: #0a8a55; }
.chip--info,  .chip.chip--info  { background: #e7ebff; color: var(--primary); }
.chip--accent,.chip.chip--accent { background: #ede9fe; color: #6d28d9; }
.chip--warn,  .chip.chip--warn  { background: #fff4d6; color: #a66a00; }
.chip--err,   .chip.chip--err   { background: #fdecea; color: #c0392b; }
.chip--muted, .chip.chip--muted { background: var(--bg-soft); color: var(--muted); }

/* -------------------------- List rows ------------------------------- */
.list { display: flex; flex-direction: column; }
.list-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem;
  padding: .8rem .9rem;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  text-decoration: none;
  transition: background .15s;
}
.list-row:last-child { border-bottom: 0; }
a.list-row:hover { background: var(--bg-soft); }
.list-row strong { display: block; font-size: .9rem; }
.list-row .hint  { display: block; font-size: .78rem; color: var(--muted); margin-top: .15rem; }

/* -------------------------- Inputs shared --------------------------- */
.input-with-prefix {
  position: relative;
  display: flex; align-items: center;
}
.input-with-prefix .prefix {
  position: absolute; left: .8rem;
  color: var(--muted); font-weight: 600;
  pointer-events: none;
}
.input-with-prefix .input { padding-left: 1.6rem !important; width: 100%; }

/* -------------------------- Form (shared) --------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.form-field { display: flex; flex-direction: column; gap: .4rem; }
.form-field label {
  font-weight: 600; color: var(--ink); font-size: .9rem;
}
.form-field .hint { color: var(--muted); font-size: .8rem; }
.form-field input,
.form-field textarea,
.form-field select {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: .7rem .9rem;
  font-size: .95rem;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  transition: all .2s var(--ease);
  width: 100%;
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26, 44, 138, .1);
}
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea { border-color: #d93025; background: #fff6f5; }
.form-field .error { color: #d93025; font-size: .82rem; min-height: 0; }
.form-field.wide { grid-column: 1 / -1; }

.file-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: 1.5rem 1rem;
  border: 2px dashed var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: .9rem;
  cursor: pointer;
  text-align: center;
  transition: all .2s var(--ease);
}
.file-drop:hover { border-color: var(--primary); background: var(--primary-100); color: var(--primary); }
.file-drop input { display: none; }
.file-drop strong { color: var(--ink); font-weight: 600; }
.file-preview {
  margin-top: .5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: .5rem;
}
.file-preview img, .file-preview .file-chip {
  width: 100%; height: 80px; object-fit: cover;
  border-radius: 8px; background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; text-align: center; color: var(--muted); padding: .4rem;
}

/* -------------------------- Product cards --------------------------- */
.pg-head {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.25rem;
  align-items: start;
}
.pg-head--enhanced { grid-template-columns: 280px 1fr; }
.pg-head .filters {
  background: #fff; border: 1px solid var(--border);
  border-radius: 16px; padding: 1.1rem;
  display: flex; flex-direction: column; gap: 1.1rem;
  position: sticky; top: calc(var(--dash-top) + 1rem);
}
.pg-head .filters h4 { margin: 0 0 .25rem; font-size: .95rem; }
.pg-filter-group { display: flex; flex-direction: column; gap: .3rem; }
.pg-filter-group label { font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

/* Enhanced filter rail */
.filters--pretty {
  box-shadow: 0 4px 14px rgba(0, 0, 0, .04);
}
.filters-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: .4rem; border-bottom: 1px solid var(--border); }
.filters-head h4 { margin: 0 !important; font-size: 1rem !important; font-weight: 700; color: var(--ink); }
.filter-section { display: flex; flex-direction: column; gap: .6rem; }
.filter-section h5 {
  margin: 0;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  font-weight: 700;
  display: flex; align-items: center; justify-content: space-between;
}
.filter-section h5 .hint { text-transform: none; letter-spacing: 0; color: var(--primary); font-weight: 600; font-size: .78rem; }

/* Category pills list */
.cat-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.cat-pill {
  width: 100%;
  display: flex; align-items: center; gap: .65rem;
  padding: .55rem .7rem;
  background: var(--bg-soft);
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: .88rem;
  color: var(--ink);
  cursor: pointer;
  transition: all .15s;
  text-align: left;
}
.cat-pill:hover { border-color: var(--border); background: #fff; }
.cat-pill.active {
  background: var(--primary-100);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}
.cat-pill .cat-ic {
  width: 28px; height: 28px;
  background: #fff;
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--primary);
  flex-shrink: 0;
}
.cat-pill .cat-ic svg { width: 18px; height: 18px; }
.cat-pill.active .cat-ic { background: #fff; }
.cat-pill .cat-name { flex: 1; }
.cat-pill .cat-count {
  font-size: .72rem; font-weight: 700;
  color: var(--muted);
  background: #fff;
  padding: 2px 8px; border-radius: 999px;
  min-width: 26px; text-align: center;
}
.cat-pill.active .cat-count { background: var(--primary); color: #fff; }

/* Price range */
.price-range {
  position: relative;
  height: 28px;
  padding: 0 2px;
}
.range-track {
  position: absolute; left: 0; right: 0; top: 50%;
  transform: translateY(-50%);
  height: 4px; background: var(--border); border-radius: 999px;
}
.range-fill {
  position: absolute; top: 0; bottom: 0;
  background: var(--primary);
  border-radius: 999px;
}
.price-range input[type="range"] {
  position: absolute;
  left: 0; right: 0;
  top: 50%; transform: translateY(-50%);
  appearance: none;
  background: transparent;
  pointer-events: none;
  width: 100%;
  height: 28px;
  margin: 0;
}
.price-range input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  pointer-events: auto;
  cursor: pointer;
}
.price-range input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  pointer-events: auto;
  cursor: pointer;
}
.price-inputs {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: .4rem; align-items: center;
}
.price-inputs .input-with-prefix .input {
  padding: .55rem .6rem .55rem 1.4rem !important;
  font-size: .85rem;
}

/* Switches */
.switch-row {
  display: flex; align-items: center; gap: .6rem;
  font-size: .88rem; color: var(--ink);
  cursor: pointer;
}
.switch-row input {
  appearance: none;
  width: 34px; height: 20px;
  background: var(--border); border-radius: 999px;
  position: relative; cursor: pointer;
  transition: background .15s;
}
.switch-row input::after {
  content: '';
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff;
  position: absolute; top: 3px; left: 3px;
  transition: transform .15s;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.switch-row input:checked { background: var(--primary); }
.switch-row input:checked::after { transform: translateX(14px); }

/* Search hero */
.search-hero { }
.search-hero-inner {
  position: relative;
  display: flex; align-items: center; gap: .7rem;
  padding: .9rem 1.2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .04);
}
.search-hero-inner svg { color: var(--muted); }
.search-hero-inner input {
  flex: 1; border: 0; outline: 0;
  font-size: 1rem;
  background: transparent;
}
.search-suggest {
  position: absolute;
  left: 0; right: 0; top: calc(100% + 6px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .1);
  padding: .4rem;
  z-index: 20;
  max-height: 320px;
  overflow-y: auto;
}
.search-suggest-item {
  display: flex; align-items: center; gap: .7rem;
  padding: .5rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  transition: background .15s;
}
.search-suggest-item:hover { background: var(--primary-100); }
.search-suggest-item img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.search-suggest-item strong { display: block; font-size: .88rem; }
.search-suggest-item .hint { font-size: .78rem; }

/* Sort pills */
.sort-pills {
  display: flex; gap: .35rem; flex-wrap: wrap;
  background: var(--bg-soft);
  padding: 4px;
  border-radius: 999px;
}
.sort-pill {
  border: 0;
  padding: .4rem .9rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: all .15s;
}
.sort-pill:hover { color: var(--ink); }
.sort-pill.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}

.pg-list { min-width: 0; display: flex; flex-direction: column; gap: 1rem; }
.pg-list-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}

.pg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.product-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.product-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-tile .ptile-img {
  aspect-ratio: 1 / 1;
  background: var(--bg-soft) center/cover no-repeat;
  position: relative;
}
.ptile-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-soft);
}
.ptile-img-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s var(--ease);
}
.product-tile:hover .ptile-img-el { transform: scale(1.05); }
.ptile-badge {
  position: absolute;
  top: 10px; left: 10px;
  padding: 3px 10px; border-radius: 999px;
  font-size: .7rem; font-weight: 700;
  background: var(--primary); color: #fff;
}
.ptile-badge.err { background: #c0392b; }
.ptile-body { padding: .85rem 1rem; display: flex; flex-direction: column; gap: .35rem; }
.ptile-body h4 { margin: 0; font-size: .95rem; }
.ptile-row {
  display: flex; align-items: center; justify-content: space-between;
}
.ptile-price { font-weight: 700; color: var(--ink); }
.ptile-price .old { color: var(--muted); text-decoration: line-through; font-weight: 500; margin-left: .35rem; font-size: .82rem; }
.ptile-foot {
  display: flex; gap: .5rem; padding: 0 1rem 1rem;
}
.ptile-foot .btn { flex: 1; padding: .55rem .8rem; font-size: .85rem; }
.ptile-img-link, .ptile-title-link { text-decoration: none; color: inherit; display: block; }
.ptile-title-link h4 { transition: color .15s; }
.ptile-title-link:hover h4 { color: var(--primary); }
.product-tile--skeleton { pointer-events: none; }
.ptile-skel {
  aspect-ratio: 1/1;
  background: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 45%, #e2e8f0 90%);
  background-size: 200% 100%;
  animation: vtu-shimmer 1.1s ease-in-out infinite;
}
.ptile-skel-line {
  height: 12px; border-radius: 6px; margin-bottom: .5rem;
  background: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 45%, #e2e8f0 90%);
  background-size: 200% 100%;
  animation: vtu-shimmer 1.1s ease-in-out infinite;
}
.ptile-skel-line--sm { width: 55%; height: 10px; }

.catalog-filter-toggle { display: none; }
.filters-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .45);
  z-index: 35;
}
.filters-apply-mobile { display: none; width: 100%; margin-top: .5rem; }
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .75rem;
}
.filter-chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: .35rem .75rem;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  color: var(--primary);
}
.filter-chip:hover { background: var(--primary-100); }
.filter-chip--muted { color: var(--muted); }
.catalog-empty { grid-column: 1 / -1; }

.dash-link { position: relative; }
.dash-link-badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e23d3d;
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dash-link.active .dash-link-badge { background: #fff; color: var(--primary); }

/* -------------------------- Cart / orders --------------------------- */
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.cart-item:last-child { border-bottom: 0; }
.cart-item img { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; background: var(--bg-soft); }
.cart-item-img-link { display: block; flex-shrink: 0; }
.cart-item-img-link img { transition: transform .15s; }
.cart-item-img-link:hover img { transform: scale(1.03); }
.cart-item-info { min-width: 0; }
.cart-item-name {
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  display: block;
  margin-bottom: .15rem;
}
.cart-item-name:hover { color: var(--primary); }
.cart-item.is-updating { opacity: .55; pointer-events: none; }
.cart-item-price { font-weight: 700; white-space: nowrap; }
.cart-empty-state { text-align: center; padding: 2.5rem 1.5rem !important; }
.cart-empty-icon { font-size: 2.5rem; margin-bottom: .5rem; }
.cart-card { padding: 0 1.25rem; }
.cart-summary .summary-checkout { width: 100%; margin-top: .5rem; }
.summary-note { margin: 0; font-size: .78rem; line-height: 1.4; }
.qty-stepper {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--bg-soft); border-radius: 999px; padding: 4px;
}
.qty-stepper button {
  width: 28px; height: 28px; border-radius: 50%;
  border: 0; background: #fff; cursor: pointer;
  font-size: 1rem; font-weight: 700; color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.qty-stepper button:disabled { opacity: .4; cursor: not-allowed; }

.summary {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem;
  display: flex; flex-direction: column; gap: .6rem;
  position: sticky; top: calc(var(--dash-top) + 1rem);
}
.summary h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.summary-row { display: flex; justify-content: space-between; font-size: .92rem; color: var(--muted); }
.summary-row.total { color: var(--ink); font-weight: 700; font-size: 1.05rem; border-top: 1px solid var(--line); padding-top: .75rem; margin-top: .25rem; }

/* -------------------------- Timeline -------------------------------- */
.timeline { display: flex; flex-direction: column; gap: 0; position: relative; margin-left: 12px; }
.timeline-item {
  position: relative;
  padding: 0 0 1.1rem 1.75rem;
  border-left: 2px solid var(--line);
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -8px; top: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--line);
}
.timeline-item.done::before { background: var(--mint); border-color: #0a8a55; }
.timeline-item.current::before { background: var(--primary); border-color: var(--primary-700); box-shadow: 0 0 0 4px var(--primary-100); }
.timeline-item:last-child { border-left-color: transparent; }
.timeline-item strong { display: block; color: var(--ink); font-size: .92rem; text-transform: capitalize; }
.timeline-item span { color: var(--muted); font-size: .82rem; }

/* -------------------------- Stepper (signup) ------------------------ */
.stepper {
  display: flex; align-items: center; justify-content: center;
  gap: .75rem; margin-bottom: 1.25rem; flex-wrap: wrap;
}
.step {
  display: flex; align-items: center; gap: .5rem;
  color: var(--muted); font-weight: 600; font-size: .9rem;
}
.step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-soft); border: 2px solid var(--line);
  color: var(--muted);
  display: inline-grid; place-items: center;
  font-weight: 700; font-size: .85rem;
}
.step.active .step-num { background: var(--primary); color: #fff; border-color: var(--primary); }
.step.done .step-num { background: var(--mint); color: #fff; border-color: #0a8a55; }
.step.done, .step.active { color: var(--ink); }
.step-sep { width: 28px; height: 2px; background: var(--line); }
.step-sep.done { background: var(--mint); }

.role-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: .5rem 0;
}
.role-card {
  background: #fff; border: 2px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem;
  text-align: center; cursor: pointer;
  transition: all .2s var(--ease);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
}
.role-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.role-card.selected {
  border-color: var(--primary);
  background: var(--primary-100);
  box-shadow: 0 0 0 4px rgba(26, 44, 138, .08);
}
.role-card h4 { margin: 0; }
.role-card p { margin: 0; color: var(--muted); font-size: .85rem; }
.role-card-ic {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--primary-100); color: var(--primary);
  display: grid; place-items: center;
}

/* -------------------------- Kanban (delivery) ----------------------- */
.kanban {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.kanban-col {
  background: var(--bg-soft);
  border-radius: 16px;
  padding: 0;
  min-height: 260px;
  display: flex; flex-direction: column; gap: .7rem;
  border-top: 4px solid var(--primary);
  overflow: hidden;
}
.kanban-col--info   { border-top-color: #3b82f6; }
.kanban-col--warn   { border-top-color: #f59e0b; }
.kanban-col--accent { border-top-color: #8b5cf6; }
.kanban-col--ok     { border-top-color: #10b981; }

.kanban-col-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1rem .5rem;
}
.kanban-col-head strong { font-size: .95rem; color: var(--ink); }
.kanban-count {
  background: rgba(0, 0, 0, .06);
  color: var(--muted);
  font-weight: 700;
  padding: .15rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
}
.kanban-empty {
  color: var(--muted);
  text-align: center;
  padding: 2rem 1rem;
  font-size: .85rem;
  font-style: italic;
}

.kanban-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: .9rem;
  margin: 0 .75rem;
  font-size: .85rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
  display: flex; flex-direction: column; gap: .6rem;
  transition: transform .15s, box-shadow .15s;
}
.kanban-card:last-child { margin-bottom: .9rem; }
.kanban-card:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, .07); }
.kanban-card-top {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .95rem;
}
.kanban-card-top strong { color: var(--ink); font-weight: 700; font-size: 1rem; }

.kanban-route { display: flex; flex-direction: column; gap: .4rem; }
.kanban-route-row {
  display: flex; gap: .6rem; align-items: flex-start;
}
.kanban-route-row .hint { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }
.kanban-route-row p { margin: .1rem 0 0; color: var(--ink); font-weight: 500; font-size: .85rem; line-height: 1.3; }
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  margin-top: .3rem; flex-shrink: 0;
  position: relative;
}
.dot--start { background: var(--primary); }
.dot--end   { background: #e23d3d; }
.dot--start::after {
  content: ''; position: absolute;
  left: 50%; top: 100%;
  width: 2px; height: 20px;
  background: var(--border);
  transform: translateX(-50%);
}

.kanban-meta {
  display: flex; gap: .8rem; align-items: center; flex-wrap: wrap;
  color: var(--muted);
  font-size: .78rem;
  padding-top: .3rem;
  border-top: 1px dashed var(--border);
}
.kanban-meta span { display: inline-flex; gap: .3rem; align-items: center; }
.kanban-payout { margin-left: auto; color: var(--primary) !important; font-weight: 700; font-size: .9rem !important; }

.kanban-buyer {
  display: flex; gap: .6rem; align-items: center;
  padding-top: .3rem;
  border-top: 1px dashed var(--border);
}
.kanban-buyer-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  color: #fff; font-weight: 700;
  display: grid; place-items: center; font-size: .82rem;
}
.kanban-buyer strong { display: block; font-size: .85rem; }
.kanban-buyer .hint { font-size: .75rem; }
.kanban-buyer a.hint { color: var(--primary); text-decoration: none; }
.kanban-buyer a.hint:hover { text-decoration: underline; }

.kanban-act { display: flex; gap: .4rem; }
.kanban-act .btn { flex: 1; }

/* -------------------------- Confirmation modal ---------------------- */
.update-modal {
  position: fixed;
  inset: 0;
  display: grid; place-items: center;
  background: rgba(17, 24, 39, .5);
  backdrop-filter: blur(3px);
  z-index: 900;
  padding: 1rem;
}
.update-modal[hidden] { display: none !important; }
.update-modal-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.5rem;
  width: 100%; max-width: 420px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, .25);
  animation: modalIn .25s var(--ease);
}
.update-modal-card h3 { margin: 0 0 .3rem; color: var(--ink); font-size: 1.2rem; }
.update-modal-card .hint { margin: 0 0 1rem; }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.code-input {
  text-transform: uppercase;
  letter-spacing: .4rem;
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  padding: .9rem .6rem !important;
  margin-bottom: 1rem;
}
.form-actions {
  display: flex; gap: .6rem; justify-content: flex-end;
}

.page-head-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.back-link {
  display: inline-flex; gap: .4rem; align-items: center;
  text-decoration: none;
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: .5rem;
}
.back-link:hover { color: var(--primary); }

/* Pickup-code banner */
.pickup-banner {
  display: flex; align-items: center; gap: 1rem;
  justify-content: space-between; flex-wrap: wrap;
  background: linear-gradient(135deg, #fff8e6 0%, #fff3d1 100%);
  border-color: #f2c94c !important;
}
.pickup-banner strong { color: #8a6d00; font-size: 1rem; }
.pickup-banner p.hint { color: #a8841e; margin: .2rem 0 0; }
.pickup-code-big {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: .3rem;
  background: #fff;
  padding: .6rem 1.4rem;
  border-radius: 12px;
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
  border: 2px dashed #f2c94c;
}

/* Banner preview for vendor settings */
.banner-preview {
  width: 100%;
  aspect-ratio: 3 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-soft);
}
.banner-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Sparkline */
.spark-wrap { padding: .5rem .25rem 0; }
.spark-wrap svg { width: 100%; height: 160px; display: block; }
.spark-legend {
  display: flex; gap: 1rem; justify-content: center;
  padding: .5rem 0 .25rem;
  font-size: .78rem;
  color: var(--muted);
}
.spark-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.spark-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

/* Document preview grid */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .8rem;
  margin-top: .6rem;
}
.doc-tile {
  background: var(--bg-soft);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.doc-tile img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  background: #eee;
}
.doc-tile-label {
  padding: .5rem .7rem;
  font-size: .78rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.doc-tile a.view-doc {
  display: block; padding: .4rem .7rem .65rem;
  color: var(--primary); font-weight: 600;
  font-size: .8rem; text-decoration: none;
}
.doc-tile a.view-doc:hover { text-decoration: underline; }

.doc-tile--empty {
  border-style: dashed;
  background: #fff;
}
.doc-tile-placeholder {
  width: 100%; aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8; background: var(--bg-soft);
}
.doc-tile--broken .doc-tile-placeholder,
.doc-tile--broken img { display: none; }

/* Drawer */
.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(17, 24, 39, .4);
  z-index: 900;
  animation: fadeIn .2s;
}
.drawer-backdrop[hidden] { display: none; }
.drawer-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(560px, 100vw);
  background: #fff;
  z-index: 901;
  box-shadow: -16px 0 40px rgba(0, 0, 0, .15);
  overflow-y: auto;
  padding: 1.25rem 1.5rem 2rem;
  animation: drawerIn .3s var(--ease);
}
.drawer-panel[hidden] { display: none; }
@keyframes drawerIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.drawer-close {
  position: absolute; top: .75rem; right: .75rem;
  border: 0; background: transparent; cursor: pointer;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--muted);
}
.drawer-close:hover { background: var(--bg-soft); color: var(--ink); }

/* -------------------------- Toast ----------------------------------- */
.toast-host {
  position: fixed;
  bottom: 1.25rem; right: 1.25rem;
  display: flex; flex-direction: column; gap: .5rem;
  z-index: 1000;
}
.toast {
  background: var(--ink);
  color: #fff;
  padding: .75rem 1rem;
  border-radius: 10px;
  min-width: 220px;
  max-width: 360px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateX(20px);
  transition: all .25s var(--ease);
  font-size: .9rem;
}
.toast.show { opacity: 1; transform: translateX(0); }
.toast-success { background: #0a8a55; }
.toast-error   { background: #c0392b; }

/* -------------------------- Modal ----------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 16, 48, .55);
  display: flex; align-items: center; justify-content: center;
  z-index: 1100;
  opacity: 0; transition: opacity .2s var(--ease);
  padding: 1rem;
}
.modal-backdrop.open { opacity: 1; }
.modal-card {
  background: #fff;
  border-radius: var(--radius);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform .25s var(--ease);
}
.modal-card--wide {
  max-width: min(96vw, 760px);
}
.modal-backdrop.open .modal-card { transform: translateY(0); }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--line);
}
.modal-head h3 { margin: 0; font-size: 1.1rem; }
.modal-close { border: 0; background: none; font-size: 1.4rem; cursor: pointer; color: var(--muted); }
.modal-body { padding: 1.25rem; }
.modal-foot { display: flex; justify-content: flex-end; gap: .5rem; padding: 1rem 1.25rem; border-top: 1px solid var(--line); }

/* -------------------------- Spinner --------------------------------- */
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* -------------------------- Empty state ----------------------------- */
.empty {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--muted);
  line-height: 1.45;
}
.empty h4 { color: var(--ink); margin-bottom: .3rem; }
.empty strong { color: var(--ink); display: inline-block; margin-bottom: .25rem; }
.empty .hint { display: inline-block; margin: .1rem 0; }
.empty .btn { margin-top: .6rem; }
td.empty { padding: 1.75rem 1rem; }

/* -------------------------- Layouts --------------------------------- */
.two-col {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--dash-gap);
  align-items: start;
}

/* -------------------------- Responsive ------------------------------ */
@media (max-width: 1024px) {
  :root { --dash-side: 220px; }
  .pg-head { grid-template-columns: 1fr; }
  .pg-head .filters { position: static; }
  .two-col { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 60px 1fr auto; row-gap: .5rem; }
  .cart-item img { width: 60px; height: 60px; }
  .cart-item .qty-stepper,
  .cart-item .cart-item-price,
  .cart-item .cart-item-remove { grid-column: 2 / 4; }
}

@media (max-width: 720px) {
  .dash-shell { grid-template-columns: 1fr; }
  .dash-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 260px; z-index: 40;
    transform: translateX(-100%);
    transition: transform .25s var(--ease);
  }
  .dash-shell.sidebar-open .dash-sidebar { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .dash-hamburger { display: flex; }
  .dash-search { max-width: none; }
  .dash-main { padding: 1rem; }
  .dash-user-meta { display: none; }
}

/* ==========================================================================
   Forgot-password / OTP / password strength
   ========================================================================== */
.reset-steps {
  display: flex; align-items: center; justify-content: center;
  gap: .5rem; margin: 0 0 1.25rem; padding: 0; list-style: none;
}
.rs-step {
  display: flex; flex-direction: column; align-items: center; gap: .25rem;
  color: var(--muted); font-size: .8rem; font-weight: 500;
}
.rs-step span {
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #eef2f7; color: var(--muted);
  font-weight: 700; border: 2px solid transparent;
  transition: all .2s ease;
}
.rs-step.active span { background: var(--primary); color: #fff; box-shadow: 0 0 0 4px rgba(0, 120, 77, .12); }
.rs-step.done span    { background: #d1fae5; color: #065f46; }
.rs-step.done span::before { content: "\2713"; font-size: .95rem; }
.rs-step.done span > * { display: none; }
.rs-step.active small { color: var(--fg); font-weight: 600; }
.rs-sep { width: 48px; height: 2px; background: #e5e7eb; border-radius: 2px; }

.otp-input {
  letter-spacing: .65em;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding-left: .8em;
}

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 2.5rem; }
.pw-toggle {
  position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
  background: transparent; border: 0; padding: .35rem .5rem; cursor: pointer;
  color: var(--muted); border-radius: 6px;
}
.pw-toggle:hover { background: #f1f5f9; color: var(--fg); }
.pw-toggle.is-on  { color: var(--primary); }

.pw-strength { margin-top: -.4rem; margin-bottom: .6rem; }
.pw-strength-bar {
  width: 100%; height: 6px; background: #eef2f7; border-radius: 999px; overflow: hidden;
}
.pw-strength-fill {
  height: 100%; width: 0%;
  background: #ef4444; border-radius: 999px;
  transition: width .25s ease, background .25s ease;
}
.pw-strength-fill[data-level="2"] { background: #f59e0b; }
.pw-strength-fill[data-level="3"] { background: #10b981; }
.pw-strength-fill[data-level="4"] { background: #059669; }
.pw-strength small { display: block; margin-top: .25rem; text-align: right; }

/* ==========================================================================
   Dropzone (vendor product images)
   ========================================================================== */
.dropzone {
  position: relative;
  border: 2px dashed #cbd5e1;
  background: #fafbfc;
  border-radius: 14px;
  padding: 1.4rem 1rem;
  text-align: center;
  cursor: pointer;
  color: var(--muted);
  transition: border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.dropzone:hover,
.dropzone:focus-visible {
  border-color: var(--primary);
  background: var(--primary-100);
  color: var(--fg);
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 120, 77, .08);
}
.dropzone.is-drag {
  border-color: var(--primary);
  background: var(--primary-100);
  color: var(--primary);
  transform: translateY(-1px);
}
.dropzone.has-items { padding: .9rem 1rem; }
.dropzone-inner {
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
}
.dropzone-inner svg { color: var(--primary); }

.dz-grid {
  margin-top: .75rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: .65rem;
}
.dz-tile {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 4 / 3;
  display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.dz-tile:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.dz-tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  flex: 1;
  min-height: 0;
}
.dz-tile-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding: .3rem .5rem;
  font-size: .7rem;
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.dz-tile-pos { font-weight: 700; color: var(--fg); }
.dz-tile-tag {
  background: #eef2f7; border-radius: 999px; padding: 1px 8px; font-weight: 600;
}
.dz-tile.is-done .dz-tile-tag { background: #d1fae5; color: #065f46; }
.dz-tile.is-failed .dz-tile-tag { background: #fee2e2; color: #991b1b; }
.dz-tile-remove {
  position: absolute; top: 6px; right: 6px;
  background: rgba(17, 24, 39, .75); color: #fff;
  border: 0; border-radius: 50%;
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.dz-tile-remove:hover { background: #111827; transform: scale(1.08); }

.dz-tile-progress {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; background: transparent;
}
.dz-tile-progress-fill {
  height: 100%; width: 0%;
  background: var(--primary);
  transition: width .25s ease;
}
.dz-tile.is-uploading { opacity: .75; }
.dz-tile.is-failed .dz-tile-progress-fill { background: #ef4444; }

/* ==========================================================================
   Wallet card (customer / vendor / delivery / admin)
   ========================================================================== */
.wallet-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  color: #fff;
  border: 0;
  position: relative;
  overflow: hidden;
}
.wallet-card::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,.12), transparent 70%);
  pointer-events: none;
}
.wallet-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1.25rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.wallet-block { display: flex; flex-direction: column; gap: .25rem; }
.wallet-block-label { opacity: .8; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
.wallet-block-amount {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1.1;
}
.wallet-block-amount--muted { opacity: .85; font-size: 1.9rem; }
.wallet-card-actions {
  display: flex; gap: .5rem; align-items: center;
}
.wallet-card-actions .btn-primary { background: #fff; color: var(--primary); border-color: #fff; }
.wallet-card-actions .btn-primary:hover { background: #f3f4f6; }
.wallet-card-actions .btn-outline {
  background: transparent; border-color: rgba(255,255,255,.6); color: #fff;
}
.wallet-card-actions .btn-outline:hover { background: rgba(255,255,255,.12); }
.wallet-note {
  margin: .9rem 0 0;
  font-size: .83rem;
  opacity: .85;
  position: relative;
  z-index: 1;
}
.wallet-note:empty { display: none; }
.chip-warn { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }

.wallet-total-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .75rem;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  color: #fff;
  font-size: .85rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.wallet-total-label { opacity: .8; text-transform: uppercase; letter-spacing: .06em; font-size: .7rem; font-weight: 600; }
.wallet-total-chip strong { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: .95rem; }

/* -------------------------- Wallet fund (Duplo VA) -------------------- */
.wallet-fund-card .card-head { margin-bottom: .5rem; }
.wallet-va-panel {
  background: linear-gradient(135deg, #f0f4ff 0%, #f8fafc 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
}
.wallet-va-panel--single {
  background: #fffbeb;
  border-color: #fde68a;
}
.wallet-va-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, .06);
}
.wallet-va-row:last-of-type { border-bottom: none; }
.wallet-va-row--accent { padding: .75rem 0; }
.wallet-va-label {
  font-size: .82rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.wallet-va-copy {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.wallet-va-number {
  font-family: 'Poppins', ui-monospace, monospace;
  font-size: 1.35rem;
  letter-spacing: .06em;
  color: var(--primary);
}
.wallet-va-note {
  margin: .85rem 0 0;
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.5;
}
.wallet-verify-block {
  margin-top: .5rem;
}

/* -------------------------- Bank picker (withdraw) -------------------- */
.bank-picker { position: relative; }
.bank-picker-status {
  margin: .35rem 0 .45rem;
  font-size: .82rem;
}
.bank-picker-list {
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.bank-picker-list[hidden] { display: none !important; }
.bank-picker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  width: 100%;
  padding: .65rem .85rem;
  border: none;
  border-bottom: 1px solid var(--line);
  background: #fff;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: background .15s var(--ease);
}
.bank-picker-item:last-child { border-bottom: none; }
.bank-picker-item:hover,
.bank-picker-item:focus {
  background: #f8fafc;
  outline: none;
}
.bank-picker-name { font-weight: 600; color: var(--ink); }
.bank-picker-code {
  font-size: .78rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.bank-picker-empty,
.bank-picker-more {
  padding: .75rem .85rem;
  font-size: .85rem;
  color: var(--muted);
}
.bank-picker-empty .btn { margin-top: .5rem; }

.wallet-fund-extra {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  margin-bottom: 1rem;
  background: #fff;
}
.wallet-fund-extra summary {
  cursor: pointer;
  font-weight: 600;
  font-size: .9rem;
  color: var(--primary);
  list-style: none;
}
.wallet-fund-extra summary::-webkit-details-marker { display: none; }
.wallet-fund-extra-body { margin-top: .75rem; }
.wallet-fund-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .75rem;
}
.wallet-sync-status {
  margin: .35rem 0 0;
  font-size: .82rem;
}
.wallet-verify-details {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: .5rem;
}
.wallet-verify-details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: .9rem;
  color: var(--primary);
  list-style: none;
}
.wallet-verify-details summary::-webkit-details-marker { display: none; }
.wallet-verify-block { margin-top: .65rem; }
.wallet-verify-row {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .65rem;
}
.wallet-verify-row .input { flex: 1; min-width: 200px; }

/* -------------------------- Payment / withdraw modal ------------------ */
.pay-modal {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .06);
}
.pay-modal-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .9rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem 1rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(99, 102, 241, .04) 60%, rgba(255,255,255,0));
  border-bottom: 1px solid rgba(15, 23, 42, .06);
}
.pay-modal-icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #fff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .28);
}
.pay-modal-icon--alt {
  background: linear-gradient(135deg, #10b981, #0ea5e9);
  box-shadow: 0 8px 18px rgba(16, 185, 129, .28);
}
.pay-modal-head h3 { margin: 0 0 .2rem; font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.pay-modal-head .hint { margin: 0; font-size: .82rem; line-height: 1.4; }
.pay-modal-close {
  background: transparent; border: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  color: var(--muted);
  font-size: 1.5rem; line-height: 1;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.pay-modal-close:hover { background: rgba(15, 23, 42, .06); color: var(--ink); }

.pay-form { padding: 1.1rem 1.25rem 1.25rem; }
.pay-form .form-label {
  font-size: .78rem; font-weight: 600;
  color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: .45rem; display: block;
}

/* Large hero amount input */
.amount-input-wrap {
  position: relative;
  display: flex; align-items: center;
  background: #fafbfc;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: .85rem 1rem;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.amount-input-wrap:focus-within {
  border-color: var(--primary, #2563eb);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}
.amount-currency {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--muted);
  margin-right: .5rem;
  line-height: 1;
}
.amount-input-wrap:focus-within .amount-currency { color: var(--ink); }
.amount-input {
  flex: 1;
  border: 0; outline: none; background: transparent;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--ink);
  padding: 0;
  letter-spacing: -.01em;
  min-width: 0;
}
.amount-input::placeholder { color: #cbd5e1; font-weight: 600; }
/* Kill native number spinners */
.amount-input::-webkit-outer-spin-button,
.amount-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.amount-input[type=number] { -moz-appearance: textfield; appearance: textfield; }

.amount-hint {
  font-size: .76rem; color: var(--muted);
  margin: .5rem .25rem 0;
}

.amount-chips {
  display: flex; flex-wrap: wrap; gap: .45rem;
  margin: .9rem 0 .25rem;
}
.amount-chip {
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--fg, var(--ink));
  padding: .45rem .85rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600; font-size: .82rem;
  transition: all .15s ease;
}
.amount-chip:hover {
  border-color: var(--primary, #2563eb);
  color: var(--primary, #2563eb);
  transform: translateY(-1px);
}
.amount-chip.is-active {
  background: var(--primary, #2563eb);
  border-color: var(--primary, #2563eb);
  color: #fff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, .25);
}

.pay-actions {
  display: flex; gap: .6rem;
  margin-top: 1.15rem;
  align-items: center;
}
.pay-actions .btn-ghost { padding: .7rem 1rem; }
.pay-actions .btn-block {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .8rem 1rem;
  font-weight: 600;
  border-radius: 12px;
}
.pay-actions .btn-block svg { opacity: .9; }

.pay-trust {
  margin-top: .9rem;
  display: flex; align-items: center; justify-content: center;
  gap: .4rem;
  font-size: .75rem;
  color: var(--muted);
  padding: .55rem .75rem;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px dashed rgba(15, 23, 42, .08);
}
.pay-trust svg { color: #10b981; }
.pay-trust strong { color: var(--ink); font-weight: 700; }

@media (max-width: 520px) {
  .pay-modal-head { padding: 1rem; gap: .7rem; }
  .pay-modal-icon { width: 38px; height: 38px; border-radius: 10px; }
  .pay-form { padding: 1rem; }
  .amount-input, .amount-currency { font-size: 1.35rem; }
  .pay-actions { flex-direction: column-reverse; align-items: stretch; }
  .pay-actions .btn-ghost { width: 100%; }
}

.update-modal-card--wide { max-width: 560px; }
.update-modal-card--wide .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
}
.update-modal-card--wide .form-field.wide { grid-column: 1 / -1; }

/* Withdrawal status chips use existing chip-* palette:
   - pending -> chip-warn
   - success -> chip-ok (green)
   - failed  -> chip-err (red)
   UI.statusChip already maps these. */
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--bg-soft);
  padding: .08rem .35rem;
  border-radius: 4px;
  font-size: .82rem;
}
@media (max-width: 720px) {
  .wallet-card-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .wallet-card-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: .6rem;
  }
  .wallet-block-amount { font-size: 2rem; }
  .wallet-block-amount--muted { font-size: 1.6rem; }
}

/* ==========================================================================
   Mobile responsiveness pass (tablet → large phone → small phone)
   Applies to every dashboard page: admin, vendor, delivery, customer app.
   ========================================================================== */

/* --- Tablet (<= 1024px) --------------------------------------------- */
@media (max-width: 1024px) {
  .kpi-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .dash-main { padding: 1.25rem; }
  .page-head h1 { font-size: 1.4rem; }
  .form-grid { grid-template-columns: 1fr 1fr; }
}

/* --- Small tablet / large phone (<= 720px) -------------------------- */
@media (max-width: 720px) {
  html, body { -webkit-text-size-adjust: 100%; }
  body { min-width: 320px; }

  .dash-main { padding: 1rem .85rem 1.5rem; gap: 1rem; }

  /* Topbar: hide the wide search field, keep logo + hamburger + bell + avatar */
  .dash-topbar { padding: 0 .85rem; gap: .6rem; }
  .dash-search { display: none; }
  .dash-bell { width: 38px; height: 38px; }
  .dash-user-meta { display: none; }

  /* Sidebar overlay backdrop */
  .dash-shell.sidebar-open::before {
    content: '';
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, .45);
    z-index: 39;
    animation: fadeBackdrop .2s var(--ease) both;
  }
  @keyframes fadeBackdrop { from { opacity: 0; } to { opacity: 1; } }

  /* Page head stacks the title and actions */
  .page-head {
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
  }
  .page-head h1 { font-size: 1.3rem; }
  .page-head-actions {
    display: flex; flex-wrap: wrap; gap: .5rem;
    width: 100%;
  }
  .page-head-actions .btn { flex: 1 1 auto; justify-content: center; }
  .page-head-actions .btn:only-child { flex: 1 1 100%; }

  /* Catalog: mobile filter drawer */
  .catalog-filter-toggle { display: inline-flex; }
  .filters-backdrop { display: block; }
  .pg-head--enhanced .filters {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: min(300px, 88vw);
    z-index: 45;
    transform: translateX(-105%);
    transition: transform .25s var(--ease);
    overflow-y: auto;
    max-height: 100vh;
    border-radius: 0 16px 16px 0;
    box-shadow: var(--shadow-lg);
  }
  .pg-head--enhanced .filters.filters--open { transform: translateX(0); }
  .filters-apply-mobile { display: inline-flex; }
  body.filters-open { overflow: hidden; }
  .pg-list-head { flex-direction: column; align-items: stretch; }
  .sort-pills { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
  .pg-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .75rem; }

  /* Cart mobile layout */
  .cart-item {
    grid-template-columns: 64px 1fr auto;
    grid-template-rows: auto auto;
    gap: .65rem .75rem;
    padding: .85rem 0;
  }
  .cart-item-img-link { grid-row: 1 / 3; }
  .cart-item-info { grid-column: 2; }
  .cart-item-remove { grid-column: 3; grid-row: 1; align-self: start; }
  .qty-stepper { grid-column: 2; justify-self: start; }
  .cart-item-price { grid-column: 3; grid-row: 2; align-self: end; }
  .summary { position: static; }

  /* Cards get cosier padding */
  .card { padding: 1rem; border-radius: 14px; }
  .card-head { flex-direction: column; align-items: flex-start; gap: .4rem; }
  .card-head h3 { font-size: 1.05rem; }

  /* KPI grid: two columns on large phones */
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .kpi { padding: .9rem; }
  .kpi-value { font-size: 1.4rem; }

  /* Tables: horizontally scrollable with a soft shadow hint */
  .table-wrap {
    position: relative;
    border-radius: 12px;
    -webkit-overflow-scrolling: touch;
  }
  .table-wrap::after {
    content: '';
    position: absolute; top: 0; right: 0; bottom: 0;
    width: 22px;
    pointer-events: none;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,.85));
    opacity: .6;
  }
  .table { min-width: 640px; font-size: .88rem; }
  .table th, .table td { padding: .7rem .65rem; white-space: nowrap; }
  .table td:first-child, .table th:first-child { position: sticky; left: 0; background: #fff; z-index: 1; }

  /* Forms stack */
  .form-grid { grid-template-columns: 1fr; gap: .75rem; }
  .form-actions { flex-direction: column-reverse; align-items: stretch; gap: .5rem; }
  .form-actions .btn { width: 100%; }
  .input, select.input, textarea.input { font-size: 16px; } /* prevents iOS zoom */

  /* Two-column generic layout */
  .two-col { grid-template-columns: 1fr; gap: 1rem; }
  .route-grid-two { grid-template-columns: 1fr; }

  /* Modals fit the viewport */
  .update-modal { padding: 1rem; }
  .update-modal-card,
  .update-modal-card--wide {
    max-width: 100%;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
  }

  /* Bell dropdown */
  .dash-bell-dropdown {
    right: -60px;
    width: min(320px, calc(100vw - 1rem));
  }
  .dash-bell-list { max-height: 60vh; }

  /* Page-head-actions buttons look bigger on touch */
  .btn { min-height: 40px; }
  .btn-sm { min-height: 34px; }

  /* Cart item layout already adjusted at 1024px — refine at 720px */
  .cart-item { padding: .85rem; }
  .cart-item img { width: 56px; height: 56px; }

  /* Order detail / summary cards */
  .order-items .order-item { grid-template-columns: 56px 1fr; gap: .65rem; }
  .order-items .order-item img { width: 56px; height: 56px; }
  .order-items .order-item .qty,
  .order-items .order-item .price { grid-column: 2; }

  /* Kanban: scroll horizontally instead of cramming */
  .kanban {
    display: flex !important;
    gap: .75rem;
    overflow-x: auto;
    padding-bottom: .5rem;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .kanban-col {
    flex: 0 0 85%;
    scroll-snap-align: start;
    min-width: 0;
  }

  /* Reset-password stepper — tighter on phones */
  .reset-steps { gap: .25rem; }
  .rs-sep { width: 28px; }
  .rs-step { font-size: .7rem; }
  .rs-step span { width: 26px; height: 26px; font-size: .85rem; }
  .otp-input { font-size: 1.2rem; letter-spacing: .45em; }

  /* Wallet actions wrap neatly */
  .wallet-card { padding: 1.15rem; }
  .wallet-card-actions .btn { flex: 1; min-width: 120px; }
  .wallet-total-chip { order: 3; }

  /* Chips can get crowded; allow wrap on filter rows */
  .chip-row, .filter-pills { flex-wrap: wrap; }
}

/* --- Small phone (<= 480px) ----------------------------------------- */
@media (max-width: 480px) {
  .dash-main { padding: .75rem .65rem 1.25rem; }
  .dash-topbar { height: 56px; padding: 0 .65rem; }
  .dash-hamburger { padding: 4px; }

  .page-head h1 { font-size: 1.15rem; }
  .page-head .hint { font-size: .85rem; }

  .kpi-grid { grid-template-columns: 1fr; }
  .kpi { padding: .85rem; }

  .card { padding: .85rem; border-radius: 12px; }

  .amount-input, .amount-currency { font-size: 1.3rem; }
  .amount-chips { gap: .35rem; }
  .amount-chip { padding: .4rem .65rem; font-size: .78rem; }

  /* Modal header on tiny screens */
  .pay-modal-head { padding: .85rem .85rem .75rem; gap: .55rem; }
  .pay-modal-icon { width: 36px; height: 36px; }
  .pay-modal-head h3 { font-size: 1rem; }
  .pay-modal-head .hint { font-size: .78rem; }
  .pay-form { padding: .85rem; }

  /* Signup / signin tighten */
  .auth-card { padding: 1.25rem 1rem; }
  .auth-form { padding: 1rem .85rem; }
  .auth-title { font-size: 1.3rem; }

  /* Stepper: hide sep lines on very small screens and drop labels */
  .rs-sep { width: 16px; }
  .rs-step small { display: none; }

  /* Wallet block amounts */
  .wallet-block-amount { font-size: 1.7rem; }
  .wallet-block-amount--muted { font-size: 1.4rem; }

  /* Buttons text-size */
  .btn { padding: .55rem .9rem; font-size: .88rem; }

  /* Kanban columns take full viewport on tiny screens */
  .kanban-col { flex: 0 0 92%; }
}

/* -------------------------- Delivery assignment route maps ------------- */
.route-maps-card .card-head.route-maps-head {
  flex-wrap: wrap;
  gap: .65rem;
  align-items: flex-start;
  justify-content: space-between;
}
.route-dir-actions {
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}
.route-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--dash-gap, 1.25rem);
  align-items: start;
}
.route-point-card {
  background: var(--bg-soft, #f8fafc);
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 12px;
  padding: 1rem;
}
.route-embed-wrap {
  margin-top: .5rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line, #e5e7eb);
  background: #e5e7eb;
  min-height: 220px;
}
.route-embed {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}

/* -------------------------- Order ops (logistics thread) -------------- */
.order-ops-thread {
  max-height: min(52vh, 440px);
  overflow-y: auto;
  margin-bottom: 1rem;
  padding: .35rem 0;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 10px;
  background: var(--bg-soft, #f8fafc);
}
.order-ops-msg {
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--line, #e5e7eb);
}
.order-ops-msg:last-child { border-bottom: 0; }
.order-ops-msg-meta { font-size: .82rem; margin-bottom: .35rem; }
.order-ops-msg-body {
  font-size: .93rem;
  line-height: 1.45;
  word-break: break-word;
}
.order-ops-msg--admin { border-left: 3px solid var(--primary, #2563eb); padding-left: calc(1rem - 3px); }
.order-ops-msg--vendor { border-left: 3px solid #0d9488; padding-left: calc(1rem - 3px); }
.order-ops-msg--delivery { border-left: 3px solid #d97706; padding-left: calc(1rem - 3px); }
.order-ops-composer-wrap { margin-top: .25rem; }
.order-ops-composer { resize: vertical; min-height: 88px; }
.order-ops-composer-actions { margin-top: .5rem; }

/* -------------------------- VTU (bills & catalog UX) ------------------ */
.vtu-shell { max-width: 960px; margin: 0 auto; }
body[data-page="vtu"] .page-head.vtu-page-head { margin-bottom: .5rem; }
.vtu-page-head-lead { max-width: 42rem; line-height: 1.5; }
.vtu-page-head-actions { align-items: center; }

.vtu-hero {
  border-radius: 16px;
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 48%, #1e1b4b 100%);
  color: #e2e8f0;
  box-shadow: 0 12px 40px rgba(15, 23, 42, .18);
  position: relative;
  overflow: hidden;
}
.vtu-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 100% 0%, rgba(99, 102, 241, .35), transparent 55%);
  pointer-events: none;
}
.vtu-hero-inner { position: relative; z-index: 1; }
.vtu-wallet-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem .75rem;
  margin-bottom: .85rem;
}
.vtu-wallet-strip-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.vtu-wallet-strip-amount { font-size: 1.65rem; font-weight: 800; font-family: Poppins, Inter, sans-serif; color: #fff; letter-spacing: -.02em; }
.vtu-wallet-strip-hint { font-size: .8rem; opacity: .75; width: 100%; margin: 0; }
.vtu-wallet-topup {
  font-size: .78rem;
  font-weight: 700;
  color: #a5f3fc;
  text-decoration: none;
  padding: .2rem .55rem;
  border-radius: 999px;
  border: 1px solid rgba(165, 243, 252, .35);
  transition: background .15s, color .15s;
}
.vtu-wallet-topup:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.vtu-limits-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .65rem;
  margin-bottom: .85rem;
  padding: .55rem .7rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: .76rem;
}
.vtu-limit-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .5rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, .35);
  color: #e2e8f0;
}
.vtu-limit-pill strong { color: #fff; font-weight: 700; }
.vtu-trust-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .9rem;
  font-size: .82rem;
}
.vtu-trust-item { display: flex; align-items: center; gap: .35rem; opacity: .92; }
.vtu-trust-ic {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  font-size: .65rem;
  font-weight: 800;
  color: #a5f3fc;
}

.vtu-stepper {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: 14px;
  border: 1px solid var(--line, #e5e7eb);
  overflow: hidden;
  background: #fff;
}
.vtu-step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .75rem .85rem;
  position: relative;
  min-height: 3.25rem;
}
.vtu-step + .vtu-step { border-left: 1px solid var(--line, #e5e7eb); }
.vtu-step-num {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  font-size: .82rem;
  font-weight: 800;
  background: var(--bg-soft, #f1f5f9);
  color: var(--muted, #64748b);
  flex-shrink: 0;
}
.vtu-step-text { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.vtu-step-title { font-weight: 700; font-size: .88rem; color: var(--text); }
.vtu-step-sub { font-size: .72rem; color: var(--muted, #64748b); }
.vtu-step--done .vtu-step-num {
  background: #d1fae5;
  color: #047857;
}
.vtu-step--done .vtu-step-title { color: #047857; }
.vtu-step--current {
  background: linear-gradient(180deg, rgba(37, 99, 235, .06), rgba(37, 99, 235, .02));
}
.vtu-step--current .vtu-step-num {
  background: var(--primary, #2563eb);
  color: #fff;
}
.vtu-step--current .vtu-step-title { color: var(--primary, #2563eb); }

.vtu-card { border-radius: 16px; box-shadow: 0 1px 3px rgba(15, 23, 42, .06); }
.vtu-card--catalog { margin-bottom: 1rem; }
.vtu-card-head { align-items: flex-start; }
.vtu-card-head-sub { margin: .2rem 0 0; max-width: 36rem; line-height: 1.45; }
.vtu-card--await .vtu-form-layout { opacity: .72; }

.vtu-catalog-toolbar { width: 100%; max-width: 280px; }
@media (min-width: 720px) {
  .vtu-card-head { flex-wrap: nowrap; justify-content: space-between; align-items: center; }
  .vtu-catalog-toolbar { max-width: 320px; }
}
.vtu-search-wrap { position: relative; }
.vtu-search-ic {
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted, #94a3b8);
  pointer-events: none;
}
.vtu-search-input { padding-left: 2.35rem; border-radius: 12px; }

.vtu-section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: 1rem;
}
.vtu-tab {
  border: 1px solid var(--line, #e5e7eb);
  background: #fff;
  padding: .5rem .75rem;
  border-radius: 12px;
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.vtu-tab-icon { font-size: 1rem; line-height: 1; }
.vtu-tab-count {
  font-size: .72rem;
  font-weight: 700;
  padding: .12rem .4rem;
  border-radius: 999px;
  background: var(--bg-soft, #f1f5f9);
  color: var(--muted, #64748b);
}
.vtu-tab--active .vtu-tab-count { background: rgba(255, 255, 255, .2); color: #fff; }
.vtu-tab:hover { border-color: var(--primary); color: var(--primary); }
.vtu-tab--active {
  background: var(--primary, #2563eb);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(37, 99, 235, .3);
}

.vtu-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: .7rem;
}
@keyframes vtu-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.vtu-skeleton-card {
  border-radius: 14px;
  border: 1px solid var(--line, #e5e7eb);
  padding: 1rem;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  background: var(--bg-soft, #f8fafc);
}
.vtu-skeleton-line {
  display: block;
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 40%, #e2e8f0 80%);
  background-size: 200% 100%;
  animation: vtu-shimmer 1.2s ease-in-out infinite;
}
.vtu-skeleton-line--lg { width: 72%; }
.vtu-skeleton-line--sm { width: 45%; height: 8px; }

.vtu-service-card {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  text-align: left;
  padding: .85rem .95rem;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .18s, box-shadow .18s, transform .12s;
}
.vtu-service-card:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(15, 23, 42, .08);
  transform: translateY(-1px);
}
.vtu-service-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.vtu-service-card--selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .18);
  background: linear-gradient(135deg, #fff 0%, #eff6ff 100%);
}
.vtu-service-card-icon {
  font-size: 1.35rem;
  line-height: 1;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: var(--bg-soft, #f1f5f9);
  flex-shrink: 0;
}
.vtu-service-card--selected .vtu-service-card-icon { background: #dbeafe; }
.vtu-service-card-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.vtu-service-card-title { font-size: .9rem; font-weight: 700; line-height: 1.25; color: var(--text); }
.vtu-service-card-id {
  font-size: .72rem;
  word-break: break-all;
  color: var(--muted, #64748b);
  font-family: ui-monospace, monospace;
}
.vtu-service-card-chev {
  align-self: center;
  color: var(--muted, #94a3b8);
  font-size: 1rem;
  font-weight: 600;
  flex-shrink: 0;
}
.vtu-service-card--selected .vtu-service-card-chev { color: var(--primary); }

.vtu-empty-msg, .vtu-inline-err { margin: .75rem 0 0; font-size: .88rem; }
.vtu-inline-err { color: #b91c1c; }

.vtu-form-layout {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}
.vtu-form-section {
  padding: 1rem 1.05rem;
  border-radius: 14px;
  background: var(--bg-soft, #f8fafc);
  border: 1px solid var(--line, #e5e7eb);
}
.vtu-form-section--advanced { background: #fff; }
.vtu-form-section-title {
  margin: 0 0 .75rem;
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted, #64748b);
}
.vtu-field-hint { margin: .35rem 0 0; font-size: .8rem; }
.vtu-plan-price { font-weight: 600; color: #1d4ed8; }
.vtu-quick-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .55rem;
}
.vtu-quick-amt {
  border: 1px solid var(--line, #e5e7eb);
  background: #fff;
  padding: .35rem .65rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.vtu-quick-amt:hover { border-color: var(--primary); color: var(--primary); }
.vtu-quick-amt--active {
  background: var(--primary, #2563eb);
  border-color: var(--primary);
  color: #fff;
}
.vtu-charge-preview {
  margin-top: .85rem;
  padding: .85rem 1rem;
  border-radius: 12px;
  border: 1px solid #bfdbfe;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem .65rem;
}
.vtu-charge-preview-label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #64748b;
  width: 100%;
}
.vtu-charge-preview-amount {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: Poppins, Inter, sans-serif;
  color: #1d4ed8;
  letter-spacing: -.02em;
}
.vtu-charge-preview-note { font-size: .78rem; color: #64748b; width: 100%; }
.vtu-charge-preview--low {
  border-color: #fecaca;
  background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%);
}
.vtu-charge-preview--low .vtu-charge-preview-amount { color: #b91c1c; }
.vtu-input-accent:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }

.vtu-selected-pill {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 600;
  font-size: .86rem;
}
.vtu-inline-code {
  font-size: .8rem;
  padding: .1rem .35rem;
  border-radius: 6px;
  background: var(--bg-soft, #f1f5f9);
  font-family: ui-monospace, monospace;
}

.vtu-verify-slot { margin-top: 1rem; min-height: 0; }
.vtu-alert {
  border-radius: 12px;
  padding: .85rem 1rem;
  border: 1px solid transparent;
}
.vtu-alert-text { margin: .35rem 0 0; font-size: .88rem; line-height: 1.45; }
.vtu-alert--success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}
.vtu-alert--error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
.vtu-alert--pending {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
  margin-top: 1rem;
}
.vtu-pre--tight {
  margin: .5rem 0 0;
  max-height: 160px;
  font-size: .75rem;
}

.vtu-actions-bar {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line, #e5e7eb);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.vtu-actions-copy strong { display: block; font-size: .95rem; margin-bottom: .15rem; }
.vtu-actions-btns { display: flex; flex-wrap: wrap; gap: .5rem; }
.vtu-actions-btns .btn:disabled { opacity: .48; cursor: not-allowed; }

.vtu-result-card { margin-top: 1rem; border: 2px solid var(--line, #e5e7eb); }
.vtu-result-hero {
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1rem;
}
.vtu-result-hero-top { margin-bottom: .35rem; }
.vtu-result-hero-msg { margin: 0; font-size: .92rem; line-height: 1.45; opacity: .95; }
.vtu-result-hero--ok { background: linear-gradient(135deg, #ecfdf5, #d1fae5); color: #064e3b; }
.vtu-result-hero--bad { background: linear-gradient(135deg, #fef2f2, #fee2e2); color: #7f1d1d; }
.vtu-result-hero--pending { background: linear-gradient(135deg, #fffbeb, #fef3c7); color: #78350f; }

.vtu-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .65rem;
  margin-bottom: 1.1rem;
}
@media (max-width: 560px) {
  .vtu-mini-stats { grid-template-columns: 1fr; }
}
.vtu-mini-stat {
  padding: .75rem .85rem;
  border-radius: 12px;
  border: 1px solid var(--line, #e5e7eb);
  background: #fff;
}
.vtu-mini-stat-label { display: block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: .25rem; }
.vtu-mini-stat-val { font-size: 1.05rem; font-weight: 800; color: var(--text); }

.vtu-result-details-title { margin: 0 0 .65rem; font-size: .88rem; font-weight: 700; }
.vtu-dl { margin: 0; }
.vtu-dl-row {
  display: grid;
  grid-template-columns: minmax(100px, 140px) 1fr;
  gap: .5rem .75rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--line, #e5e7eb);
  font-size: .86rem;
}
.vtu-dl-row:last-child { border-bottom: 0; }
.vtu-dl-row dt { color: var(--muted); font-weight: 500; margin: 0; }
.vtu-dl-row dd { margin: 0; word-break: break-word; }

.vtu-details-more { margin-top: .75rem; font-size: .86rem; }
.vtu-details-more summary { cursor: pointer; color: var(--primary); font-weight: 600; }

.vtu-pre {
  margin: .5rem 0 0;
  padding: .75rem;
  font-size: .78rem;
  line-height: 1.45;
  overflow-x: auto;
  max-height: 260px;
  overflow-y: auto;
  background: var(--bg-soft, #f8fafc);
  border-radius: 10px;
  border: 1px solid var(--line, #e5e7eb);
}
.vtu-context-block { margin-top: .5rem; }

.modal-body .vtu-modal-summary {
  list-style: none;
  margin: 0;
  padding: 0;
}
.modal-body .vtu-modal-summary li {
  padding: .5rem 0;
  border-bottom: 1px solid var(--line, #e5e7eb);
  font-size: .9rem;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .5rem;
  align-items: baseline;
}
.modal-body .vtu-modal-summary li:last-child { border-bottom: 0; }
.modal-body .vtu-modal-k {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  min-width: 5rem;
}
.modal-body .vtu-modal-amount { font-size: 1.1rem; color: var(--primary); }
.modal-body .vtu-modal-footnote {
  margin: 1rem 0 0;
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.45;
}

.vtu-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;
}

/* VTU history page */
body[data-page="vtu-history"] .vtu-hist-hero {
  border-radius: 14px;
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
  border: 1px solid var(--line, #e5e7eb);
}
body[data-page="vtu-history"] .vtu-hist-hero p { margin: 0; max-width: 40rem; line-height: 1.5; }
.vtu-table-card .table tbody tr:hover td { background: rgba(37, 99, 235, .04); }
.vtu-skel-row td { padding: .85rem !important; }
.vtu-skel-bar {
  display: block;
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 45%, #e2e8f0 90%);
  background-size: 200% 100%;
  animation: vtu-shimmer 1.1s ease-in-out infinite;
}

.vtu-admin-kpis { margin-bottom: 0; }
.vtu-admin-settings-grid { max-width: 640px; }
body[data-page="vtu-admin"] .vtu-admin-intro { max-width: 48rem; line-height: 1.5; }
body[data-page="vtu-admin"] .vtu-admin-intro code { font-size: .78rem; }

.vtu-hist-more { padding: 0 1.25rem 1.25rem; }
.vtu-empty-state { padding: 2.5rem 1.5rem !important; vertical-align: middle; }
.vtu-empty-inner {
  max-width: 22rem;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
}
.vtu-empty-icon { font-size: 2rem; line-height: 1; margin-bottom: .25rem; opacity: .85; }

/* -------------------------- Dashboard overview polish --------------- */
.dash-welcome {
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  margin-bottom: .25rem;
  background: linear-gradient(135deg, var(--primary) 0%, #22369e 55%, #1e3a5f 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: 0 12px 36px rgba(26, 44, 138, .22);
  position: relative;
  overflow: hidden;
}
.dash-welcome::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 100% 0%, rgba(127, 200, 255, .28), transparent 60%);
  pointer-events: none;
}
.dash-welcome > * { position: relative; z-index: 1; }
.dash-welcome h2 {
  margin: 0 0 .25rem;
  font-size: 1.35rem;
  color: #fff;
  font-weight: 700;
}
.dash-welcome p { margin: 0; color: rgba(255,255,255,.82); font-size: .9rem; max-width: 36rem; }
.dash-welcome-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.dash-welcome-actions .btn-outline {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.35);
  color: #fff;
}
.dash-welcome-actions .btn-outline:hover {
  background: rgba(255,255,255,.22);
  border-color: #fff;
  color: #fff;
}
.dash-welcome-actions .btn-primary {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.dash-welcome-actions .btn-primary:hover {
  background: var(--primary-100);
  color: var(--primary-700);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .65rem;
}
.quick-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .45rem;
  padding: .9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, background .15s, transform .12s, box-shadow .15s;
}
.quick-tile:hover {
  border-color: var(--primary);
  background: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  color: var(--primary);
}
.quick-tile-ic {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--primary-100);
  color: var(--primary);
  font-size: 1.1rem;
}
.quick-tile strong { font-size: .88rem; line-height: 1.25; }
.quick-tile span.hint { font-size: .75rem; line-height: 1.3; }

.vtu-admin-shell { max-width: 1100px; }
.vtu-admin-hero {
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
  border: 1px solid var(--line);
}
.vtu-admin-hero p { margin: 0; max-width: 48rem; line-height: 1.5; }
.vtu-provider-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  padding: .65rem .85rem;
  border-radius: 10px;
  margin-bottom: .75rem;
  font-size: .9rem;
}
.vtu-provider-status--warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}
.vtu-provider-status strong { font-weight: 600; }
.vtu-admin-settings-card .form-grid { max-width: none; }
.vtu-admin-tx-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}
.vtu-admin-tx-toolbar .sort-pill { cursor: pointer; font-family: inherit; }
.vtu-admin-kpis .kpi:nth-child(5) .kpi-value,
.vtu-admin-kpis .kpi:nth-child(6) .kpi-value,
.vtu-admin-kpis .kpi:nth-child(7) .kpi-value { font-size: 1.35rem; }

.list-row {
  transition: background .15s var(--ease), border-color .15s;
}
.list-row:hover { background: var(--bg-soft); }

/* Touch-target tweaks */
@media (hover: none) and (pointer: coarse) {
  .btn, .chip, .amount-chip { min-height: 40px; }
  .dash-bell-item { padding: 1rem; }
  .table th, .table td { padding: .75rem .65rem; }
}

/* ==========================================================================
   Vendor products grid + upload form
   ========================================================================== */
.vp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
}
.vp-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.vp-empty-icon { font-size: 2.5rem; margin-bottom: .5rem; }
.vp-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.vp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.vp-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  overflow: hidden;
}
.vp-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vp-card-count {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(17,24,39,.75);
  color: #fff;
  font-size: .7rem;
  padding: 3px 8px;
  border-radius: 999px;
}
.vp-card-badge {
  position: absolute;
  top: 8px; left: 8px;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: #64748b;
  color: #fff;
}
.vp-card-badge--off { background: #94a3b8; }
.vp-card-body { padding: .9rem 1rem; flex: 1; }
.vp-card-cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: .25rem; }
.vp-card-title { margin: 0 0 .4rem; font-size: 1rem; line-height: 1.3; }
.vp-card-price { font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.vp-card-price .old { color: var(--muted); text-decoration: line-through; font-size: .85rem; margin-left: .35rem; }
.vp-card-meta {
  display: flex; flex-wrap: wrap; gap: .5rem .75rem;
  margin-top: .55rem;
  font-size: .78rem;
  color: var(--muted);
}
.vp-card-foot {
  display: flex; gap: .4rem;
  padding: .65rem 1rem 1rem;
  border-top: 1px solid var(--line);
}
.vp-card-foot .btn { flex: 1; }
.vp-del { color: #c0392b !important; }

.product-form { display: flex; flex-direction: column; gap: 1.25rem; }
.product-form-section {
  padding: 1rem;
  background: var(--bg-soft);
  border-radius: 12px;
  border: 1px solid var(--line);
}
.product-form-section--photos { background: #fff; }
.product-form-heading {
  display: flex; align-items: center; gap: .6rem;
  margin: 0 0 .85rem;
  font-size: .95rem;
}
.product-form-heading span {
  width: 1.5rem; height: 1.5rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: .75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.product-form-grid { gap: .75rem; }
.product-form-hint { margin: -.35rem 0 .75rem; }

.dropzone--product { padding: 1.6rem 1rem; }
.dropzone-icon { font-size: 1.75rem; line-height: 1; }
.dz-grid--product { margin-top: .85rem; }

.dropzone--product .dz-tile { aspect-ratio: 1; }
.dz-tile-cover {
  position: absolute;
  top: 6px; left: 6px;
  font-size: .65rem;
  font-weight: 700;
  background: rgba(0,120,77,.9);
  color: #fff;
  padding: 2px 7px;
  border-radius: 999px;
  z-index: 1;
}

/* Product detail page */
.pd-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
}
.pd-gallery { padding: 1rem; }
.pd-gallery-main {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-soft);
}
.pd-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pd-gallery-thumbs {
  display: flex;
  gap: .5rem;
  margin-top: .75rem;
  overflow-x: auto;
  padding-bottom: .25rem;
}
.pd-thumb {
  flex: 0 0 64px;
  height: 64px;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: var(--bg-soft);
}
.pd-thumb.active { border-color: var(--primary); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-info { padding: 1.25rem; }
.pd-title { margin: 0 0 .5rem; font-size: 1.5rem; }
.pd-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; }
.pd-price {
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1rem;
}
.pd-price .old { font-size: 1rem; color: var(--muted); text-decoration: line-through; margin-left: .5rem; }
.pd-desc { color: var(--muted); line-height: 1.6; margin-bottom: 1rem; }
.pd-qty { margin-bottom: 1rem; }
.pd-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.pd-actions .btn { flex: 1; min-width: 140px; }

@media (max-width: 860px) {
  .pd-layout { grid-template-columns: 1fr; }
}

/* Moderation */
.mod-layout { align-items: start; }
.mod-form { display: flex; flex-direction: column; gap: .85rem; }
.mod-search-results {
  margin-top: .5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  max-height: 200px;
  overflow-y: auto;
  background: #fff;
}
.mod-search-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .15rem;
  width: 100%;
  text-align: left;
  padding: .65rem .85rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font: inherit;
}
.mod-search-item:last-child { border-bottom: 0; }
.mod-search-item:hover,
.mod-search-item.active { background: var(--primary-100); }
.mod-selected-target {
  min-height: 2.5rem;
  padding: .65rem .75rem;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.mod-table td { vertical-align: top; }
.chip-ok { background: #d1fae5; color: #065f46; }
.chip-err { background: #fee2e2; color: #991b1b; }
.chip-warn { background: #fef3c7; color: #92400e; }

.order-list-cell { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.order-list-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; background: var(--bg-soft); flex-shrink: 0; }
.tracking-map-wrap { padding: .25rem 0; }
.accept-by-banner { font-size: .9rem; }

/* Finance portal */
.finance-period-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.finance-period-pills { margin: 0; }
.finance-period-custom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}
.finance-period-custom .hint { font-size: .8rem; }
.finance-flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .75rem;
}
.finance-flow-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .85rem 1rem;
  background: var(--bg-soft);
}
.finance-flow-route {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem;
  font-size: .85rem;
  font-weight: 600;
  text-transform: capitalize;
}
.finance-flow-node {
  padding: .2rem .5rem;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
}
.finance-flow-arrow { color: var(--muted); font-weight: 400; }
.finance-flow-label { margin: .35rem 0 0; font-size: .8rem; }
.finance-flow-amount { display: block; margin-top: .35rem; font-size: 1.05rem; }
.finance-recon-summary { display: flex; flex-direction: column; gap: 0; }
.finance-check-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.finance-check-item {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .65rem .85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: .9rem;
}
.finance-check-item--ok { border-color: #a7f3d0; background: #ecfdf5; }
.finance-check-item--warn { border-color: #fde68a; background: #fffbeb; }
.finance-check-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: .75rem;
}
.finance-check-item--ok .finance-check-icon { background: #10b981; color: #fff; }
.finance-check-item--warn .finance-check-icon { background: #f59e0b; color: #fff; }
.finance-recon-note {
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
}
.admin-finance-snapshot .kpi-grid { margin-bottom: 0; }

.announce-banners-wrap { margin-bottom: 1rem; display: flex; flex-direction: column; gap: .75rem; }
.announce-banner { border-left: 4px solid var(--primary, #0a8a55); }
.announce-banner-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.ticket-msg { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.ticket-msg-head { display: flex; flex-wrap: wrap; gap: .35rem .75rem; align-items: baseline; margin-bottom: .35rem; }
