:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bg: #f6f7f4;
  --surface: #ffffff;
  --border: #e3e6e0;
  --text: #17221c;
  --muted: #64706a;
  --brand: #0f7b46;
  --brand-strong: #0a5f36;
  --brand-soft: #e5f4ea;
  --accent: #e7a13d;
  --danger: #c0392b;
  --danger-soft: #fbeae8;
  --warning-soft: #fdf2e0;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23, 34, 28, 0.05), 0 8px 24px rgba(23, 34, 28, 0.06);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
h1, h2, h3, p { margin: 0; }
.brand-mark { display: inline-grid; width: 40px; height: 40px; flex: none; place-items: center; border-radius: 11px; background: #e7f4eb; color: #0b7b42; }
.brand-mark svg { width: 30px; height: 30px; }.brand-mark.inverse { background: rgba(255,255,255,.14); color: white; }

/* ---------------- Login ---------------- */
.login-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: #f1f4f1;
}

.login-hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  background: #075f38;
  color: #f4fbf6;
}

.login-hero .brand { display: flex; align-items: center; gap: 12px; font-weight: 760; font-size: 18px; }
.login-hero .mark {
  display: grid; width: 42px; height: 42px; place-items: center;
  border-radius: 12px; background: #fff; color: var(--brand-strong);
  font-family: Georgia, serif; font-size: 24px; font-weight: 600;
}
.login-hero blockquote { margin: 0; max-width: 460px; }
.login-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 500; letter-spacing: -0.03em; line-height: 1.12;
}
.login-hero p { margin-top: 18px; color: #d7ece0; line-height: 1.6; max-width: 420px; }
.login-feature { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 14px; }
.login-feature li { display: flex; gap: 12px; align-items: center; color: #e6f3ec; font-size: 14px; }
.login-feature .tick {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: rgba(255, 255, 255, 0.16); display: grid; place-items: center;
}

.login-panel { display: grid; place-items: center; padding: 40px; background: #f1f4f1; }
.login-card { width: min(420px, 100%); padding: 32px; border: 1px solid #dfe5e1; border-radius: 18px; background: white; box-shadow: 0 18px 50px rgba(23,34,28,.09); }
.login-card-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 28px; }.login-card-brand b, .login-card-brand small { display: block; }.login-card-brand b { font-size: 15px; }.login-card-brand small { margin-top: 3px; color: #7b847f; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.login-access-label { display: inline-flex; margin-bottom: 10px; padding: 5px 9px; border-radius: 999px; background: #e9f5ed; color: #0b7040; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.login-card h2 { font-size: 24px; letter-spacing: -0.02em; }
.login-card .sub { color: var(--muted); margin: 8px 0 28px; font-size: 14px; }
.demo-box {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 20px; background: var(--bg); font-size: 13px; color: var(--muted);
}
.demo-box code { display: block; margin-top: 6px; font-size: 13px; color: var(--text); }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 650; margin-bottom: 7px; }
.field input {
  width: 100%; padding: 13px 14px; border: 1px solid var(--border);
  border-radius: 10px; background: #fff; font-size: 14px;
}
.field input:focus { outline: 2px solid var(--brand); border-color: transparent; }

.btn { border: none; border-radius: 10px; padding: 12px 16px; font-weight: 700; font-size: 14px; }
.btn-primary { background: var(--brand); color: #fff; width: 100%; }
.btn-primary:hover { background: var(--brand-strong); }
.btn-ghost { background: transparent; color: var(--brand-strong); border: 1px solid var(--brand-soft); }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-danger-ghost { background: transparent; color: var(--danger); border: 1px solid #f0c6c1; }
.btn-danger-ghost:hover { background: var(--danger-soft); }

.form-error { color: var(--danger); font-size: 13px; margin-top: 12px; min-height: 18px; }
.login-trust { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 23px; padding-top: 18px; border-top: 1px solid #edf0ee; color: #7a847e; font-size: 10px; }.login-trust span { color: #16a34a; font-size: 8px; }
.login-switch { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 18px; color: #69736d; font-size: 12px; }.login-switch button { border: 0; padding: 2px; background: transparent; color: #08783d; font-weight: 800; cursor: pointer; }.login-card label span { color: #8a938e; font-size: 10px; font-weight: 500; }

/* ---------------- App shell ---------------- */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }

.sidebar {
  background: #101b15; color: #d7e2db; display: flex; flex-direction: column;
  padding: 22px 16px; position: sticky; top: 0; height: 100vh;
}
.sidebar .brand { display: flex; align-items: center; gap: 12px; padding: 6px 8px 24px; font-weight: 760; color: #fff; font-size: 17px; }
.sidebar .mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-family: Georgia, serif; font-size: 20px;
}
.sidebar nav { display: grid; gap: 4px; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px;
  border: none; background: transparent; color: #b6c5bc; font-weight: 600; font-size: 14px; text-align: left;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.nav-item.active { background: var(--brand); color: #fff; }
.nav-item .ico { width: 18px; height: 18px; flex: none; }

.side-user { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 16px; }
.side-user .who { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #3c2a08;
  display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none;
}
.side-user .who b { display: block; color: #fff; font-size: 13px; }
.side-user .who span { color: #93a39a; font-size: 12px; }

.main { display: flex; flex-direction: column; min-width: 0; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px; background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.topbar h1 { font-size: 20px; letter-spacing: -0.02em; }
.topbar .crumb { color: var(--muted); font-size: 13px; }
.topbar .actions { display: flex; align-items: center; gap: 12px; }

.content { padding: 28px 32px 48px; }

/* ---------------- Dashboard cards ---------------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.stat-card .label { color: var(--muted); font-size: 13px; font-weight: 600; }
.stat-card .value { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-top: 8px; }
.stat-card .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.stat-card .value.up { color: var(--brand); }

.panels { display: grid; grid-template-columns: 1.7fr 1fr; gap: 16px; }
.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.panel h3 { font-size: 15px; margin-bottom: 16px; }

.bar-chart { display: flex; align-items: flex-end; gap: 14px; height: 200px; padding-top: 10px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; }
.bar-track { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.bar {
  width: 100%; border-radius: 8px 8px 4px 4px; background: var(--brand-soft);
  position: relative; min-height: 4px; transition: height 0.4s ease;
}
.bar.hot { background: var(--brand); }
.bar-label { font-size: 11px; color: var(--muted); }
.bar-val { font-size: 11px; font-weight: 700; color: var(--brand-strong); }

.status-list { display: grid; gap: 10px; }
.status-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.status-row .count { font-weight: 800; }
.bar-mini { height: 6px; border-radius: 4px; background: #eef1ec; overflow: hidden; margin-top: 6px; }
.bar-mini span { display: block; height: 100%; background: var(--brand); border-radius: 4px; }

.recent-table { width: 100%; border-collapse: collapse; margin-top: 24px; }
.recent-table th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 650; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.recent-table td { padding: 12px; font-size: 13px; border-bottom: 1px solid #eef1ec; }

/* ---------------- Badges / chips ---------------- */
.chip {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
}
.chip.baru { background: var(--brand-soft); color: var(--brand-strong); }
.chip.diproses { background: var(--warning-soft); color: #8a5a12; }
.chip.dikirim { background: #e3edfb; color: #1f4e94; }
.chip.selesai { background: #e6f2ea; color: var(--brand-strong); }
.chip.dibatalkan { background: var(--danger-soft); color: var(--danger); }
.chip.aktif { background: var(--brand-soft); color: var(--brand-strong); }
.chip.habis { background: var(--danger-soft); color: var(--danger); }

/* ---------------- Toolbar + table ---------------- */
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .search {
  flex: 1; min-width: 200px; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 10px; background: #fff; font-size: 14px;
}
.toolbar select { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; font-size: 14px; }
.btn-small { padding: 9px 14px; border-radius: 10px; font-weight: 700; font-size: 13px; }
.btn-primary-small { background: var(--brand); color: #fff; border: none; }
.btn-primary-small:hover { background: var(--brand-strong); }

.table-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
table.grid { width: 100%; border-collapse: collapse; }
table.grid th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 650; padding: 14px 16px; background: #fafbf9; border-bottom: 1px solid var(--border); }
table.grid td { padding: 14px 16px; font-size: 13px; border-bottom: 1px solid #eef1ec; vertical-align: middle; }
table.grid tr:last-child td { border-bottom: none; }
.table-actions { display: flex; gap: 8px; }
.link-btn { background: none; border: none; color: var(--brand-strong); font-weight: 700; font-size: 13px; padding: 0; }
.link-btn.danger { color: var(--danger); }
.link-btn:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 48px 20px; font-size: 14px; }

/* ---------------- Modal ---------------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(16, 27, 21, 0.5); z-index: 50;
  display: grid; place-items: center; padding: 20px;
}
.modal {
  width: min(480px, 100%); background: var(--surface); border-radius: 16px;
  box-shadow: var(--shadow); padding: 24px;
}
.modal h3 { font-size: 18px; margin-bottom: 4px; }
.modal .modal-sub { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.modal .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.bottom-sheet { padding: 22px; }
.sheet-handle { display: none; width: 42px; height: 4px; margin: -8px auto 16px; border-radius: 999px; background: #d7ddd9; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }.sheet-head p { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.45; }.sheet-head > button { border: 0; background: transparent; color: #69736d; font-size: 24px; line-height: 1; }
.sheet-form { display: grid; gap: 14px; }.sheet-field { display: grid; gap: 7px; }.sheet-field > span { font-size: 12px; font-weight: 750; }.sheet-field input, .sheet-field select, .sheet-field textarea { width: 100%; border: 1px solid #d7ddd9; border-radius: 9px; padding: 11px 12px; background: white; color: var(--text); }.sheet-field textarea { resize: vertical; }.sheet-field input:focus, .sheet-field select:focus, .sheet-field textarea:focus { outline: 2px solid #0d8f47; outline-offset: 1px; }.sheet-field small { color: #7b847f; font-size: 10px; }
.sheet-error { min-height: 16px; color: #bd3540; font-size: 11px; }.sheet-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 9px; }.sheet-actions button { border: 0; border-radius: 9px; padding: 11px; font-weight: 750; }.sheet-cancel { background: #eef1ef; color: #4e5953; }.sheet-submit { background: #0d8f47; color: white; }.sheet-submit:disabled { opacity: .6; cursor: wait; }
.danger-sheet .sheet-submit { background: #bd3540; }
@media(max-width:620px){.sheet-backdrop{align-items:end;padding:0}.bottom-sheet{width:100%;max-height:88vh;overflow:auto;border-radius:18px 18px 0 0;padding:22px 18px calc(22px + env(safe-area-inset-bottom))}.sheet-handle{display:block}}

/* ---------------- Toast ---------------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #17221c; color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; z-index: 100;
  box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--danger); }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; flex-wrap: wrap; }
  .sidebar .brand { padding: 0 4px; }
  .sidebar nav { flex-direction: row; flex-wrap: wrap; }
  .side-user { display: none; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-hero { display: none; }
  .login-wrap { background: #f1f4f1; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .panels { grid-template-columns: 1fr; }
  .content { padding: 20px; }
  .topbar { padding: 16px 20px; }
}
@media(max-width:520px){.login-panel{padding:18px}.login-card{padding:25px 21px;border-radius:16px}.login-card-brand{margin-bottom:24px}}

/* Seller mobile portal */
.seller-page { min-height: 100vh; background: #edf0ee; }
.seller-phone { width: min(100%, 720px); min-height: 100vh; margin: 0 auto; background: #f5f6f5; position: relative; padding-bottom: 88px; box-shadow: 0 0 30px rgba(19, 35, 27, .08); }
.seller-hero { min-height: 210px; padding: 28px 24px; color: #fff; background: #0d9f4d; display: flex; justify-content: space-between; align-items: flex-start; }
.seller-brand { display: flex; align-items: center; gap: 12px; }
.seller-brand small, .seller-brand b { display: block; }
.seller-brand small { opacity: .78; font-size: 12px; margin-bottom: 3px; }
.seller-logo { width: 42px; height: 42px; border-radius: 50%; background: white; color: #0d9f4d; display: grid; place-items: center; font-weight: 900; }
.seller-bell { color: white; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); width: 38px; height: 38px; border-radius: 50%; }
.seller-content { margin-top: -76px; padding: 0 16px 28px; }
.balance-card, .seller-card, .profile-menu, .mobile-list { background: #fff; border-radius: 16px; box-shadow: 0 4px 16px rgba(25,48,36,.08); }
.balance-card { padding: 20px; display: grid; gap: 6px; margin-bottom: 14px; }
.balance-card small, .balance-card span { color: #79827d; font-size: 12px; }
.balance-card strong { font-size: 26px; }
.quick-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 14px; }
.quick-grid button { border: 0; border-radius: 14px; background: #fff; padding: 16px 5px; box-shadow: 0 3px 12px rgba(25,48,36,.07); font-size: 12px; }
.quick-grid i { display: block; color: #0d9f4d; font-size: 22px; font-style: normal; margin-bottom: 8px; }
.seller-card { padding: 14px; margin-bottom: 12px; }
.seller-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seller-actions button { border: 1px solid #dfe5e1; padding: 11px; background: white; border-radius: 10px; font-weight: 700; color: #087d3d; }
.membership { position: relative; border: 1px solid #b8e7ca; background: #f0fff5; }
.membership b { display: block; font-size: 13px; }
.membership b span { color: white; background: #0d9f4d; border-radius: 5px; padding: 4px 7px; margin-right: 6px; font-size: 10px; }
.membership p { color: #68736c; margin-top: 9px; font-size: 12px; }
.membership > button { position: absolute; right: 14px; top: 26px; border: 0; background: none; font-size: 24px; }
.section-title { font-size: 14px; color: #68736c; margin: 22px 4px 12px; }
.mobile-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mobile-stats div { background: white; border-radius: 14px; padding: 17px; box-shadow: 0 3px 12px rgba(25,48,36,.06); }
.mobile-stats small, .mobile-stats b { display: block; }
.mobile-stats small { color: #7b847f; margin-bottom: 8px; }
.mobile-stats b { color: #0d9f4d; font-size: 22px; }
.seller-bottom { position: fixed; z-index: 30; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%,720px); display: grid; grid-template-columns: repeat(4,1fr); border-radius: 18px 18px 0 0; background: #fff; box-shadow: 0 -3px 15px rgba(23,34,28,.13); overflow: hidden; }
.seller-bottom button { border: 0; background: white; padding: 13px 4px 12px; color: #343b37; font-size: 11px; }
.seller-bottom span { display: block; font-size: 20px; margin-bottom: 4px; }
.seller-bottom button.active { color: #0d9f4d; }
.mobile-page-title { color: white; margin: 6px 5px 26px; }
.mobile-page-title h1 { font-size: 20px; }
.mobile-page-title p { opacity: .78; margin-top: 5px; font-size: 12px; }
.task-card { background: white; padding: 16px; border-radius: 16px; box-shadow: 0 4px 14px rgba(23,34,28,.09); margin-bottom: 13px; }
.task-main { display: flex; align-items: center; gap: 12px; }
.task-main > div:last-child { display: grid; gap: 7px; }
.product-thumb { width: 50px; height: 50px; border-radius: 10px; display: grid; place-items: center; background: #e8f7ed; color: #0d9f4d; font-size: 22px; font-weight: 900; }
.task-card hr { border: 0; border-top: 1px solid #edf0ee; margin: 14px 0; }
.task-card > div:not(.task-main) { display: flex; justify-content: space-between; font-size: 13px; margin: 7px 0; }
.task-card > button { width: 100%; border: 0; border-radius: 9px; margin-top: 12px; padding: 11px; background: #0d9f4d; color: white; font-weight: 700; }
.task-request-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding: 14px; border: 1px solid #cfe5d7; border-radius: 12px; background: white; }.task-request-bar b, .task-request-bar span { display: block; }.task-request-bar b { font-size: 13px; }.task-request-bar span { margin-top: 4px; color: #738079; font-size: 10px; }.task-request-bar button { flex: none; border: 0; border-radius: 8px; padding: 9px 11px; background: #0d8f47; color: white; font-size: 11px; font-weight: 750; }
.mobile-list { overflow: hidden; }
.mobile-list article { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px; border-bottom: 1px solid #edf0ee; }
.mobile-list article:last-child { border: 0; }
.mobile-list small, .mobile-list b { display: block; }
.mobile-list small { color: #7b847f; margin-top: 5px; font-size: 11px; }
.order-right { text-align: right; display: grid; justify-items: end; gap: 7px; }
.profile-head { text-align: center; color: white; margin: -4px 0 22px; }
.profile-avatar { width: 68px; height: 68px; margin: auto auto 10px; border: 4px solid white; border-radius: 50%; display: grid; place-items: center; background: #f0b747; color: #513b0c; font-size: 26px; font-weight: 900; }
.profile-head h1 { font-size: 20px; }.profile-head p { opacity: .8; margin-top: 3px; }
.profile-menu { margin: 12px 0; padding: 18px; }
.profile-menu h3 { font-size: 12px; color: #7b847f; margin-bottom: 8px; }
.profile-menu button { width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid #edf0ee; background: white; display: flex; justify-content: space-between; }
.profile-menu button:last-child { border: 0; }.profile-menu .logout-row { color: #cf3f44; }
.profile-identity { display: flex; align-items: center; gap: 13px; min-height: 76px; color: white; padding: 0 5px 16px; }
.profile-topbar { display: flex; align-items: center; gap: 10px; }.profile-topbar b { font-size: 16px; }
.profile-identity .profile-avatar { width: 58px; height: 58px; margin: 0; border-width: 3px; font-size: 22px; }
.profile-identity h1 { font-size: 19px; line-height: 1.2; }.profile-identity p { margin-top: 2px; color: rgba(255,255,255,.78); font-size: 12px; }
.account-state { display: inline-flex; margin-top: 7px; padding: 3px 8px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: 10px; font-weight: 700; }
.wallet-panel { padding: 19px; border-radius: 15px; background: white; box-shadow: 0 5px 18px rgba(25,48,36,.1); }
.wallet-main small, .wallet-main strong { display: block; }.wallet-main small { color: #738079; font-size: 12px; }.wallet-main strong { margin-top: 5px; font-size: 28px; letter-spacing: -.03em; }
.profile-primary-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 17px; }
.profile-primary-actions button { display: flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 9px; padding: 11px 8px; background: #0d8f47; color: white; font-weight: 750; font-size: 13px; }
.profile-primary-actions button:last-child { border: 1px solid #cfe5d7; background: white; color: #12683a; }.profile-primary-actions span { font-size: 16px; }
.pending-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 16px; border-radius: 9px; overflow: hidden; background: #dfe8e2; }
.pending-summary div { padding: 11px; background: #f5f8f6; }.pending-summary span, .pending-summary b { display: block; }.pending-summary span { color: #768079; font-size: 10px; }.pending-summary b { margin-top: 5px; font-size: 12px; }
.profile-data-card { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 12px; overflow: hidden; border: 1px solid #e2e8e4; border-radius: 12px; background: #e2e8e4; }.profile-data-card div { min-width: 0; padding: 12px; background: white; }.profile-data-card .wide { grid-column: 1 / -1; }.profile-data-card span, .profile-data-card b { display: block; }.profile-data-card span { color: #7a847e; font-size: 10px; }.profile-data-card b { margin-top: 5px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.profile-section-title { display: flex; align-items: center; justify-content: space-between; margin: 22px 3px 10px; }.profile-section-title h2, .profile-group-label { font-size: 14px; }.profile-section-title button { border: 0; background: transparent; color: #0d7c41; font-size: 11px; font-weight: 700; }
.profile-recent { overflow: hidden; border-radius: 14px; background: white; box-shadow: 0 3px 13px rgba(25,48,36,.07); }
.profile-recent article { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; padding: 13px; border-bottom: 1px solid #edf0ee; }.profile-recent article:last-child { border-bottom: 0; }
.finance-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; font-weight: 800; }.finance-icon.in { color: #0d7c41; background: #e5f5ea; }.finance-icon.out { color: #a35217; background: #fff0df; }
.finance-copy b, .finance-copy small, .finance-value b { display: block; }.finance-copy b { font-size: 12px; }.finance-copy small { margin-top: 4px; color: #7b847f; font-size: 9px; }.finance-value { display: grid; justify-items: end; gap: 5px; }.finance-value b { font-size: 11px; }
.profile-empty { padding: 25px; text-align: center; }.profile-empty b, .profile-empty span { display: block; }.profile-empty b { font-size: 13px; }.profile-empty span { margin-top: 5px; color: #7b847f; font-size: 11px; }
.profile-group-label { margin: 22px 3px 9px; color: #5f6a64; }
.profile-menu.refined { padding: 4px 15px; }.profile-menu.refined button { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 9px; padding: 13px 0; text-align: left; }.profile-menu.refined i { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; background: #edf6f0; color: #0d7c41; font-style: normal; font-weight: 800; }.profile-menu.refined span b, .profile-menu.refined span small { display: block; }.profile-menu.refined span b { color: #1d2721; font-size: 12px; }.profile-menu.refined span small { margin-top: 3px; color: #7c8580; font-size: 10px; }.profile-menu.refined em { color: #929a95; font-size: 18px; font-style: normal; }.profile-menu.refined .logout-row i, .profile-menu.refined .logout-row b { color: #bd3540; }.profile-menu.refined .logout-row i { background: #fbeaec; }
.activity-pop { position: fixed; z-index: 29; right: max(14px, calc((100vw - 690px) / 2)); bottom: 82px; display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 9px; width: min(310px, calc(100vw - 28px)); padding: 11px 13px; border: 1px solid #dfe6e1; border-radius: 12px; background: white; box-shadow: 0 8px 28px rgba(23,34,28,.15); }.activity-pop > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; background: #e7f4eb; color: #0d7c41; font-weight: 800; }.activity-pop b, .activity-pop small { display: block; }.activity-pop b { font-size: 11px; }.activity-pop small { margin-top: 3px; color: #7b847f; font-size: 9px; }
.reference-profile-head { display: flex; align-items: center; gap: 12px; }.reference-avatar { display: grid; width: 56px; height: 56px; place-items: center; border: 4px solid white; border-radius: 50%; background: #f5f8f6; color: #13a253; font-size: 28px; }.reference-profile-head > div:last-child { display: grid; grid-template-columns: auto auto; align-items: center; gap: 4px 8px; }.reference-profile-head b { font-size: 18px; }.reference-profile-head span { padding: 3px 7px; border-radius: 999px; background: rgba(255,255,255,.18); font-size: 9px; }.reference-profile-head small { grid-column: 1 / -1; color: rgba(255,255,255,.78); font-size: 11px; }
.reference-balance { padding: 19px; border-radius: 14px; background: white; box-shadow: 0 5px 17px rgba(25,48,36,.1); }.reference-balance small, .reference-balance strong, .reference-balance em { display: block; }.reference-balance small { color: #758079; font-size: 11px; }.reference-balance strong { margin-top: 5px; font-size: 26px; }.reference-balance em { margin-top: 6px; color: #2f6b45; font-size: 12px; font-style: normal; }
.reference-referral { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 16px 18px; border-radius: 14px; background: white; box-shadow: 0 5px 17px rgba(25,48,36,.1); }.reference-referral small, .reference-referral strong { display: block; }.reference-referral small { color: #758079; font-size: 11px; }.reference-referral strong { margin-top: 5px; letter-spacing: .08em; font-size: 18px; }
.reference-quick { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-top: 12px; }.reference-quick button { border: 0; border-radius: 13px; padding: 14px 3px; background: white; box-shadow: 0 3px 12px rgba(25,48,36,.07); font-size: 10px; }.reference-quick i { display: block; margin-bottom: 7px; color: #0d8f47; font-size: 20px; font-style: normal; }
.reference-member { margin-top: 12px; padding: 15px; border: 1px solid #bde3ca; border-radius: 12px; background: #effaf3; }.reference-member b { display: block; font-size: 12px; }.reference-member b span { margin-right: 7px; padding: 4px 7px; border-radius: 5px; background: #0d9f4d; color: white; font-size: 9px; }.reference-member p { margin-top: 9px; color: #66716a; font-size: 10px; }
.reference-shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 9px 0 12px; }.reference-shortcuts button { border: 1px solid #dce3df; border-radius: 9px; padding: 10px; background: white; color: #253129; font-size: 11px; font-weight: 700; }
.task-wallet { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 13px; background: #0d9147; color: white; }.task-wallet small, .task-wallet strong { display: block; }.task-wallet small { color: rgba(255,255,255,.78); font-size: 10px; }.task-wallet strong { margin-top: 4px; font-size: 21px; }.task-wallet > div:last-child { display: grid; gap: 6px; }.task-wallet button { min-width: 70px; border: 0; border-radius: 999px; padding: 6px 10px; background: white; color: #0d7940; font-size: 10px; font-weight: 700; }.task-wallet button:last-child { background: #d8424a; color: white; }
.task-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 11px; }.task-stat-grid article { padding: 15px; border-radius: 12px; background: white; text-align: center; box-shadow: 0 3px 12px rgba(25,48,36,.06); }.task-stat-grid span, .task-stat-grid b { display: block; }.task-stat-grid span { color: #68736c; font-size: 10px; }.task-stat-grid b { margin-top: 7px; color: #0b7d40; font-size: 15px; }
.task-member-card { margin-top: 12px; padding: 14px 16px; border-left: 4px solid #0d9f4d; border-radius: 12px; background: white; }.task-member-card b, .task-member-card span { display: block; }.task-member-card b { font-size: 13px; }.task-member-card span { margin-top: 4px; color: #68736c; font-size: 10px; }
.task-main-cta { width: 100%; margin-top: 12px; border: 0; border-radius: 999px; padding: 11px; background: #0d9147; color: white; font-size: 11px; font-weight: 750; }.task-info { margin: 12px 0; padding: 14px; border: 1px solid #e2e9e4; border-radius: 11px; background: #f9fbf9; color: #414d45; font-size: 11px; line-height: 1.45; }
+.task-progress { margin-top: 12px; padding: 15px; border-radius: 12px; background: white; box-shadow: 0 3px 12px rgba(25,48,36,.06); }.task-progress > div:first-child { display: flex; justify-content: space-between; align-items: center; }.task-progress span { color: #68736c; font-size: 10px; }.task-progress b { color: #0b7d40; font-size: 13px; }.task-progress-track { height: 7px; margin-top: 10px; border-radius: 999px; background: #edf1ee; overflow: hidden; }.task-progress-track i { display: block; height: 100%; border-radius: 999px; background: #0d9147; }.task-progress small { display: block; margin-top: 7px; color: #7b847f; font-size: 9px; }
+.support-list { display: grid; gap: 8px; }.support-list a { display: block; padding: 12px; border: 1px solid #e1e7e2; border-radius: 9px; background: #f8faf8; color: #0b7d40; font-size: 12px; font-weight: 700; text-decoration: none; }

/* Backoffice desktop portal */
.admin-page { min-height: 100vh; background: #f2f3f5; color: #343a40; }
.admin-top { background: #1d2939; color: white; padding: 0 4%; display: flex; align-items: center; justify-content: center; min-height: 72px; }
.admin-top nav { display: flex; align-items: center; gap: 2px; overflow-x: auto; }
.admin-top nav button { border: 0; background: transparent; color: #f4f5f6; padding: 13px 12px; border-radius: 6px; white-space: nowrap; }
.admin-top nav button.active { background: #5548e8; }.admin-top nav .admin-logout { color: #ff7681; }
#admin-content { padding: 42px 4%; }
.admin-filters { display: flex; gap: 9px; margin-bottom: 18px; flex-wrap: wrap; }.admin-filters select,.admin-filters button,.admin-filters a { padding: 11px 16px; border: 0; border-radius: 7px; text-decoration: none; color: white; }.admin-filters select { color: #333; }.purple { background:#5548e8 }.green { background:#22b86a }.yellow { background:#efb40d }.admin-filters a { background:#1d2939; }
.admin-stats { display: grid; grid-template-columns: repeat(6,1fr); gap: 22px; }.admin-stats article,.admin-totals article { background: white; padding: 24px 20px; border-radius: 16px; box-shadow: 0 2px 5px rgba(22,30,26,.12); }.admin-stats span,.admin-stats strong { display:block }.admin-stats span { color:#72777e;font-size:13px;margin-bottom:9px }.admin-stats strong { font-size:22px }.purple-text{color:#5548e8}.orange-text{color:#ed680b}.green-text{color:#13a04d}.blue-text{color:#2470cc}.red-text{color:#cf2e32}
.admin-totals { display:grid; grid-template-columns:1fr 1fr; gap:22px; margin-top:34px }.admin-totals b,.admin-totals strong{display:block}.admin-totals b{color:#2470cc;margin-bottom:18px}.admin-totals article:last-child b{color:#cf2e32}.admin-totals strong{font-size:21px}
.admin-search { background:white; padding:10px; border-radius:9px 9px 0 0; }.admin-search input{width:min(360px,70%);padding:11px;border:2px solid #78c6ff;border-radius:6px}.admin-search button{background:#5548e8;color:white;border:0;padding:12px 20px;border-radius:6px;margin-left:5px}
.admin-table { overflow:auto; background:white; border-radius:0 0 9px 9px; box-shadow:0 1px 4px rgba(0,0,0,.12) }.admin-table table{border-collapse:collapse;width:100%;min-width:850px}.admin-table th{background:#eef0f3;text-align:left;padding:12px;font-size:12px}.admin-table td{padding:12px;border-bottom:1px solid #e5e7eb;font-size:13px}.admin-table button{border:0;border-radius:4px;padding:6px 10px}.admin-table .edit{background:#e2efff;color:#2868ad}.admin-table .delete{background:#ffe4e6;color:#ca3742}.admin-table select{padding:7px;border:1px solid #d8dde3;border-radius:5px}
.admin-settings{max-width:640px;background:white;padding:28px;border-radius:14px;box-shadow:var(--shadow)}.admin-settings h2{margin-bottom:22px}.admin-settings label{display:grid;gap:7px;margin-bottom:16px;font-size:13px;font-weight:700}.admin-settings input{padding:12px;border:1px solid #d8dde3;border-radius:7px}.admin-settings button{background:#5548e8;color:white;border:0;padding:12px 18px;border-radius:7px;font-weight:700}
@media(max-width:1050px){.admin-top{justify-content:flex-start;padding-top:10px;padding-bottom:10px}.admin-top nav{width:100%}.admin-stats{grid-template-columns:repeat(3,1fr)}}
@media(max-width:620px){.admin-stats{grid-template-columns:1fr 1fr;gap:10px}.admin-totals{grid-template-columns:1fr}.quick-grid{gap:7px}.seller-hero{min-height:190px}.seller-content{margin-top:-58px}.login-panel{padding:22px}}

/* Storefront and task workflow */
.seller-hero.compact { min-height: 48px; padding: 0; align-items: center; justify-content: center; }
.seller-hero.compact h1 { font-size: 16px; font-weight: 500; }
.seller-content.compact { margin-top: 0; padding-top: 16px; }
.seller-hero.storefront { position: sticky; top: 0; z-index: 25; min-height: 58px; padding: 8px 14px; color: #17221c; background: white; align-items: center; box-shadow: 0 1px 5px rgba(0,0,0,.08); }
.storefront-wordmark { display: flex; align-items: center; gap: 8px; color: #0b8f43; font-size: 18px; font-weight: 800; }
.storefront-wordmark span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; color: white; background: #0b8f43; }
.seller-hero.storefront select { border: 1px solid #d5dad7; border-radius: 7px; padding: 7px 9px; background: white; color: #333; }
.seller-content.storefront-content { margin-top: 0; padding: 12px 12px 28px; }
.seller-banner { height: 150px; padding: 22px; border-radius: 8px; background: #087d3d; color: white; display: flex; flex-direction: column; justify-content: flex-end; margin-bottom: 10px; overflow: hidden; position: relative; }
.seller-banner::after { position: absolute; width: 190px; height: 190px; right: -55px; top: -70px; border-radius: 50%; background: rgba(255,255,255,.12); content: ""; }
.banner-copy { position: relative; z-index: 2; width: 58%; }
.banner-products { position: absolute; z-index: 2; right: 13px; bottom: 12px; width: 42%; height: 118px; }
.banner-products img { position: absolute; width: 76px; height: 94px; object-fit: cover; border: 3px solid white; border-radius: 9px; box-shadow: 0 5px 12px rgba(0,0,0,.18); }
.banner-products img:nth-child(1) { right: 47px; bottom: 0; }.banner-products img:nth-child(2) { right: 5px; bottom: 9px; }.banner-products img:nth-child(3) { right: 82px; bottom: 15px; }
.seller-banner small { display: block; margin-bottom: 8px; font-size: 10px; letter-spacing: .14em; opacity: .75; }
.seller-banner b { font-size: 24px; }
.seller-banner span { margin-top: 7px; font-size: 13px; opacity: .85; }
.running-notice { background: #fffbea; border-left: 4px solid #e5a527; padding: 10px; margin-bottom: 12px; font-size: 12px; line-height: 1.5; }
.category-filter { display: flex; gap: 7px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.category-filter::-webkit-scrollbar { display: none; }
.category-filter button { flex: none; border: 1px solid #dfe4e1; border-radius: 999px; padding: 7px 11px; background: white; color: #626c66; font-size: 11px; }
.category-filter button.active { border-color: #16a34a; background: #16a34a; color: white; }
.product-grid-mobile { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.product-grid-mobile article { background: white; border: 1px solid #ddd; border-radius: 10px; padding: 10px; min-height: 260px; display: flex; flex-direction: column; text-align: center; }
.catalog-image { height: 135px; border-radius: 7px; display: grid; place-items: center; margin-bottom: 10px; color: white; font-size: 42px; font-weight: 800; }
.catalog-photo { width: 100%; height: 145px; border-radius: 6px; object-fit: cover; margin-bottom: 10px; }
.catalog-empty { grid-column: 1 / -1; padding: 42px 20px; border-radius: 8px; background: white; color: #717a75; text-align: center; font-size: 13px; }
.catalog-0 { background: #815f45; }.catalog-1 { background: #477a50; }.catalog-2 { background: #c58d2e; }.catalog-3 { background: #8b694b; }.catalog-4 { background: #7b9b77; }.catalog-5 { background: #b78652; }
.product-grid-mobile h2 { font-size: 12px; line-height: 1.4; font-weight: 500; margin-bottom: 8px; }
.product-grid-mobile strong { color: #149447; font-size: 15px; margin-top: auto; }
.product-grid-mobile button { align-self: center; border: 0; border-radius: 5px; background: #16a34a; color: white; padding: 7px 12px; margin-top: 9px; font-size: 12px; }
.product-grid-mobile button:disabled { background: #d8dedb; color: #6c7670; cursor: not-allowed; }
.partner-title { font-size: 15px; margin: 20px 3px 12px; }
.partner-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.partner-grid div { display: grid; place-items: center; min-height: 50px; background: white; border: 1px solid #e2e4e2; border-radius: 7px; font-size: 10px; font-weight: 700; color: #5c6761; text-align: center; }
.active-task-box { background: white; border-radius: 10px; padding: 28px 16px; margin-bottom: 16px; text-align: center; font-size: 13px; font-weight: 700; box-shadow: 0 3px 12px rgba(25,48,36,.05); }
.reference-task { margin-bottom: 14px; }
.assignment-description { margin: 12px 0 0; color: #69736d; font-size: 12px; line-height: 1.5; }
.task-status { display: inline-flex; width: max-content; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.task-status.pending { background: #fff1ca; color: #8a6413; }.task-status.approved { background: #e5f7e9; color: #159447; }.task-status.rejected { background: #ffe7e8; color: #c93840; }
.order-list article > div:first-child strong { display: block; margin-top: 8px; font-size: 13px; }
.order-right button { border: 0; border-radius: 6px; background: #16a34a; color: white; padding: 8px 10px; font-size: 11px; font-weight: 700; }
.empty-mobile { padding: 35px 18px; text-align: center; color: #747d78; font-size: 13px; }
.admin-table .approve { background: #dcf7e5; color: #12833d; }
.admin-product-image { width: 52px; height: 52px; border-radius: 7px; object-fit: cover; }
.admin-toolbar { display: flex; align-items: stretch; gap: 10px; }
.admin-toolbar .admin-search { flex: 1; }
.admin-toolbar > button { margin: 10px 0; border: 0; border-radius: 6px; padding: 0 18px; background: #5548e8; color: white; font-weight: 700; }
.admin-section-heading { margin: 28px 0 10px; font-size: 16px; }
.history-list { display: grid; gap: 0; border: 1px solid #e5e8e6; border-radius: 10px; overflow: hidden; }
.history-list article { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px; border-bottom: 1px solid #e5e8e6; }
.history-list article:last-child { border-bottom: 0; }
.history-list b, .history-list small { display: block; }.history-list small { color: #758079; margin-top: 4px; font-size: 11px; }
.reference-copy { border: 0; background: transparent; color: #2868ad; padding: 4px 0; font-size: 11px; font-weight: 700; text-align: left; }
.reject-reason { color: #b6323a !important; }
.nav-badge:empty { display: none; }
.nav-badge { display: inline-grid; min-width: 18px; height: 18px; margin-left: 5px; padding: 0 5px; place-items: center; border-radius: 999px; background: #ef4444; color: white; font-size: 10px; font-weight: 800; }
.audit-filters { display: grid; grid-template-columns: minmax(180px,1.4fr) 1fr 1fr 160px auto; gap: 9px; margin-bottom: 12px; }
.audit-filters input, .audit-filters select { min-width: 0; border: 1px solid #d8dde3; border-radius: 6px; padding: 10px; background: white; }
.audit-filters button { border: 0; border-radius: 6px; padding: 10px 16px; background: #1d2939; color: white; font-weight: 700; }
@media(max-width:800px){.audit-filters{grid-template-columns:1fr 1fr}.audit-filters button{grid-column:1/-1}}
@media(max-width:620px){.seller-hero:not(.storefront):not(.compact){min-height:210px}.seller-content:not(.storefront-content):not(.compact){margin-top:-72px}}
