:root {
  /* merchant accent — JS overrides --brand / --accent from saved config */
  --brand: #e41e2b;
  --accent: #fcd116;

  /* UberEats-style theme (never overridden by JS) */
  --ink: #0d0d0d;
  --ink-2: #545454;
  --muted: #757575;
  --line: #e8e8e8;
  --line-2: #eeeeee;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f6f6;
  --green: #06c167;
  --green-dark: #049a51;

  --radius: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 24px 60px -18px rgba(0, 0, 0, 0.35);
  --maxw: 1000px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  padding-bottom: 118px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ---------------- Header ---------------- */
header {
  background: var(--surface);
  color: var(--ink);
  padding: 0.85rem 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
}
.header-container {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.brand-group { display: flex; align-items: center; gap: 0.9rem; }
.brand-logo {
  height: 52px;
  width: 52px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.brand-title {
  font-family: 'Archivo Black', 'Arial Black', sans-serif;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  line-height: 1.05;
  color: var(--ink);
}
.brand-tagline { font-size: 0.82rem; font-weight: 500; margin-top: 0.2rem; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 0.6rem; }
.badge-dochat {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.badge-dochat .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(6, 193, 103, 0.18); }
.btn-admin-toggle {
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease;
}
.btn-admin-toggle:hover { background: #2b2b2b; }
.btn-admin-toggle:active { transform: scale(0.97); }

/* ---------------- Category nav ---------------- */
.controls-bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1rem;
  position: sticky;
  top: 84px;
  z-index: 90;
  background: var(--bg);
}
.category-group {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.category-group::-webkit-scrollbar { display: none; }
.btn-cat {
  background: var(--surface-2);
  border: none;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.9rem;
  transition: background 0.18s ease, color 0.18s ease;
}
.btn-cat:hover { background: #ececec; }
.btn-cat.active { background: var(--ink); color: #fff; }

/* ---------------- Sections ---------------- */
.section-title-box { display: flex; align-items: center; gap: 0.65rem; margin: 1.75rem 0 1rem; }
.section-title-box h2 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.4px; }
.badge-fire {
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 800;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.4px;
}

.view-section { max-width: var(--maxw); margin: 0 auto; padding: 0 1rem; }

.horizontal-scroll-grid {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.25rem 0.15rem 1.1rem;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.horizontal-scroll-grid::-webkit-scrollbar { display: none; }
.horizontal-scroll-grid .product-card { min-width: 250px; max-width: 260px; flex-shrink: 0; }

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

/* ---------------- Product card (UberEats item) ---------------- */
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.product-card { cursor: pointer; }
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.product-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.7rem;
  overflow: hidden;
}
.product-img { max-height: 88%; max-width: 88%; object-fit: contain; transition: transform 0.3s ease; }
.product-card:hover .product-img { transform: scale(1.05); }
.product-card.is-out .product-img { opacity: 0.4; }

.badges-container { position: absolute; top: 0.6rem; left: 0.6rem; z-index: 2; }
.dynamic-badge {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.24rem 0.5rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: var(--shadow-sm);
  background: #fff;
  color: var(--ink);
}
.dynamic-badge.special { background: var(--accent); color: #000; }
.dynamic-badge.popular { background: var(--ink); color: #fff; }

.prod-info { padding: 0 0.2rem 0.15rem; }
.prod-title { font-size: 0.98rem; font-weight: 700; line-height: 1.3; margin-bottom: 0.15rem; }
.prod-category { font-size: 0.7rem; text-transform: uppercase; color: var(--muted); font-weight: 700; letter-spacing: 0.4px; margin-bottom: 0.35rem; }
.price-box { display: flex; align-items: baseline; gap: 0.5rem; }
.prod-price { font-size: 1.05rem; font-weight: 800; color: var(--ink); }
.prod-service-hint { font-size: 0.82rem; font-weight: 700; color: var(--green-dark, #06c167); }
.old-price { font-size: 0.85rem; text-decoration: line-through; color: var(--muted); }
.stock-note { font-size: 0.72rem; font-weight: 700; margin-left: auto; }
.stock-note.low { color: #b45309; }
.stock-note.out { color: #d11a2a; }

/* Floating circular + add button (UberEats style) */
.btn-add {
  position: absolute;
  bottom: 0.55rem;
  right: 0.55rem;
  width: 38px;
  height: 38px;
  padding: 0;
  font-size: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 3;
  transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
}
/* Perfectly centered plus glyph drawn with pseudo-elements.
   inset:0 + margin:auto centres a fixed-size box exactly, avoiding the
   sub-pixel rounding of translate(-50%,-50%) that offsets the bars on mobile. */
.btn-add::before,
.btn-add::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: currentColor;
  border-radius: 2px;
}
.btn-add::before { width: 14px; height: 2px; }
.btn-add::after { width: 2px; height: 14px; }
.btn-add:hover { background: var(--ink); color: #fff; transform: scale(1.08); }
.btn-add:active { transform: scale(0.94); }
.btn-add:disabled { background: var(--surface-2); color: var(--muted); box-shadow: none; cursor: not-allowed; }

/* Login modal submit */
.btn-login {
  width: 100%;
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 0.85rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.1s ease;
}
.btn-login:hover { background: #2b2b2b; }
.btn-login:active { transform: scale(0.98); }

.auth-toggle {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.auth-toggle a {
  color: var(--green, #06c167);
  font-weight: 700;
  text-decoration: none;
  margin-left: 0.3rem;
}
.auth-toggle a:hover { text-decoration: underline; }

/* ---------------- Catalog list rows (UberEats menu item) ---------------- */
.catalog-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 2.5rem;
  border-top: 1px solid var(--line);
}
.product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.1rem 0.3rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}
.product-row { cursor: pointer; }
.product-row:hover { background: var(--surface-2); }
.row-info { flex: 1; min-width: 0; }
.row-badges { margin-bottom: 0.45rem; }
.row-badges .dynamic-badge { box-shadow: none; position: static; }
.row-title { font-size: 1.02rem; font-weight: 700; line-height: 1.3; margin-bottom: 0.2rem; }
.row-desc { font-size: 0.85rem; color: var(--muted); font-weight: 500; margin-bottom: 0.5rem; text-transform: capitalize; }
.row-meta { display: flex; align-items: baseline; gap: 0.6rem; }
.row-meta .prod-price { font-size: 0.98rem; }
.row-meta .stock-note { margin-left: 0; }

.row-img-wrapper {
  position: relative;
  flex-shrink: 0;
  width: 128px;
  height: 128px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.row-img { max-width: 84%; max-height: 84%; object-fit: contain; transition: transform 0.3s ease; }
.product-row:hover .row-img { transform: scale(1.05); }
.product-row.is-out .row-img { opacity: 0.4; }

/* ---------------- Admin panel ---------------- */
.admin-panel { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: -1.5rem -1.5rem 1.5rem;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--ink);
  color: #fff;
}
.admin-header h2 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.3px; }
.admin-header .muted { color: rgba(255, 255, 255, 0.65); }
.muted { font-size: 0.9rem; color: var(--muted); }
.admin-header-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.btn-header { border: none; padding: 0.6rem 1.05rem; border-radius: 999px; font-weight: 700; font-size: 0.87rem; cursor: pointer; transition: all 0.16s ease; white-space: nowrap; }
.btn-header.ghost { background: rgba(255, 255, 255, 0.14); color: #fff; }
.btn-header.ghost:hover { background: rgba(255, 255, 255, 0.26); }
.btn-header.solid { background: var(--green); color: #fff; }
.btn-header.solid:hover { background: var(--green-dark); }

.admin-section-heading {
  margin: 2rem 0 1rem;
  font-size: 1.1rem;
  font-weight: 800;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}
.admin-sub-heading { margin-bottom: 0.6rem; color: var(--ink-2); font-weight: 700; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.kpi-card {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.kpi-card::after { content: ""; position: absolute; top: -28px; right: -28px; width: 84px; height: 84px; border-radius: 50%; background: var(--kpi-accent, var(--ink)); opacity: 0.08; }
.kpi-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.kpi-title { font-size: 0.74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 0.35rem; }
.kpi-value { font-size: 1.55rem; font-weight: 800; color: var(--ink); }

.dashboard-analytics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.1rem; margin-bottom: 2rem; }
.analytics-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.2rem; }
.analytics-title { font-size: 0.95rem; font-weight: 800; margin-bottom: 1.1rem; display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.pill { font-size: 0.66rem; color: var(--muted); background: var(--surface-2); padding: 0.2rem 0.55rem; border-radius: 999px; font-weight: 700; }

.chart-container { display: flex; align-items: flex-end; gap: 0.7rem; height: 150px; padding-top: 1rem; border-bottom: 1px solid var(--line); }
.chart-bar-wrapper { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.chart-bar { width: 100%; max-width: 32px; background: var(--green); border-radius: 6px 6px 0 0; transition: height 0.5s cubic-bezier(0.22, 1, 0.36, 1); min-height: 4px; }
.chart-label { font-size: 0.7rem; font-weight: 700; color: var(--muted); margin-top: 0.4rem; }

.category-rank-row { margin-bottom: 0.85rem; font-size: 0.85rem; }
.category-rank-row .rank-head { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 0.3rem; }
.progress-bar-bg { background: var(--surface-2); height: 9px; border-radius: 999px; width: 100%; overflow: hidden; }
.progress-bar-fill { background: var(--green); height: 100%; border-radius: 999px; transition: width 0.5s ease; }

/* ---------------- Forms ---------------- */
.form-grid,
.modal-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.form-grid { background: var(--surface-2); padding: 1.35rem; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.82rem; font-weight: 700; color: var(--ink-2); }
.form-group input, .form-group select {
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(13, 13, 13, 0.08); }
.form-group input[type=color] { padding: 0.2rem; height: 44px; cursor: pointer; }

.badges-setup { background: #fff; padding: 1.1rem; border-radius: 10px; border: 1px solid var(--line); }
.badges-setup-title { font-size: 0.9rem; font-weight: 800; margin-bottom: 0.5rem; display: block; }
.badges-setup-row { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; }
.check { font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem; }
.custom-badge-input { display: flex; align-items: center; gap: 0.5rem; flex: 1; min-width: 240px; }
.custom-badge-input span { font-size: 0.83rem; font-weight: 700; white-space: nowrap; }
.custom-badge-input input[type=text] { flex: 1; padding: 0.6rem; border: 1px solid var(--line); border-radius: 8px; }
.custom-badge-input input[type=color] { height: 42px; width: 46px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }

.btn-save {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.2s ease;
}
.btn-save:hover { background: var(--green-dark); }
.btn-save:active { transform: scale(0.98); }
.btn-save.alt { background: var(--ink); }
.btn-save.alt:hover { background: #2b2b2b; }

/* ---------------- Tables ---------------- */
.table-scroll { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.admin-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.admin-table th, .admin-table td { padding: 0.85rem 0.95rem; text-align: left; border-bottom: 1px solid var(--line); }
.admin-table th { background: var(--surface-2); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); position: sticky; top: 0; }
.admin-table tbody tr { transition: background 0.15s ease; }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: var(--surface-2); }
.admin-img-thumb { width: 46px; height: 46px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.input-stock { width: 74px; padding: 0.45rem; border: 1px solid var(--line); border-radius: 8px; font-weight: 700; }

.badge-chip { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.26rem 0.55rem; border-radius: 999px; font-size: 0.68rem; font-weight: 800; margin: 0 0.3rem 0.3rem 0; color: #000; }
.badge-chip button { background: none; border: none; color: inherit; font-weight: 900; cursor: pointer; font-size: 0.85rem; line-height: 1; }
.status-pill { background: rgba(6, 193, 103, 0.14); color: var(--green-dark); font-weight: 800; padding: 0.26rem 0.6rem; border-radius: 999px; font-size: 0.72rem; }

.row-actions { display: inline-flex; gap: 0.4rem; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: all 0.16s ease; }
.icon-btn svg { display: block; }
.icon-btn.edit { color: var(--ink); }
.icon-btn.edit:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.icon-btn.delete { color: #d11a2a; }
.icon-btn.delete:hover { background: #d11a2a; border-color: #d11a2a; color: #fff; }
.icon-btn:active { transform: scale(0.94); }
.no-badges { color: var(--muted); font-size: 0.8rem; font-style: italic; }

/* ---------------- Modals ---------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  padding: 1rem;
  animation: fade 0.15s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  background: #fff;
  padding: 1.75rem;
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
  animation: pop 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes pop { from { transform: translateY(12px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-heading { font-size: 1.3rem; font-weight: 800; margin-bottom: 1rem; }
.modal-heading.centered, .modal-sub.centered { text-align: center; }
.modal-sub { font-size: 0.86rem; color: var(--muted); margin-bottom: 1.25rem; }
.row-2 { display: flex; gap: 0.75rem; margin-bottom: 0.75rem; }
.row-2 .form-group { flex: 1; }
.modal-actions { display: flex; gap: 0.5rem; justify-content: flex-end; }
.badges-manage { background: var(--surface-2); border: 1px solid var(--line); padding: 1.1rem; border-radius: 12px; margin-bottom: 1.25rem; }
.badges-manage-col { display: flex; flex-direction: column; gap: 0.8rem; }
.custom-badge-block { border-top: 1px solid var(--line); padding-top: 0.7rem; }
.custom-badge-block > label { font-size: 0.8rem; font-weight: 700; color: var(--ink-2); display: block; margin-bottom: 0.4rem; }

.btn-ghost { background: var(--surface-2); color: var(--ink); border: none; padding: 0.75rem; border-radius: 999px; font-weight: 700; cursor: pointer; width: 100%; margin-top: 0.6rem; transition: background 0.18s ease; }
.btn-ghost:hover { background: #ececec; }
.btn-ghost.inline { width: auto; margin-top: 0; padding: 0.72rem 1.3rem; }
.flex { flex: 1; }

/* ---------------- Product detail modal ---------------- */
.product-modal-card { max-width: 460px; padding: 0; overflow: hidden; position: relative; }
.product-modal-card .product-modal-close { position: absolute; top: 0.9rem; right: 0.9rem; z-index: 5; background: #fff; box-shadow: var(--shadow-sm); }
.product-modal-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-modal-img img { max-width: 78%; max-height: 82%; object-fit: contain; }
.product-modal-body { padding: 1.4rem 1.6rem 1.6rem; }
.pm-badges { margin-bottom: 0.7rem; }
.pm-badges:empty { display: none; }
.pm-category { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted); font-weight: 700; margin-bottom: 0.3rem; }
.pm-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.4px; line-height: 1.2; margin-bottom: 0.6rem; }
.pm-price-row { display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 0.45rem; }
.pm-price-row .prod-price { font-size: 1.4rem; }
.pm-stock { font-size: 0.85rem; font-weight: 700; color: var(--green-dark); margin-bottom: 1.35rem; }
.pm-stock.out { color: #d11a2a; }
.pm-footer { display: flex; align-items: center; gap: 1rem; }
.pm-qty { display: flex; align-items: center; gap: 0.5rem; background: var(--surface-2); border-radius: 999px; padding: 0.35rem 0.45rem; }
.pm-qty .btn-qty { width: 38px; height: 38px; background: #fff; box-shadow: var(--shadow-sm); }
.pm-qty .btn-qty:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-pm-add {
  flex: 1;
  background: var(--green);
  color: #fff;
  border: none;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.1s ease;
}
.btn-pm-add:hover { background: var(--green-dark); }
.btn-pm-add:active { transform: scale(0.98); }
.btn-pm-add:disabled { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }

/* ---------------- Cart ---------------- */
.cart-modal-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 0.85rem; margin-bottom: 1rem; }
.cart-modal-head h2 { font-size: 1.3rem; font-weight: 800; }
.btn-x { position: relative; display: inline-flex; background: var(--surface-2); border: none; width: 34px; height: 34px; border-radius: 50%; font-size: 0; cursor: pointer; color: var(--ink); padding: 0; }
/* Draw the close cross with pseudo-elements so it's perfectly centred
   regardless of the font's glyph metrics. */
.btn-x::before, .btn-x::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 15px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.btn-x::before { transform: rotate(45deg); }
.btn-x::after { transform: rotate(-45deg); }
.btn-x:hover { background: #ececec; }
.cart-items { max-height: 340px; overflow-y: auto; margin-bottom: 1rem; }
.cart-modal-footer { border-top: 1px solid var(--line); padding-top: 1rem; }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.cart-total-label { font-weight: 800; font-size: 1.05rem; }
.cart-total-value { font-weight: 800; font-size: 1.45rem; color: var(--ink); }
.cart-footer-actions { display: flex; gap: 0.75rem; }

.cart-item-row { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 0; border-bottom: 1px solid var(--line); gap: 0.5rem; }
.cart-item-info { display: flex; align-items: center; gap: 0.75rem; flex: 1; }
.cart-item-img { width: 50px; height: 50px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); }
.cart-item-details { display: flex; flex-direction: column; }
.cart-item-title { font-weight: 700; font-size: 0.9rem; }
.cart-item-price { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.cart-controls { display: flex; align-items: center; gap: 0.4rem; }
.btn-qty { background: var(--surface-2); border: none; width: 32px; height: 32px; border-radius: 50%; font-weight: 900; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; }
.btn-qty:hover { background: #ececec; }
.cart-qty-val { font-weight: 800; font-size: 0.95rem; min-width: 22px; text-align: center; }
.btn-cart-remove { background: none; color: #d11a2a; border: none; padding: 0.4rem 0.5rem; border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 0.78rem; margin-left: 0.3rem; }
.btn-cart-remove:hover { background: rgba(209, 26, 42, 0.08); }
.cart-empty { text-align: center; padding: 2.5rem 0; color: var(--muted); }
.cart-empty p:first-child { font-size: 1.1rem; font-weight: 700; color: var(--ink); }

.cart-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.85rem 1.25rem;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.18);
  z-index: 200;
}
.cart-summary { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.cart-count { font-weight: 700; font-size: 1.02rem; }
.cart-sep { color: rgba(255, 255, 255, 0.35); margin: 0 0.5rem; }
.cart-total-amt { font-weight: 800; font-size: 1.25rem; color: #fff; }
.cart-actions-group { display: flex; gap: 0.65rem; align-items: center; }
.btn-view-cart {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.18s;
}
.btn-view-cart:hover { background: rgba(255, 255, 255, 0.26); }
.btn-whatsapp {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.98rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.18s ease, transform 0.1s ease;
}
.btn-whatsapp:hover { background: var(--green-dark); }
.btn-whatsapp:active { transform: scale(0.98); }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed;
  bottom: 104px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1200;
  max-width: 90vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: #d11a2a; }

/* ---------------- Store-not-found (404) ---------------- */
.not-found-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  background: var(--surface-2);
}
.not-found {
  max-width: 460px;
  width: 100%;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 3rem 2.4rem;
  box-shadow: var(--shadow-md);
  animation: pop 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.storefront-icon { display: flex; justify-content: center; margin-bottom: 1.4rem; }
.storefront-icon svg { filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.12)); }
.not-found h1 {
  font-family: 'Archivo Black', 'Arial Black', sans-serif;
  font-size: 1.9rem;
  letter-spacing: -0.5px;
  margin-bottom: 0.7rem;
}
.not-found p { color: var(--muted); font-size: 0.98rem; line-height: 1.55; margin-bottom: 1.9rem; }
.not-found .store-label { color: var(--ink); font-weight: 800; }
.btn-back {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  transition: background 0.18s ease, transform 0.1s ease;
}
.btn-back:hover { background: #2b2b2b; }
.btn-back:active { transform: scale(0.98); }
@media (max-width: 420px) {
  .not-found { padding: 2.2rem 1.4rem; }
  .not-found h1 { font-size: 1.6rem; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .controls-bar { top: 76px; }
}
@media (max-width: 680px) {
  header { padding: 0.7rem 0.9rem; }
  .header-container { gap: 0.5rem; }
  .brand-title { font-size: 1.2rem; }
  .brand-logo { height: 44px; width: 44px; }
  .badge-dochat { display: none; }
  .controls-bar { top: 70px; }
  .section-title-box h2 { font-size: 1.2rem; }
  .view-section { padding: 0 0.85rem; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .horizontal-scroll-grid .product-card { min-width: 165px; max-width: 175px; }
  .catalog-list { grid-template-columns: 1fr; column-gap: 0; }
  .product-row { gap: 0.9rem; padding: 0.9rem 0.15rem; }
  .row-img-wrapper { width: 96px; height: 96px; }
  .row-title { font-size: 0.95rem; }
  .row-desc { font-size: 0.8rem; margin-bottom: 0.4rem; }
  .btn-add { width: 32px; height: 32px; }
  .prod-title { font-size: 0.9rem; }
  .admin-panel { padding: 1.1rem; }
  .admin-header { margin: -1.1rem -1.1rem 1.2rem; padding: 1.1rem; }
  .admin-header-actions { width: 100%; }
  .btn-header { flex: 1; text-align: center; }
  .cart-summary { flex-direction: column; align-items: stretch; }
  .cart-actions-group { justify-content: space-between; }
  .btn-view-cart, .cart-actions-group .btn-whatsapp { white-space: nowrap; }
  .btn-view-cart { flex: 1; padding: 0.8rem 0.9rem; }
  .cart-actions-group .btn-whatsapp { flex: 2; padding: 0.8rem 0.9rem; font-size: 0.92rem; }
  .cart-footer-actions { flex-direction: column; }
  .modal-card { padding: 1.35rem; border-radius: 16px; }
  /* Stack the quantity stepper and Add-to-Cart button so the button text
     isn't squeezed on narrow phones. */
  .pm-footer { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .pm-qty { justify-content: center; }
  .btn-pm-add { width: 100%; }
}
@media (max-width: 420px) {
  .catalog-grid { gap: 0.7rem; }
  .btn-add { width: 34px; height: 34px; }
}

/* ---------------------------------------------------------------------------
   Merchant catalogue modal (agents curate merchant products to resell)
   --------------------------------------------------------------------------- */
.mc-search {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  background: var(--surface-2);
  margin-bottom: 1rem;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.mc-search:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
}

.merchant-catalog-list {
  max-height: 52vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0 -0.25rem;
  padding: 0 0.25rem;
}

.mc-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.mc-row:hover { border-color: #d9d9d9; box-shadow: var(--shadow-sm); }

.mc-img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
}

.mc-info { flex: 1; min-width: 0; }
.mc-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mc-meta { font-size: 0.78rem; color: var(--muted); margin-top: 0.15rem; }

.mc-toggle {
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  transition: transform 0.12s ease, background 0.16s ease, color 0.16s ease;
}
.mc-toggle:active { transform: scale(0.96); }
.mc-toggle.add { background: var(--green); color: #fff; }
.mc-toggle.add:hover { background: var(--green-dark); }
.mc-toggle.remove {
  background: var(--surface-2);
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.mc-toggle.remove:hover { background: #ececec; color: var(--ink); }

/* Agent attribution in order history + analytics */
.agent-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--green-dark);
  background: rgba(6, 193, 103, 0.14);
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
}

/* ===========================================================================
   Marketing landing — Kasi-inspired: bold, energetic, avatar-driven
   =========================================================================== */
.landing-body { padding-bottom: 0; background: var(--bg); overflow-x: hidden; }

/* Two-tone display type */
.tt-thin { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; color: var(--ink); }
.tt-bold { display: block; font-family: 'Archivo Black', sans-serif; color: var(--ink); }
.tt-bold em { font-style: normal; color: var(--green); }
.tt-mark { color: var(--green); }
.tt-mark-dark { color: var(--accent, #fcd116); }

/* Nav */
.lp-nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.lp-nav-inner { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; gap: 1.5rem; padding: 0.85rem 1.25rem; }
/*.lp-logo { font-family: 'Archivo Black', sans-serif; font-size: 1.4rem; color: var(--ink); text-decoration: none; letter-spacing: -0.5px; }*/
.lp-logo { display: inline-flex; align-items: center; line-height: 0; }
.lp-logo img { height: 32px; width: auto; display: block; }
.lp-logo span, .lp-dot-accent { color: var(--green); }
.lp-nav-links { display: flex; gap: 1.4rem; margin-left: 0.5rem; flex: 1; }
.lp-nav-links a { color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 0.88rem; transition: color 0.15s ease; }
.lp-nav-links a:hover { color: var(--ink); }
.lp-nav-actions { display: flex; gap: 0.6rem; }

/* Buttons */
.lp-btn { display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.88rem; text-decoration: none; padding: 0.62rem 1.2rem; border-radius: 999px; cursor: pointer; border: 1px solid transparent; font-family: inherit; transition: transform 0.12s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease; white-space: nowrap; }
.lp-btn:active { transform: scale(0.97); }
.lp-btn-solid { background: var(--green); color: #fff; border-color: var(--green); box-shadow: 0 6px 18px -6px rgba(6, 193, 103, 0.6); }
.lp-btn-solid:hover { background: var(--green-dark); border-color: var(--green-dark); }
.lp-btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.lp-btn-ghost:hover { border-color: var(--ink); }
.lp-btn-lg { padding: 0.9rem 1.7rem; font-size: 1rem; }

/* Hero */
.lp-hero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden;
  background:
    radial-gradient(1200px 520px at 82% -12%, rgba(6, 193, 103, 0.14), transparent 60%),
    radial-gradient(900px 440px at 4% 0%, rgba(252, 209, 22, 0.10), transparent 55%); }
.lp-hero-inner { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; padding: 4.5rem 1.25rem 3.75rem; text-align: center; }
.lp-eyebrow { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase; color: var(--green-dark); background: rgba(6, 193, 103, 0.13); padding: 0.42rem 0.9rem; border-radius: 999px; margin-bottom: 1.6rem; }
.lp-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(6, 193, 103, 0.2); }
.lp-hero-title { font-size: clamp(2.4rem, 7vw, 4.4rem); line-height: 1.02; letter-spacing: -1.8px; margin-bottom: 1.25rem; }
.lp-hero-sub { max-width: 600px; margin: 0 auto 2rem; font-size: 1.1rem; line-height: 1.6; color: var(--ink-2); }
.lp-hero-cta { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.lp-hero-stats { display: flex; gap: 2.75rem; justify-content: center; flex-wrap: wrap; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.lp-hero-stats div { display: flex; flex-direction: column; gap: 0.15rem; }
.lp-hero-stats strong { font-family: 'Archivo Black', sans-serif; font-size: 1.55rem; color: var(--ink); }
.lp-hero-stats span { font-size: 0.82rem; color: var(--muted); font-weight: 600; }

/* Scattered avatars */
.lp-orbit { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.lp-ava { position: absolute; width: 62px; height: 62px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-family: 'Archivo Black', sans-serif; font-size: 1.05rem; color: #fff; letter-spacing: 0.5px; background: linear-gradient(140deg, var(--c1), var(--c2)); box-shadow: var(--shadow-md); animation: lp-float 6s ease-in-out infinite; }
.lp-ava i.flag { position: absolute; bottom: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 3px solid #fff; background-size: cover; }
.flag.za { background: linear-gradient(180deg, #007a4d 33%, #ffb612 33% 66%, #de3831 66%); }
.flag.bw { background: linear-gradient(180deg, #6da9d2 30%, #fff 30% 40%, #000 40% 60%, #fff 60% 70%, #6da9d2 70%); }
.lp-ava.a1 { top: 14%; left: 7%; animation-delay: 0s; }
.lp-ava.a2 { top: 30%; left: 15%; animation-delay: 0.8s; transform: scale(0.85); }
.lp-ava.a3 { top: 62%; left: 9%; animation-delay: 1.6s; transform: scale(0.75); }
.lp-ava.a4 { top: 16%; right: 8%; animation-delay: 0.4s; }
.lp-ava.a5 { top: 34%; right: 15%; animation-delay: 1.2s; transform: scale(0.85); }
.lp-ava.a6 { top: 64%; right: 10%; animation-delay: 2s; transform: scale(0.78); }
@keyframes lp-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* Marquee */
.lp-marquee { background: var(--ink); color: #fff; padding: 0.9rem 0; overflow: hidden; white-space: nowrap; }
.lp-marquee-track { display: inline-flex; align-items: center; gap: 1.5rem; animation: lp-scroll 26s linear infinite; }
.lp-marquee-track span { font-family: 'Archivo Black', sans-serif; font-size: 1.05rem; letter-spacing: 0.5px; }
.lp-marquee-track span i { font-family: 'Plus Jakarta Sans', sans-serif; font-style: normal; font-weight: 600; color: rgba(255, 255, 255, 0.5); font-size: 0.9rem; margin-right: 0.35rem; }
.lp-marquee-track span.sp { color: var(--green); }
@keyframes lp-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Alternating promos */
.lp-promos { max-width: var(--maxw); margin: 0 auto; padding: 4.5rem 1.25rem; display: flex; flex-direction: column; gap: 5rem; }
.lp-promo { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.lp-promo.reverse .lp-promo-copy { order: 2; }
.lp-kicker { display: inline-block; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--green-dark); margin-bottom: 0.75rem; }
.lp-promo-copy h2 { font-family: 'Archivo Black', sans-serif; font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.1; letter-spacing: -0.8px; color: var(--ink); margin-bottom: 0.85rem; }
.lp-promo-copy p { color: var(--ink-2); font-size: 1rem; line-height: 1.6; margin-bottom: 1.3rem; }
.lp-link-btn { background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; font-weight: 800; font-size: 0.95rem; color: var(--ink); border-bottom: 2px solid var(--green); padding-bottom: 2px; transition: color 0.15s ease; }
.lp-link-btn:hover { color: var(--green-dark); }
.lp-promo-visual { display: flex; justify-content: center; }

.lp-video { width: 100%; max-width: 320px; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--bg); line-height: 0; }
.lp-video video { display: block; width: 100%; height: auto; max-height: 460px; object-fit: contain; }

/* Phone mock */
.lp-phone { width: 230px; background: var(--ink); border-radius: 34px; padding: 12px; box-shadow: var(--shadow-lg); }
.lp-phone-top { width: 42%; height: 6px; background: #3a3a3a; border-radius: 999px; margin: 4px auto 10px; }
.lp-phone-body { background: #fff; border-radius: 24px; padding: 12px; display: flex; flex-direction: column; gap: 9px; }
.lp-mini-card { display: flex; align-items: center; gap: 9px; background: var(--surface-2); border-radius: 12px; padding: 8px; }
.lp-mini-thumb { width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0; }
.lp-mini-thumb.g1 { background: linear-gradient(135deg, #ff8a3d, #ff5f6d); }
.lp-mini-thumb.g2 { background: linear-gradient(135deg, #3dd68c, #06c167); }
.lp-mini-thumb.g3 { background: linear-gradient(135deg, #5b8def, #3f5efb); }
.lp-mini-thumb.g4 { background: linear-gradient(135deg, #ffce3d, #ff9a3d); }
.lp-mini-lines { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.lp-mini-lines b { height: 8px; width: 80%; background: #dcdcdc; border-radius: 4px; }
.lp-mini-lines i { height: 7px; width: 50%; background: #ececec; border-radius: 4px; }
.lp-add { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.lp-add.on { background: var(--green); }

/* Chat mock */
.lp-chat { width: 270px; background: #e7ded5; border-radius: 22px; padding: 14px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 8px; }
.lp-chat-head { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 800; color: #4a4a4a; margin-bottom: 4px; }
.lp-chat-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.lp-bubble { max-width: 82%; font-size: 0.82rem; line-height: 1.4; padding: 8px 11px; border-radius: 14px; }
.lp-bubble.in { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; }
.lp-bubble.out { align-self: flex-end; background: #d9fdd3; border-bottom-right-radius: 4px; }
.lp-bubble.short { max-width: 60%; }

/* Earnings mock */
.lp-earn-card { width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: var(--shadow-lg); }
.lp-earn-head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 14px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.lp-earn-head span { font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.lp-earn-head b { font-family: 'Archivo Black', sans-serif; font-size: 1.5rem; color: var(--green-dark); }
.lp-earn-row { display: flex; align-items: center; gap: 11px; padding: 9px 0; }
.lp-earn-ava { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; object-fit: cover; background: var(--surface-2); display: block; }
.lp-earn-name { flex: 1; font-size: 0.85rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.lp-earn-name i { font-style: normal; font-weight: 500; font-size: 0.75rem; color: var(--muted); }
.lp-earn-row b { font-weight: 800; color: var(--ink); }

/* Generic sections */
.lp-section { max-width: var(--maxw); margin: 0 auto; padding: 4rem 1.25rem; }
.lp-section-alt { max-width: none; background: var(--surface-2); border-block: 1px solid var(--line); }
.lp-section-alt > .lp-section-head, .lp-section-alt > .lp-steps, .lp-section-alt > .lp-store-grid { max-width: var(--maxw); margin-inline: auto; }
.lp-section-head { text-align: center; margin-bottom: 2.5rem; }
.lp-section-head h2 { font-family: 'Archivo Black', sans-serif; font-size: clamp(1.7rem, 4vw, 2.5rem); letter-spacing: -1px; color: var(--ink); margin-bottom: 0.6rem; }
.lp-section-head p { color: var(--ink-2); font-size: 1rem; }

/* Steps */
.lp-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.lp-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.4rem; }
.lp-step-n { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 13px; background: var(--green); color: #fff; font-family: 'Archivo Black', sans-serif; font-size: 1.1rem; margin-bottom: 0.9rem; }
.lp-step h4 { font-size: 1.05rem; color: var(--ink); margin-bottom: 0.4rem; }
.lp-step p { font-size: 0.9rem; color: var(--ink-2); line-height: 1.55; }

/* Channels */
.lp-channel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.lp-channel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.75rem; text-align: center; transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease; }
.lp-channel:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #dcdcdc; }
.lp-channel-icon { width: 62px; height: 62px; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; border-radius: 18px; background: var(--surface-2); }
.lp-channel h3 { font-size: 1.2rem; color: var(--ink); margin-bottom: 0.5rem; }
.lp-channel p { font-size: 0.93rem; color: var(--ink-2); line-height: 1.55; }

/* Store grid */
.lp-store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.lp-store-loading { grid-column: 1 / -1; text-align: center; padding: 2rem 0; }
.lp-store-card { display: flex; align-items: center; gap: 0.9rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem; text-decoration: none; transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease; }
.lp-store-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #dcdcdc; }
.lp-store-badge { flex-shrink: 0; width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: var(--ink); color: #fff; font-family: 'Archivo Black', sans-serif; font-size: 1.2rem; }
.lp-store-body { flex: 1; min-width: 0; }
.lp-store-name { font-weight: 800; font-size: 0.95rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-store-tag { font-size: 0.8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 0.1rem; }
.lp-store-go { flex-shrink: 0; font-weight: 800; font-size: 0.82rem; color: var(--green-dark); }

/* Merchant band */
.lp-merchant-band { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 2.75rem 2.5rem; background-image: radial-gradient(600px 300px at 90% 120%, rgba(6, 193, 103, 0.25), transparent 60%); }
.lp-merchant-copy { max-width: 640px; }
.lp-card-tag { display: inline-block; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; color: #fff; background: rgba(255, 255, 255, 0.14); padding: 0.28rem 0.65rem; border-radius: 999px; margin-bottom: 1rem; }
.lp-merchant-copy h2 { font-family: 'Archivo Black', sans-serif; font-size: clamp(1.5rem, 3.5vw, 2.1rem); letter-spacing: -0.8px; margin-bottom: 0.75rem; }
.lp-merchant-copy p { color: rgba(255, 255, 255, 0.72); line-height: 1.6; margin-bottom: 1.6rem; }
.lp-merchant-band .lp-btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.lp-merchant-band .lp-btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.lp-merchant-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.75rem 2.5rem;
  background-image: radial-gradient(600px 300px at 90% 120%, rgba(6, 193, 103, 0.25), transparent 60%);
}
.lp-merchant-visual { display: flex; justify-content: center; }
.lp-merchant-visual img {
  width: 100%;
  max-width: 380px;
  height: auto;
  border-radius: var(--radius-sm);
  display: block;
}
.lp-merchant-copy { max-width: none; }
.lp-merchant-copy .lp-card-tag { color: #fff; background: rgba(255, 255, 255, 0.14); margin-bottom: 1rem; }
.lp-merchant-copy h2 { font-family: 'Archivo Black', sans-serif; font-size: clamp(1.5rem, 3.5vw, 2.1rem); letter-spacing: -0.8px; margin-bottom: 0.75rem; }
.lp-merchant-copy p { color: rgba(255, 255, 255, 0.72); line-height: 1.6; margin-bottom: 1.6rem; }
.lp-merchant-band .lp-btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.lp-merchant-band .lp-btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
/* WhatsApp widget */
.lp-wa { max-width: var(--maxw); margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.lp-wa-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; background: rgba(6, 193, 103, 0.07); border: 1px solid rgba(6, 193, 103, 0.25); border-radius: var(--radius); padding: 2.25rem 2.25rem; }
.lp-wa-inner h2 { font-family: 'Archivo Black', sans-serif; font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -0.6px; color: var(--ink); margin-bottom: 0.5rem; }
.lp-wa-inner p { color: var(--ink-2); line-height: 1.55; }
.lp-wa-widget { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.lp-wa-label { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted); margin-bottom: 0.4rem; }
.lp-wa-time { display: block; font-family: 'Archivo Black', sans-serif; font-size: 2.4rem; color: var(--green-dark); line-height: 1; margin-bottom: 1rem; }
.lp-wa-time i { font-family: 'Plus Jakarta Sans', sans-serif; font-style: normal; font-size: 0.9rem; font-weight: 700; color: var(--muted); margin-left: 0.25rem; }

/* CTA band + footer */
.lp-cta-band { text-align: center; padding: 4.75rem 1.25rem; background: var(--ink); color: #fff; background-image: radial-gradient(700px 340px at 50% -30%, rgba(6, 193, 103, 0.3), transparent 60%); }
.lp-cta-band h2 { font-family: 'Archivo Black', sans-serif; font-size: clamp(1.8rem, 4.5vw, 2.8rem); letter-spacing: -1px; margin-bottom: 0.6rem; }
.lp-cta-band p { color: rgba(255, 255, 255, 0.7); margin-bottom: 1.8rem; font-size: 1.02rem; }
.lp-footer { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; padding: 1.75rem 1.25rem; }
.lp-footer > span:first-child { font-family: 'Archivo Black', sans-serif; color: var(--ink); }

/* Landing toast (overrides base .toast opacity model) */
.landing-body .toast { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
.landing-body .toast-bad { background: #d11a2a; }

@media (max-width: 860px) {
  .lp-nav-links { display: none; }
  .lp-promo { grid-template-columns: 1fr; gap: 2rem; }
  .lp-promo.reverse .lp-promo-copy { order: 0; }
  .lp-steps { grid-template-columns: repeat(2, 1fr); }
  .lp-channel-grid { grid-template-columns: 1fr; }
  .lp-wa-inner { grid-template-columns: 1fr; }
  .lp-merchant-band { padding: 2rem 1.5rem; }
  .lp-ava.a2, .lp-ava.a3, .lp-ava.a5, .lp-ava.a6 { display: none; }
}
@media (max-width: 520px) {
  .lp-steps { grid-template-columns: 1fr; }
  .lp-hero-stats { gap: 1.5rem; }
  .lp-nav-actions [data-auth="login"] { display: none; }
  .lp-ava { display: none; }
}

/* --- Landing product carousel (pick-to-sell) --- */
.lp-pick-bar { display: flex; gap: 0.75rem; max-width: 720px; margin: 0 auto 1.75rem; }
.lp-pick-search { flex: 1; margin-bottom: 0 !important; }
.lp-pick-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 8px; border-radius: 999px; background: rgba(255,255,255,0.25); font-size: 0.72rem; font-weight: 800; }
#lp-pick-cta { flex-shrink: 0; }

.lp-carousel { display: flex; gap: 1rem; overflow-x: auto; padding: 0.5rem 0.25rem 1.25rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.lp-carousel::-webkit-scrollbar { height: 8px; }
.lp-carousel::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.lp-carousel-loading { padding: 2rem 0; width: 100%; text-align: center; }
.lp-carousel-hint { text-align: center; font-size: 0.85rem; }

.lp-prod { position: relative; flex: 0 0 190px; scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.85rem; cursor: pointer; transition: transform 0.14s ease, box-shadow 0.16s ease, border-color 0.16s ease; }
.lp-prod:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.lp-prod.picked { border-color: var(--green); box-shadow: 0 0 0 2px var(--green) inset; }
.lp-prod-flag { position: absolute; top: 0.6rem; left: 0.6rem; z-index: 2; font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.3px; color: #fff; background: var(--green); padding: 0.22rem 0.5rem; border-radius: 999px; }
.lp-prod-img { width: 100%; aspect-ratio: 1 / 1; border-radius: var(--radius-sm); background: var(--surface-2) center / cover no-repeat; margin-bottom: 0.7rem; }
.lp-prod-name { font-weight: 800; font-size: 0.9rem; color: var(--ink); line-height: 1.25; min-height: 2.3em; }
.lp-prod-meta { font-size: 0.76rem; color: var(--muted); margin: 0.15rem 0 0.7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-prod-foot { display: flex; align-items: center; justify-content: space-between; }
.lp-prod-price { font-family: 'Archivo Black', sans-serif; font-size: 0.95rem; color: var(--ink); }
.lp-prod-add { font-size: 0.78rem; font-weight: 800; color: var(--green-dark); }
.lp-prod.picked .lp-prod-add { color: var(--green-dark); }

@media (max-width: 520px) {
  .lp-pick-bar { flex-direction: column; }
  #lp-pick-cta { width: 100%; }
  .lp-prod { flex-basis: 160px; }
}

/* --- Pay for any Service (Botswana) --- */
.lp-service-band { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2.5rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2.75rem 2.5rem; box-shadow: var(--shadow-sm); }
.lp-service-copy h2 { line-height: 1.05; margin-bottom: 1rem; }
.tt-thin-inline { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 500; font-size: clamp(1.3rem, 3vw, 1.9rem); color: var(--ink-2); letter-spacing: -0.5px; }
.tt-bold-inline { font-family: 'Archivo Black', sans-serif; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--ink); letter-spacing: -1px; }
.lp-service-copy > p { color: var(--ink-2); font-size: 1rem; line-height: 1.6; margin-bottom: 1rem; max-width: 420px; }
.lp-service-note { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--muted); }
.lp-note-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

.lp-service-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.9rem; }
.lp-svc { position: relative; overflow: hidden; aspect-ratio: 1 / 1; border-radius: 20px; background: var(--b); color: var(--fg, #fff); display: flex; align-items: center; justify-content: center; text-align: center; padding: 0.4rem; box-shadow: var(--shadow-sm); transition: transform 0.16s ease, box-shadow 0.16s ease; }
.lp-svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.lp-svc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp-svc:has(img) span { display: none; }
.lp-svc span { font-family: 'Archivo Black', sans-serif; font-size: 0.82rem; letter-spacing: 0.2px; line-height: 1.1; }
.lp-svc-more { border: 1px dashed var(--line); box-shadow: none; }
.lp-svc-more span { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 0.8rem; }

@media (max-width: 860px) {
  .lp-merchant-band { grid-template-columns: 1fr; gap: 1.75rem; padding: 2rem 1.5rem; }
  .lp-service-band { grid-template-columns: 1fr; gap: 1.75rem; padding: 2rem 1.5rem; }
  .lp-service-copy > p { max-width: none; }
}
@media (max-width: 520px) {
  .lp-service-grid { grid-template-columns: repeat(4, 1fr); gap: 0.7rem; }
  .lp-svc { border-radius: 16px; }
  .lp-svc span { font-size: 0.72rem; }
}
