:root {
  --bg: #eef2e8;
  --panel: #ffffff;
  --panel-2: #f6f8f2;
  --text: #1a1f12;
  --muted: #6b7365;
  --line: rgba(26, 31, 18, 0.12);
  --line-strong: rgba(26, 31, 18, 0.18);
  --lime: #9dce5b;
  --forest: #3b6d11;
  --soft: #eaf3de;
  --blue: #e6f1fb;
  --amber: #faeeda;
  --red: #fff1ef;
  --shadow: 0 24px 64px rgba(16, 22, 10, 0.09);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(157, 206, 91, 0.18), transparent 30%),
    linear-gradient(180deg, #f8faf5 0%, var(--bg) 100%);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.shell {
  width: min(1320px, calc(100% - 32px));
  margin: 18px auto 44px;
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  margin-bottom: 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-mark {
  width: 65px;
  height: 65px;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.brand-mark img {
  width: 65px;
  height: 65px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}
.brand-name {
  font-size: 23px;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  letter-spacing: -0.05em;
}
.brand-name span { color: var(--lime); }
.brand-copy small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-size: 13px;
}
.masthead-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--forest);
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.chip.info { background: var(--blue); color: #185fa5; }
.chip.warn { background: var(--amber); color: #8a540f; }
.chip.error { background: var(--red); color: #b64331; }
.link-btn,
.btn-inline {
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.app-shell { padding: 0; }
.pp {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 760px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.88);
  overflow: hidden;
}
.sidebar {
  background: #f7f9f4;
  border-right: 1px solid var(--line);
  padding: 0;
  display: flex;
  flex-direction: column;
}
.sb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--line);
}
.sb-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--lime);
  color: #21310f;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
}
.sb-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}
.sb-name span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.sb-nav {
  padding: 12px 10px;
  flex: 1;
}
.sb-section {
  padding: 10px 12px 6px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  font-weight: 700;
}
.sb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 12px;
  border: none;
  background: transparent;
  color: var(--muted);
  border-radius: 16px;
  cursor: pointer;
  font-weight: 600;
  text-align: left;
}
.sb-item i { font-size: 18px; }
.sb-item:hover,
.sb-item.active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 8px 20px rgba(26, 31, 18, 0.05);
}
.sb-item.active { color: var(--forest); }
.sb-badge {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--forest);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.sb-footer {
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  display: grid;
  gap: 8px;
}
.sb-footer strong { color: var(--forest); }
.main {
  background: #fff;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.topbar {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.tb-title {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.tb-sub {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.tb-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}
.tb-btn.primary {
  background: var(--soft);
  border-color: rgba(157, 206, 91, 0.4);
  color: var(--forest);
}
.content {
  padding: 20px;
  display: grid;
  gap: 18px;
  overflow: auto;
}
.status-box {
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
}
.status-box.info { background: var(--blue); color: #185fa5; }
.status-box.success { background: var(--soft); color: var(--forest); }
.status-box.error { background: var(--red); color: #b64331; }
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.metric {
  padding: 18px;
  border-radius: 22px;
  background: var(--panel-2);
}
.metric-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}
.metric-label i { font-size: 16px; color: var(--forest); }
.metric-val {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}
.metric-note {
  margin-top: 6px;
  font-size: 12px;
  color: var(--forest);
  font-weight: 600;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.section-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}
.section-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.section-header button,
.section-header a {
  border: none;
  background: transparent;
  color: var(--forest);
  font-weight: 700;
  cursor: pointer;
}
.orders-list,
.notif-list {
  display: grid;
  gap: 10px;
}
.order-row,
.notif-item {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--panel-2);
}
.order-row {
  grid-template-columns: 90px 1fr auto auto auto;
}
.or-ref {
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 13px;
}
.or-client small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
  font-size: 12px;
}
.or-amount {
  font-weight: 800;
  font-size: 15px;
}
.status-pill {
  padding: 8px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
}
.status-pill.prep { background-color: #fdf1d9; color: #a7732a; }
.status-pill.ready { background-color: #e4f9e6; color: #328842; }
.status-pill.route { background-color: #e0effc; color: #276cae; }
.status-pill.done { background-color: #e4f9e6; color: #328842; }
.status-pill.default { background-color: #fae4e6; color: #b4434d; }
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.card {
  padding: 18px;
  border-radius: 22px;
  background: var(--panel-2);
}
.driver-row,
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.driver-row:last-child,
.setting-row:last-child { border-bottom: none; }
.setting-copy {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 4px;
}
.setting-copy strong {
  display: block;
  font-size: 15px;
  line-height: 1.3;
}
.setting-copy span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.avatar,
.notif-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--forest);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.notif-icon.blue { background: var(--blue); color: #185fa5; }
.notif-icon.amber { background: var(--amber); color: #8a540f; }
.notif-icon.green { background: var(--soft); color: var(--forest); }
.row-copy,
.notif-body {
  min-width: 0;
  flex: 1;
}
.row-copy strong,
.notif-body strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}
.row-copy span,
.notif-body span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.row-side,
.notif-time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.bar-list {
  display: grid;
  gap: 12px;
}
.bar-row {
  display: grid;
  grid-template-columns: 130px 1fr 56px;
  gap: 10px;
  align-items: center;
}
.bar-row small {
  color: var(--muted);
  font-weight: 700;
}
.bar-bg {
  height: 10px;
  border-radius: 999px;
  background: rgba(26, 31, 18, 0.08);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c7df9c, #639922);
}
.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.product {
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(26, 31, 18, 0.06);
  box-shadow: 0 14px 24px rgba(26, 31, 18, 0.05);
}
.product-visual {
  min-height: 100px;
  background: linear-gradient(135deg, #eef5e2, #dfeec8);
  display: grid;
  place-items: center;
  font-size: 34px;
  border-radius: 0;
  overflow: hidden;
}
.product-visual-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.product-body {
  padding: 16px;
  display: grid;
  gap: 10px;
}
.product-body strong {
  font-size: 15px;
}
.product-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  min-height: 40px;
}
.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.product-price {
  font-weight: 800;
  font-size: 15px;
}
.toggle,
.switch {
  position: relative;
  width: 50px;
  height: 30px;
  border-radius: 999px;
  border: none;
  background: #c9d0bf;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
  align-self: center;
}
.toggle::after,
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 8px rgba(26, 31, 18, 0.18);
  transition: transform 0.18s ease;
}
.toggle.on,
.switch.on {
  background: #8fbe50;
}
.toggle.on::after,
.switch.on::after {
  transform: translateX(20px);
}
.toggle:disabled,
.switch:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.settings-stack {
  display: grid;
  gap: 18px;
}
.settings-section-title {
  margin: 0 0 14px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 13px;
  font-weight: 800;
}
.settings-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.payment-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}
.payment-actions .tb-btn {
  padding-inline: 16px;
}
.profile-form {
  display: grid;
  gap: 14px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.field.full { grid-column: 1 / -1; }
.field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  padding: 14px 15px;
  border-radius: 14px;
  border: 1px solid rgba(26, 31, 18, 0.12);
  background: #fff;
  color: var(--text);
}
.field select {
  appearance: auto;
  height: 52px;
  line-height: 1.2;
  color: var(--text) !important;
  -webkit-text-fill-color: var(--text);
}
.field select option {
  color: var(--text) !important;
  background: #fff !important;
  -webkit-text-fill-color: var(--text);
  opacity: 1;
}
.field--commune select {
  max-width: none;
  margin-top: -2px;
}
#commune {
  height: 52px;
  color: var(--text) !important;
  background-color: #fff !important;
  -webkit-text-fill-color: var(--text);
}
#commune option {
  color: var(--text) !important;
  background-color: #fff !important;
  -webkit-text-fill-color: var(--text);
}
.field--phone .iti {
  width: 100%;
  margin-top: 16px;
}
.field--phone .iti__tel-input {
  width: 100%;
  padding-left: 96px !important;
}
.iti {
  width: 100%;
}
.iti__selected-country {
  border-radius: 14px 0 0 14px;
}
.iti__country-list,
.iti__dropdown-content {
  z-index: 1300;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 4px rgba(157, 206, 91, 0.18);
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.service-hours-grid {
  display: grid;
  gap: 10px;
}
.service-hour-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--panel-2);
}
.service-hour-day {
  font-weight: 700;
  min-width: 110px;
}
.service-hour-range {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: flex-end;
}
.service-hour-range input {
  max-width: 170px;
}
.service-hour-range span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}
.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}
.empty {
  padding: 18px;
  border-radius: 18px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.demo-modal[hidden] { display: none; }
.demo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 7, 0.62);
  backdrop-filter: blur(6px);
}
.demo-modal-card {
  position: relative;
  width: min(560px, 100%);
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 80px rgba(16, 22, 10, 0.24);
  display: grid;
  gap: 18px;
  z-index: 1;
  animation: demoModalPop .18s ease;
}
.demo-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}
.demo-modal-head {
  display: grid;
  gap: 10px;
  padding-right: 32px;
}
.demo-modal-head h3 {
  margin: 0;
  font-size: 28px;
  font-family: 'Syne', sans-serif;
  letter-spacing: -0.04em;
}
.demo-modal-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.demo-modal-list {
  display: grid;
  gap: 10px;
}
.demo-modal-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--panel-2);
  line-height: 1.6;
  color: var(--text);
}
.demo-modal-item i {
  color: var(--forest);
  margin-top: 2px;
}
.demo-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
@keyframes demoModalPop {
  from { transform: translateY(10px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
@media (max-width: 1100px) {
  .metrics,
  .catalogue-grid,
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .pp { grid-template-columns: 1fr; }
  .sidebar { border-right: none; border-bottom: 1px solid var(--line); }
  .catalogue-grid,
  .metrics,
  .grid-2 { grid-template-columns: 1fr; }
  .order-row,
  .bar-row { grid-template-columns: 1fr; }
  .service-hour-row,
  .service-hour-range,
  .masthead,
  .topbar,
  .form-actions { flex-direction: column; align-items: stretch; }
  .service-hour-range input { max-width: none; }
  .form-grid { grid-template-columns: 1fr; }
}
