﻿:root {
  --bg: #ffffff;
  --text: #2f3338;
  --muted: #68717d;
  --line: #e2e6eb;
  --soft: #f6f8fa;
  --accent: #078c8c;
  --accent-dark: #056f70;
  --success: #28a745;
  --danger: #c83c3c;
  --shadow: 0 18px 46px rgba(30, 40, 54, 0.13);
  --radius: 8px;
  --content: min(1180px, calc(100% - 32px));
  font-family: "Segoe UI Variable Text", "Segoe UI Variable", Aptos, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* System CRM */
.system-login-page,
.system-admin-page {
  background: #f4f1ea;
  color: #24231f;
}

.system-login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 18% 18%, rgba(201, 180, 88, 0.22), transparent 28%),
    radial-gradient(circle at 84% 12%, rgba(7, 140, 140, 0.14), transparent 30%),
    linear-gradient(90deg, rgba(36, 35, 31, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(36, 35, 31, 0.055) 1px, transparent 1px),
    #f4f1ea;
  background-size: 32px 32px;
}

.system-login-panel {
  position: relative;
  width: min(100%, 520px);
  border: 1px solid #24231f;
  border-radius: 8px;
  background: #fffdf7;
  box-shadow: 12px 12px 0 #24231f;
  padding: 34px;
  overflow: hidden;
}

.system-login-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, #078c8c 0 34%, #c9b458 34% 68%, #7c2d12 68%);
}

.system-login-panel h1 {
  margin: 0 0 12px;
  max-width: 430px;
  font-size: 36px;
  line-height: 1;
}

.system-login-panel p:not(.system-eyebrow):not(.system-login-hint) {
  max-width: 430px;
  margin: 0;
  color: #3f3b34;
  line-height: 1.55;
}

.system-eyebrow {
  margin: 0 0 10px;
  color: #7c2d12;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.system-login-form {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.system-login-form label {
  display: grid;
  gap: 7px;
  color: #3f3b34;
  font-size: 13px;
  font-weight: 800;
}

.system-login-hint {
  margin: 18px 0 0;
  border-left: 3px solid #c9b458;
  padding-left: 12px;
  color: #706b61;
  font-size: 13px;
  line-height: 1.45;
}

.system-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 20px;
  border-bottom: 1px solid #d8d0c1;
  background: rgba(255, 253, 247, 0.94);
  backdrop-filter: blur(14px);
}

.system-brand {
  display: inline-flex;
  gap: 10px;
  align-items: baseline;
  color: inherit;
  text-decoration: none;
}

.system-brand strong {
  font-size: 20px;
}

.system-brand span,
.system-topbar-actions span {
  color: #706b61;
  font-size: 13px;
}

.system-topbar-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.system-layout {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  min-height: calc(100vh - 58px);
}

.system-sidebar {
  position: sticky;
  top: 58px;
  align-self: start;
  height: calc(100vh - 58px);
  padding: 14px;
  border-right: 1px solid #d8d0c1;
  background: #ebe4d8;
  overflow: auto;
}

.system-sidebar button {
  width: 100%;
  min-height: 36px;
  margin-bottom: 4px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #24231f;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
}

.system-sidebar button.active,
.system-sidebar button:hover {
  border-color: #24231f;
  background: #fffdf7;
}

.system-main {
  min-width: 0;
  padding: 20px;
}

.system-page-head {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.system-page-head h1 {
  margin: 0;
  font-size: 28px;
}

.system-filters {
  display: flex;
  gap: 8px;
}

.system-filters input,
.system-filters select,
.system-form input,
.system-form select,
.system-form textarea,
.system-login-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #c7bead;
  border-radius: 6px;
  background: #fffdf7;
  padding: 9px 12px;
  color: #24231f;
}

.system-login-form input {
  border-color: #b8ad99;
  background: #fffaf0;
  font-size: 16px;
}

.system-login-form input:focus {
  outline: 3px solid rgba(7, 140, 140, 0.16);
  border-color: #078c8c;
  box-shadow: 0 0 0 1px #078c8c inset;
}

.system-login-form .primary-button {
  width: 100%;
  min-height: 46px;
  margin-top: 2px;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 900;
}

.system-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.system-form.compact {
  grid-template-columns: 140px 1fr 1fr auto;
}

.system-panel {
  border: 1px solid #d8d0c1;
  border-radius: 8px;
  background: #fffdf7;
  padding: 16px;
}

.system-panel h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.system-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.system-kpi-grid,
.system-mini-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.system-mini-grid {
  grid-template-columns: repeat(3, minmax(140px, 1fr));
}

.system-kpi {
  min-height: 94px;
  border: 1px solid #24231f;
  border-radius: 8px;
  background: #fffdf7;
  padding: 14px;
  box-shadow: 4px 4px 0 #c9b458;
}

.system-kpi span,
.system-kpi small,
.system-table span,
.system-list-row span,
.system-attention-row span {
  display: block;
  color: #706b61;
  font-size: 12px;
}

.system-kpi strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 25px;
}

.system-table-wrap {
  overflow: auto;
  border: 1px solid #d8d0c1;
  border-radius: 8px;
  background: #fffdf7;
}

.system-table-wrap.nested {
  margin-top: 10px;
}

.system-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.system-table th,
.system-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee7da;
  text-align: left;
  vertical-align: top;
}

.system-table th {
  position: sticky;
  top: 0;
  background: #f8f4ec;
  color: #706b61;
  font-size: 12px;
  text-transform: uppercase;
}

.system-table tr:hover td {
  background: #fff9e8;
}

.system-table select {
  min-height: 32px;
  border: 1px solid #c7bead;
  border-radius: 6px;
  background: #fffdf7;
}

.system-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.system-status.active {
  background: #d8f3dc;
  color: #14532d;
}

.system-status.trial {
  background: #dbeafe;
  color: #1d4ed8;
}

.system-status.blocked,
.system-status.archived {
  background: #fee2e2;
  color: #991b1b;
}

.system-attention-row,
.system-list-row {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  border: 1px solid #eee7da;
  border-radius: 8px;
  background: #fffdf7;
  padding: 10px;
  color: inherit;
  text-align: left;
  text-decoration: none;
}

.system-attention-row {
  cursor: pointer;
}

.system-attention-row:hover {
  border-color: #24231f;
}

.system-drawer {
  margin-top: 18px;
  border: 1px solid #24231f;
  border-radius: 8px;
  background: #fffdf7;
  box-shadow: 6px 6px 0 #24231f;
  padding: 16px;
}

.system-drawer-head {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.system-drawer-head h2 {
  margin: 0 0 4px;
}

.system-drawer-actions {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.system-card-tabs {
  display: flex;
  gap: 4px;
  overflow: auto;
  margin-bottom: 14px;
  border-bottom: 1px solid #d8d0c1;
}

.system-card-tabs button {
  min-height: 36px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  padding: 0 10px;
  font-weight: 800;
  cursor: pointer;
}

.system-card-tabs button.active {
  border-bottom-color: #7c2d12;
  color: #7c2d12;
}

.system-dl {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 8px 14px;
}

.system-dl dt {
  color: #706b61;
  font-size: 12px;
  text-transform: uppercase;
}

.system-dl dd {
  margin: 0;
  font-weight: 700;
}

.system-empty,
.system-empty-block {
  color: #706b61;
}

.system-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.system-settings-grid div {
  border: 1px solid #eee7da;
  border-radius: 8px;
  padding: 12px;
}

.system-settings-grid span {
  display: block;
  color: #706b61;
  font-size: 12px;
}

@media (max-width: 980px) {
  .system-layout {
    grid-template-columns: 1fr;
  }

  .system-sidebar {
    position: static;
    display: flex;
    height: auto;
    gap: 6px;
    overflow: auto;
    border-right: 0;
    border-bottom: 1px solid #d8d0c1;
  }

  .system-sidebar button {
    width: auto;
    white-space: nowrap;
  }

  .system-kpi-grid,
  .system-mini-grid,
  .system-grid-2,
  .system-form,
  .system-form.compact,
  .system-settings-grid {
    grid-template-columns: 1fr;
  }

  .system-page-head,
  .system-drawer-head {
    align-items: stretch;
    flex-direction: column;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.5; }
body.modal-open { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; width: 100%; }

.topbar, .footer, .page { width: var(--content); margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: baseline; gap: 14px; text-decoration: none; }
.brand strong { font-size: clamp(24px, 3vw, 34px); font-weight: 620; }
.brand span { color: var(--muted); font-weight: 350; }
.nav { display: flex; align-items: center; gap: 10px; }
.page { padding: 30px 0 42px; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); color: var(--muted); }
.footer-credit { flex: 0 0 100%; text-align: center; font-size: 13px; color: var(--muted); }
.footer-credit a { color: var(--accent); font-weight: 620; text-decoration: none; }
.footer-credit a:hover { text-decoration: underline; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 34px; align-items: center; padding: 34px 0 42px; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-weight: 620; font-size: 14px; }
h1 { margin: 0; max-width: 760px; font-size: clamp(34px, 5vw, 58px); line-height: 1.05; font-weight: 620; }
h2 { margin: 0; font-size: 28px; font-weight: 620; }
h3 { margin: 0; font-size: 20px; font-weight: 620; }
p { overflow-wrap: anywhere; }
.lead { margin: 18px 0 0; color: var(--muted); font-size: 18px; }
.hero-panel, .card, .modal, .panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 1px 0 rgba(30,40,54,.02); }
.hero-panel { padding: 20px; }
.metric { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.metric:last-child { border-bottom: 0; }
.metric b { display: block; font-size: 20px; }
.metric span { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.button, .primary-button, .secondary-button, .icon-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; border-radius: var(--radius); font-weight: 620; text-decoration: none; border: 1px solid var(--line); background: #fff; color: var(--text); }
.primary-button { border-color: var(--accent); background: var(--accent); color: #fff; padding: 10px 16px; }
.primary-button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.secondary-button, .button { padding: 10px 16px; border-color: var(--accent); color: var(--accent); }
.secondary-button:hover, .button:hover { background: #edfafa; }
.icon-button { width: 40px; height: 40px; padding: 0; font-size: 22px; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 18px; }
.catalog-toolbar b { font-size: 18px; font-weight: 620; }
.view-toggle { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.view-toggle button { min-height: 36px; padding: 7px 12px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-weight: 620; }
.view-toggle button.active { background: #fff; color: var(--accent); box-shadow: 0 1px 4px rgba(30,40,54,.08); }
.catalog-table-wrap { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.catalog-table { width: 100%; border-collapse: collapse; }
.catalog-table th, .catalog-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.catalog-table tr:last-child td { border-bottom: 0; }
.catalog-table th { color: var(--muted); font-size: 13px; font-weight: 620; background: #fbfcfd; }
.table-product { width: 100%; display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; }
.table-product-image { width: 72px; aspect-ratio: 4 / 3; display: grid; place-items: center; border-radius: var(--radius); background: var(--soft); overflow: hidden; }
.table-product-image img { width: 100%; height: 100%; object-fit: contain; }
.table-product b { display: block; font-size: 16px; font-weight: 620; }
.table-product small { display: block; max-width: 560px; margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.table-weight { color: var(--muted); white-space: nowrap; }
.table-price { color: var(--accent); font-weight: 620; white-space: nowrap; }
.table-action { width: 220px; }
.table-action button { width: 100%; white-space: nowrap; }
.card { overflow: hidden; }
.card-body { padding: 14px; }
.product-image { width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; background: var(--soft); display: grid; place-items: center; }
.product-image img { height: 100%; object-fit: contain; }
.product-title { margin: 0 0 8px; font-size: 19px; font-weight: 620; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { margin: 0; color: var(--accent); font-size: 18px; font-weight: 620; }
.weight { margin: 0; color: var(--muted); font-size: 14px; font-weight: 520; text-align: right; }
.product-actions { padding: 0 14px 14px; }
.product-actions button { width: 100%; }
.is-added { border-color: var(--success); background: var(--success); color: #fff; }

.cart-button { position: relative; min-width: 76px; gap: 8px; }
.cart-count { min-width: 24px; height: 24px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; }
.side-panel { position: fixed; inset: 0 0 0 auto; z-index: 40; width: min(430px, 100%); background: #fff; border-left: 1px solid var(--line); box-shadow: var(--shadow); transform: translateX(105%); transition: transform .18s ease; display: flex; flex-direction: column; }
.side-panel.open { transform: translateX(0); }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 18px; border-bottom: 1px solid var(--line); }
.panel-body { padding: 18px; display: grid; gap: 12px; overflow: auto; }
.panel-foot { margin-top: auto; padding: 18px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.qty { display: grid; grid-template-columns: 34px 32px 34px 34px; gap: 4px; align-items: center; }
.qty strong { display: inline-grid; place-items: center; min-width: 32px; height: 32px; }
.qty button { width: 32px; height: 32px; border: 1px solid var(--line); background: #fff; border-radius: 6px; font-weight: 620; }
.qty .danger { color: var(--danger); border-color: #f0caca; }
.total { display: flex; justify-content: space-between; font-size: 18px; }

.overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 18px; background: rgba(20,26,34,.48); }
.modal { width: min(760px, 100%); max-height: calc(100vh - 36px); overflow: auto; box-shadow: var(--shadow); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h2, .modal-head p { margin: 0; }
.modal-head p { color: var(--muted); }
.modal-body { padding: 20px 22px 22px; display: grid; gap: 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px 20px; border-top: 1px solid var(--line); background: #fbfcfd; }
.detail-grid { display: grid; grid-template-columns: 42% 1fr; gap: 22px; }
.detail-image { min-height: 320px; display: grid; place-items: center; }
.detail-image img { height: 100%; object-fit: contain; }
.spec-list { display: grid; gap: 7px; padding: 0; margin: 0; list-style: none; }
.spec-list li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 7px; border-bottom: 1px solid var(--line); }

.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 520; color: #454b54; }
.form input, .form textarea, .form select { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 3px solid rgba(7,140,140,.14); border-color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.delivery-box { padding: 13px; border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 10px; }
.delivery-terms { white-space: pre-line; }
.toggle { display: flex !important; grid-template-columns: none !important; align-items: center; gap: 10px !important; }
.toggle input { width: 18px; }
.notice { padding: 12px; border-radius: var(--radius); background: var(--soft); color: var(--muted); }
.toast { position: fixed; right: 18px; bottom: 18px; z-index: 80; padding: 13px 15px; border-radius: var(--radius); background: #202934; color: #fff; box-shadow: var(--shadow); }

.auth-wrap { width: min(520px, calc(100% - 32px)); margin: 42px auto; }
.admin-page .topbar {
  width: 100%;
  margin: 0;
  padding: 18px 24px;
}

.admin-page .brand {
  min-width: 0;
}

.admin-page .nav {
  margin-left: auto;
}

.admin-layout { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 76px); }
.sidebar { border-right: 1px solid var(--line); padding: 18px; display: grid; align-content: start; gap: 10px; }
.sidebar button { justify-content: flex-start; }
.sidebar button.active { border-color: var(--accent); background: #eefaf7; color: var(--accent-dark); }
.admin-main { padding: 22px; display: grid; gap: 18px; }
.admin-main h1 { margin: 0 0 20px; }
.admin-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.admin-section-head h1 { margin: 0; }
.admin-section-head p { margin: 6px 0 0; max-width: 620px; color: var(--muted); }
.admin-table-actions { display: flex; justify-content: flex-start; margin: -4px 0 14px; }
.orders-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(180px, .8fr) minmax(150px, .6fr);
  gap: 12px;
  margin: -6px 0 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfd;
}
.orders-toolbar label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 620; }
.orders-toolbar input,
.orders-toolbar select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font: inherit;
}
.orders-toolbar input:focus,
.orders-toolbar select:focus { outline: 3px solid rgba(7,140,140,.14); border-color: var(--accent); }
.orders-table-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.orders-table th {
  padding: 13px 14px;
  background: #f6faf9;
  color: #44515d;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .02em;
  vertical-align: middle;
}
.orders-table td { padding: 14px; vertical-align: middle !important; }
.orders-table tbody tr { transition: background .16s ease; }
.orders-table tbody tr:hover { background: #fbfdfc; }
.order-date-cell strong,
.order-customer-cell b { display: block; }
.order-date-cell span,
.order-customer-cell span { display: block; margin-top: 4px; color: var(--muted); }
.order-sum-cell { font-weight: 620; white-space: nowrap; }
.order-action-cell { text-align: right; white-space: nowrap; }
.order-status-select {
  min-width: 150px;
  min-height: 34px;
  padding: 6px 34px 6px 11px;
  border: 1px solid #cde9e3;
  border-radius: 999px;
  background: #eefaf7;
  color: #08736f;
  font: inherit;
  font-size: 13px;
  font-weight: 620;
  cursor: pointer;
}
.order-status-select:focus { outline: 3px solid rgba(7,140,140,.14); border-color: var(--accent); }
.order-status-select:disabled { cursor: wait; opacity: .7; }
.order-edit-panel,
.order-items-editor {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.order-edit-panel {
  display: grid;
  grid-template-columns: minmax(160px, .8fr) minmax(180px, 1fr) minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: end;
}
.order-edit-panel > div span,
.order-items-head span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.order-edit-panel > div strong { display: block; margin-top: 6px; font-size: 16px; }
.order-edit-panel label,
.order-add-item-form label { display: grid; gap: 4px; color: #454b54; font-weight: 520; }
.order-edit-panel input,
.order-edit-panel textarea,
.order-add-item-form input,
.order-add-item-form select,
.order-item-qty {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
}
.order-edit-panel input:focus,
.order-edit-panel textarea:focus,
.order-add-item-form input:focus,
.order-add-item-form select:focus,
.order-item-qty:focus { outline: 3px solid rgba(7,140,140,.14); border-color: var(--accent); }
.order-edit-wide { grid-column: 1 / -2; }
.order-items-editor { display: grid; gap: 8px; }
.order-detail-items td { vertical-align: middle; }
.order-detail-items td span { color: var(--muted); font-size: 13px; }
.order-item-qty { max-width: 92px; }
.order-item-actions { display: flex; justify-content: flex-end; gap: 8px; white-space: nowrap; }
.danger-button { color: var(--danger); border-color: #f0caca; }
.danger-button:hover { background: #fff6f6; border-color: #e8b4b4; }
.order-add-item-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 100px auto;
  gap: 10px;
  align-items: end;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.order-detail-total,
.order-detail-status {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(190px, 260px) auto;
  gap: 10px;
  align-items: end;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid #cde9e3;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f5fcfa 0%, #ffffff 100%);
}
.order-detail-total {
  border-color: #d7e0ea;
  background: linear-gradient(180deg, #f7fafc 0%, #ffffff 100%);
}
.order-detail-total span,
.order-detail-status span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.order-detail-total strong,
.order-detail-status strong {
  display: inline-flex;
  margin-top: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eefaf7;
  color: #08736f;
  font-size: 14px;
}
.order-detail-total strong {
  background: #eef3f8;
  color: #26384a;
}
.order-detail-total-control input,
.order-detail-status-control select {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  font-weight: 620;
}
.order-detail-total-control input:focus,
.order-detail-status-control select:focus { outline: 3px solid rgba(7,140,140,.14); border-color: var(--accent); }
.order-detail-total .primary-button,
.order-detail-status .primary-button,
.order-add-item-form .primary-button,
.order-edit-panel .primary-button {
  min-width: 120px;
  min-height: 36px;
  padding: 8px 12px;
}
.delivery-cell {
  display: inline-flex;
  min-width: 48px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-weight: 620;
  font-size: 13px;
}
button.delivery-cell { border: 0; cursor: pointer; font: inherit; }
.delivery-cell-yes { background: #eaf8ef; color: #177a32; }
button.delivery-cell-yes:hover { box-shadow: 0 0 0 2px rgba(31, 168, 90, .18); }
.delivery-cell-no { background: #f2f4f6; color: var(--muted); }
.orders-empty { padding: 24px !important; text-align: center !important; color: var(--muted); }
.delivery-modal { width: min(560px, 100%); }
.delivery-info-list { display: grid; gap: 10px; margin: 0; }
.delivery-info-list div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.delivery-info-list div:last-child { border-bottom: 0; }
.delivery-info-list dt { color: var(--muted); font-weight: 620; }
.delivery-info-list dd { margin: 0; font-weight: 620; }
.admin-product-modal { width: min(880px, 100%); }
.admin-product-modal .modal-body { gap: 16px; }
.admin-product-modal .file-field input { padding: 10px; background: var(--soft); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.products-table .product-status-head,
.products-table .product-status-cell { width: 86px; text-align: center; vertical-align: middle; }
.product-status-dot {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 2px solid #ffffff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 1px var(--line), 0 3px 10px rgba(26, 41, 58, .12);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.product-status-dot:hover { transform: scale(1.12); box-shadow: 0 0 0 1px var(--accent), 0 5px 14px rgba(0, 125, 137, .18); }
.product-status-dot:focus-visible { outline: 3px solid rgba(0, 125, 137, .2); outline-offset: 3px; }
.product-status-dot.is-active { background: #1fa85a; }
.product-status-dot.is-inactive { background: #d93a35; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.badge { display: inline-flex; padding: 3px 8px; border-radius: 999px; background: var(--soft); font-size: 13px; }
.badge.published, .badge.completed, .badge.ready { background: #eaf8ef; color: #177a32; }
.badge.unpublished, .badge.cancelled { background: #fdeeee; color: #ad3030; }
.badge.new { background: #edfafa; color: var(--accent-dark); }
.status-settings-list { margin-top: 14px; display: grid; gap: 10px; }
.status-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.status-row:last-child { border-bottom: 0; }
.status-row strong { display: block; }
.status-row span { color: var(--muted); font-size: 13px; }

.storefront-page {
  color: #333333;
}

.storefront-page .topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.96);
}

.storefront-page .brand {
  flex-wrap: wrap;
  gap: 8px 18px;
  min-width: 0;
}

.storefront-page .brand strong {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 620;
}

.storefront-page .brand span {
  font-size: 15px;
  font-weight: 350;
  white-space: nowrap;
}

.storefront-page .page {
  padding: 28px 0 36px;
}

.storefront-page .hero {
  padding: 34px 0 26px;
}

.storefront-page h1 {
  max-width: 720px;
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.12;
}

.storefront-page .card {
  min-width: 0;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.storefront-page .card:hover {
  transform: translateY(-4px);
  border-color: #d7dce4;
  box-shadow: var(--shadow);
}

.storefront-page .product-image {
  overflow: hidden;
  background: #f7f8fa;
  text-align: left;
}

.storefront-page .product-image img {
  object-fit: contain;
}

@media (max-width: 860px) {
  .hero, .detail-grid, .admin-layout { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); display: flex; overflow: auto; }
}

@media (max-width: 560px) {
  :root { --content: calc(100% - 20px); }
  .topbar, .footer { display: grid; }
  .footer { justify-items: center; text-align: center; }
  .footer > * { text-align: center !important; }
  .grid, .form-row { grid-template-columns: 1fr; }
  .catalog-toolbar {
    align-items: center;
  }

  .catalog-toolbar b {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
  }

  .view-toggle {
    flex-shrink: 0;
  }

  .catalog-table-wrap {
    border: 0;
    background: transparent;
  }

  .catalog-table,
  .catalog-table tbody,
  .catalog-table tr,
  .catalog-table td {
    display: block;
    width: 100%;
  }

  .catalog-table thead {
    display: none;
  }

  .catalog-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px 12px;
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
  }

  .catalog-table td {
    min-width: 0;
    padding: 0;
    border-bottom: 0;
  }

  .table-product {
    display: block;
    min-width: 0;
    grid-template-columns: none;
  }

  .table-product-image {
    display: none;
  }

  .table-product b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .table-product small {
    display: none;
  }

  .table-weight,
  .table-price {
    display: inline-block !important;
    width: auto !important;
  }

  .table-weight::before {
    content: "";
  }

  .table-price {
    margin-right: 0;
  }

  .table-action {
    grid-column: 1 / -1;
    width: 100%;
    padding-top: 4px !important;
  }

  .admin-section-head {
    display: grid;
    gap: 12px;
  }

  .admin-section-head .primary-button {
    width: 100%;
  }

  .orders-toolbar {
    grid-template-columns: 1fr;
  }

  .orders-table-panel {
    overflow-x: auto;
  }

  .orders-table {
    min-width: 760px;
  }

  .delivery-info-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .order-edit-panel,
  .order-add-item-form {
    grid-template-columns: 1fr;
  }

  .order-edit-wide {
    grid-column: auto;
  }

  .order-item-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .order-detail-total,
  .order-detail-status {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .order-detail-total .primary-button,
  .order-detail-status .primary-button {
    width: 100%;
  }

  .modal-actions {
    display: grid;
  }

  .modal-actions button {
    width: 100%;
  }

  .storefront-page {
    padding-bottom: 0;
  }

  .storefront-page .topbar {
    align-items: start;
    gap: 10px;
  }

  .storefront-page .brand {
    display: grid;
    gap: 4px;
    align-items: start;
  }

  .storefront-page .brand strong {
    white-space: nowrap;
    font-size: clamp(30px, 8.8vw, 40px);
    line-height: 1.08;
  }

  .storefront-page .brand span {
    display: block;
    font-size: clamp(18px, 6vw, 25px);
    line-height: 1.25;
  }

  .storefront-page .cart-button {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 35;
    width: 58px;
    min-width: 58px;
    height: 58px;
    min-height: 58px;
    padding: 0;
    border: 1px solid rgba(7, 140, 140, .34);
    border-radius: 999px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 14px 30px rgba(16, 44, 50, .18);
    backdrop-filter: blur(12px);
    font-size: 24px;
    line-height: 1;
  }

  .storefront-page .cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border: 2px solid #fff;
    font-size: 12px;
    font-weight: 700;
  }

  .storefront-page .toast {
    left: 14px;
    right: auto;
    bottom: calc(25px + env(safe-area-inset-bottom));
    max-width: calc(100vw - 116px);
    padding: 10px 0 10px 12px;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .storefront-page .footer {
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }

  .storefront-page .overlay {
    padding: 0;
    place-items: stretch;
  }

  .storefront-page .modal {
    width: 100vw;
    max-height: 100dvh;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }
}

/* Landing */
.landing-page {
  --landing-ink: #163238;
  --landing-muted: #587177;
  --landing-teal: #078c8c;
  --landing-teal-dark: #046f72;
  --landing-mint: #dff7ef;
  --landing-amber: #ffb84d;
  --landing-coral: #f26b5b;
  --landing-cream: #fff8ea;
  background:
    radial-gradient(circle at 16% 10%, rgba(255,184,77,.32), transparent 28%),
    radial-gradient(circle at 82% 4%, rgba(7,140,140,.24), transparent 31%),
    linear-gradient(180deg, #f8fffc 0%, #ffffff 42%, #f5fbfa 100%);
  color: var(--landing-ink);
  overflow-x: hidden;
}

.landing-page .topbar,
.landing-page .footer,
.landing-shell {
  width: var(--content);
  margin: 0 auto;
}

.landing-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 0;
  padding: 18px;
  backdrop-filter: blur(18px);
}

.landing-topbar::before {
  content: "";
  position: absolute;
  inset: 8px -10px;
  z-index: -1;
  border: 1px solid rgba(7,140,140,.13);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 18px 46px rgba(11,76,82,.08);
}

.landing-brand strong {
  color: var(--landing-ink);
  letter-spacing: 0;
}

.landing-brand span {
  color: var(--landing-teal-dark);
  font-weight: 520;
}

.landing-nav {
  gap: 12px;
}

.landing-nav-link {
  color: var(--landing-muted);
  text-decoration: none;
  font-weight: 560;
}

.landing-nav-link:last-of-type {
  margin-right: 22px;
}

.landing-nav-link:hover {
  color: var(--landing-teal-dark);
}

.landing-shell {
  padding: 28px 0 64px;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  gap: 38px;
  align-items: center;
  min-height: calc(100vh - 130px);
  padding: 26px 0 54px;
}

.landing-hero-copy {
  min-width: 0;
}

.landing-kicker {
  margin: 0 0 12px;
  color: var(--landing-teal-dark);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.landing-hero h1,
.landing-section h2,
.landing-flow h2,
.landing-benefits h2,
.landing-price h2,
.landing-final h2 {
  margin: 0;
  letter-spacing: 0;
  color: var(--landing-ink);
}

.landing-hero h1 {
  max-width: 830px;
  font-size: clamp(42px, 6.4vw, 76px);
  line-height: .96;
  font-weight: 780;
  overflow-wrap: anywhere;
}

.landing-lead {
  max-width: 690px;
  margin: 22px 0 0;
  color: var(--landing-muted);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.62;
}

.landing-week-promo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 8px;
  max-width: 610px;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(255,184,77,.78);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255,248,234,.96), rgba(255,184,77,.88)),
    #ffcf67;
  box-shadow: 0 22px 44px rgba(138, 86, 0, .16);
}

.landing-week-promo::before {
  content: "";
  position: absolute;
  inset: -54px -34px auto auto;
  z-index: -1;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(255,255,255,.52);
}

.landing-week-promo::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: 16px;
  z-index: -1;
  width: 170px;
  height: 34px;
  background: rgba(7,140,140,.20);
  transform: rotate(-14deg);
}

.landing-week-promo span {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: #152f35;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.landing-week-promo strong {
  color: #111f23;
  font-size: clamp(31px, 4.2vw, 52px);
  line-height: .98;
}

.landing-week-promo p {
  max-width: 430px;
  margin: 0;
  color: #4b3918;
  font-size: 17px;
  font-weight: 680;
}

.landing-price-pill {
  width: fit-content;
  display: flex;
  align-items: baseline;
  gap: 11px;
  margin-top: 26px;
  padding: 11px 15px 13px;
  border: 1px solid rgba(255,184,77,.6);
  border-radius: 999px;
  background: linear-gradient(135deg, #fff 0%, var(--landing-cream) 100%);
  box-shadow: 0 16px 32px rgba(255,184,77,.18);
}

.landing-price-pill span,
.landing-price-pill em {
  color: #7b633d;
  font-size: 14px;
  font-style: normal;
  font-weight: 620;
}

.landing-price-pill strong {
  color: #111f23;
  font-size: 31px;
  line-height: 1;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.landing-primary,
.landing-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 20px;
  border-radius: 14px;
  font-weight: 760;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.landing-primary {
  border: 1px solid var(--landing-teal-dark);
  background: linear-gradient(135deg, var(--landing-teal) 0%, var(--landing-teal-dark) 100%);
  color: #fff;
  box-shadow: 0 18px 34px rgba(7,140,140,.24);
}

.landing-secondary {
  border: 1px solid rgba(7,140,140,.24);
  background: rgba(255,255,255,.76);
  color: var(--landing-teal-dark);
}

.landing-primary:hover,
.landing-secondary:hover {
  transform: translateY(-2px);
}

.landing-primary:hover {
  box-shadow: 0 22px 42px rgba(7,140,140,.28);
}

.landing-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.landing-trust span {
  padding: 7px 10px;
  border: 1px solid rgba(7,140,140,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.68);
  color: var(--landing-muted);
  font-size: 14px;
  font-weight: 600;
}

.landing-preview {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
}

.landing-preview::before {
  content: "";
  position: absolute;
  width: min(470px, 96%);
  aspect-ratio: 1;
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(255,184,77,.38), rgba(242,107,91,.20)),
    radial-gradient(circle at 70% 24%, rgba(7,140,140,.44), transparent 42%);
  transform: rotate(-7deg);
  filter: saturate(1.08);
}

.preview-window {
  position: relative;
  z-index: 2;
  width: min(430px, 100%);
  padding: 16px;
  border: 1px solid rgba(22,50,56,.08);
  border-radius: 26px;
  background: rgba(255,255,255,.90);
  box-shadow: 0 28px 70px rgba(10,58,64,.18);
  backdrop-filter: blur(18px);
}

.preview-top {
  display: grid;
  grid-template-columns: 10px 10px 10px 1fr;
  gap: 7px;
  align-items: center;
  padding-bottom: 14px;
}

.preview-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--landing-coral);
}

.preview-top span:nth-child(2) { background: var(--landing-amber); }
.preview-top span:nth-child(3) { background: var(--landing-teal); }

.preview-top b {
  justify-self: end;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--landing-muted);
  font-size: 12px;
  font-weight: 700;
}

.preview-store {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #103d42 0%, #067d82 100%);
  color: #fff;
}

.preview-store p {
  margin: 0 0 2px;
  color: rgba(255,255,255,.74);
  font-size: 13px;
}

.preview-store strong {
  font-size: 18px;
}

.preview-store small {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.preview-grid article {
  padding: 12px;
  border: 1px solid rgba(22,50,56,.08);
  border-radius: 18px;
  background: #fff;
}

.preview-food {
  height: 92px;
  border-radius: 15px;
  background: #eef7f5;
  position: relative;
  overflow: hidden;
}

.preview-food::before,
.preview-food::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #b67945;
  box-shadow: inset 0 -8px 0 rgba(80,45,24,.18);
}

.preview-food-1::before {
  width: 84px;
  height: 42px;
  left: 26px;
  top: 26px;
}

.preview-food-1::after {
  width: 58px;
  height: 30px;
  left: 62px;
  top: 42px;
  background: #d9b879;
}

.preview-food-2::before {
  width: 68px;
  height: 46px;
  left: 24px;
  top: 26px;
}

.preview-food-2::after {
  width: 70px;
  height: 44px;
  right: 22px;
  top: 20px;
}

.preview-grid b {
  display: block;
  margin-top: 9px;
  font-size: 15px;
}

.preview-grid span {
  color: var(--landing-muted);
  font-size: 13px;
  font-weight: 620;
}

.preview-order {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
  padding: 14px;
  border-radius: 18px;
  background: #f5faf9;
}

.preview-order span,
.preview-card span {
  display: block;
  color: var(--landing-muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.preview-order b,
.preview-card b {
  color: var(--landing-ink);
}

.preview-order em {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--landing-mint);
  color: var(--landing-teal-dark);
  font-style: normal;
  font-weight: 800;
}

.preview-card {
  position: absolute;
  z-index: 3;
  width: 170px;
  padding: 13px 14px;
  border: 1px solid rgba(22,50,56,.08);
  border-radius: 17px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 20px 42px rgba(10,58,64,.14);
}

.preview-card-left {
  left: 0;
  bottom: 62px;
}

.preview-card-right {
  right: 0;
  top: 76px;
}

.landing-section,
.landing-flow,
.landing-benefits,
.landing-price,
.landing-final {
  margin-top: 34px;
}

.landing-section-head {
  max-width: 730px;
  margin-bottom: 20px;
}

.landing-section h2,
.landing-flow h2,
.landing-benefits h2,
.landing-price h2,
.landing-final h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
  font-weight: 760;
}

.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.landing-feature-grid article,
.landing-flow-card,
.landing-benefits,
.landing-price,
.landing-final {
  border: 1px solid rgba(22,50,56,.08);
  border-radius: 22px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 18px 42px rgba(10,58,64,.07);
}

.landing-feature-grid article {
  min-height: 230px;
  padding: 18px;
}

.landing-feature-grid span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--landing-mint);
  color: var(--landing-teal-dark);
  font-weight: 800;
}

.landing-feature-grid h3 {
  margin: 24px 0 8px;
  color: var(--landing-ink);
  font-size: 20px;
}

.landing-feature-grid p,
.landing-benefit-copy p,
.landing-price p,
.landing-final p,
.landing-steps p {
  color: var(--landing-muted);
}

.landing-flow-card {
  padding: clamp(22px, 4vw, 36px);
  background:
    linear-gradient(135deg, rgba(255,255,255,.88), rgba(223,247,239,.72)),
    radial-gradient(circle at 82% 18%, rgba(255,184,77,.24), transparent 26%);
}

.landing-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.landing-steps div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.78);
}

.landing-steps b {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--landing-amber);
  color: #3c2a0c;
}

.landing-steps span {
  display: block;
  margin-top: 14px;
  font-size: 18px;
  font-weight: 760;
}

.landing-benefits {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 22px;
  align-items: center;
  padding: clamp(22px, 4vw, 36px);
}

.landing-benefit-list {
  display: grid;
  gap: 12px;
}

.landing-benefit-list div {
  padding: 16px;
  border-left: 5px solid var(--landing-teal);
  border-radius: 16px;
  background: #fff;
}

.landing-benefit-list strong,
.landing-benefit-list span {
  display: block;
}

.landing-benefit-list span {
  margin-top: 3px;
  color: var(--landing-muted);
}

.landing-price {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 24px;
  align-items: center;
  padding: clamp(22px, 4vw, 36px);
  background:
    linear-gradient(135deg, #103d42 0%, #067d82 100%);
  color: #fff;
}

.landing-price .landing-kicker,
.landing-price h2,
.landing-price p {
  color: #fff;
}

.landing-price p {
  max-width: 640px;
  opacity: .82;
  font-size: 18px;
}

.landing-price-box {
  padding: 22px;
  border-radius: 20px;
  background: #fff;
  color: var(--landing-ink);
  box-shadow: 0 24px 54px rgba(0,0,0,.18);
}

.landing-price-box strong {
  display: block;
  font-size: 54px;
  line-height: 1;
}

.landing-price-box > span {
  display: block;
  margin-top: 4px;
  color: var(--landing-muted);
  font-weight: 650;
}

.landing-price-promo {
  margin: 14px 0 0;
  padding: 11px 12px;
  border: 1px solid rgba(255,184,77,.55);
  border-radius: 14px;
  background: var(--landing-cream);
  color: #6a4712 !important;
  font-weight: 720;
  opacity: 1 !important;
}

.landing-price-box ul {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 20px 0;
  list-style: none;
}

.landing-price-box li {
  position: relative;
  padding-left: 24px;
  color: var(--landing-muted);
  font-weight: 560;
}

.landing-price-box li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--landing-teal);
}

.landing-price-box .landing-primary,
.landing-final .landing-primary {
  width: 100%;
}

.landing-final {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: clamp(28px, 6vw, 58px);
  background:
    radial-gradient(circle at 15% 20%, rgba(255,184,77,.25), transparent 24%),
    linear-gradient(135deg, rgba(255,255,255,.82), rgba(223,247,239,.72));
}

.landing-final p {
  max-width: 590px;
  margin: 14px 0 22px;
  font-size: 18px;
}

.landing-final .landing-primary {
  max-width: 290px;
}

.landing-footer {
  border-top: 0;
  padding-bottom: 32px;
}

@media (max-width: 1020px) {
  .landing-hero,
  .landing-benefits,
  .landing-price {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    min-height: 0;
  }

  .landing-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-preview {
    min-height: 500px;
  }
}

@media (max-width: 720px) {
  .landing-topbar {
    gap: 12px;
  }

  .landing-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .landing-nav-link {
    display: none;
  }

  .landing-hero {
    padding-top: 12px;
  }

  .landing-hero h1 {
    font-size: clamp(36px, 11vw, 50px);
    line-height: 1;
  }

  .landing-price-pill {
    align-items: center;
    flex-wrap: wrap;
    border-radius: 18px;
  }

  .landing-actions,
  .landing-actions a {
    width: 100%;
  }

  .landing-feature-grid,
  .landing-steps {
    grid-template-columns: 1fr;
  }

  .landing-preview {
    min-height: auto;
    display: block;
    padding: 18px 0 0;
  }

  .landing-preview::before,
  .preview-card {
    display: none;
  }

  .preview-window {
    width: 100%;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .landing-price {
    padding: 22px;
  }
}

/* Final cascade layer for the system admin app */
.system-admin-page {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(247, 248, 245, 0.96)),
    radial-gradient(circle at 82% 0%, rgba(0, 127, 117, 0.08), transparent 34%),
    var(--system-bg, #f7f8f5);
  color: var(--system-ink, #1e2422);
}

.system-admin-page :focus-visible {
  outline: 3px solid rgba(0, 127, 117, 0.18);
  outline-offset: 2px;
}

.system-admin-page .system-topbar {
  min-height: 64px;
  padding: 0 24px;
  border-bottom: 1px solid var(--system-line, #dfe5df);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 0 rgba(30, 36, 34, 0.04);
}

.system-admin-page .system-brand span {
  border: 1px solid var(--system-line, #dfe5df);
  border-radius: 999px;
  background: var(--system-surface-2, #f1f4ee);
  padding: 3px 9px;
  color: var(--system-muted, #69736f);
  font-size: 12px;
  font-weight: 800;
}

.system-admin-page .system-layout {
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: calc(100vh - 64px);
}

.system-admin-page .system-sidebar {
  top: 64px;
  height: calc(100vh - 64px);
  border-right: 1px solid var(--system-line, #dfe5df);
  background: #202622;
  padding: 18px 12px;
}

.system-admin-page .system-sidebar::before {
  content: "РќР°РІРёРіР°С†РёСЏ";
  display: block;
  margin: 0 10px 12px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.system-admin-page .system-sidebar button {
  display: flex;
  align-items: center;
  min-height: 40px;
  margin-bottom: 3px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 750;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.system-admin-page .system-sidebar button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.system-admin-page .system-sidebar button.active {
  background: #fff;
  color: var(--system-ink, #1e2422);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.system-admin-page .system-sidebar button.active::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 9px;
  border-radius: 999px;
  background: var(--system-accent, #007f75);
}

.system-admin-page .system-main {
  padding: 24px;
}

.system-admin-page .system-view {
  max-width: 1480px;
  margin: 0 auto;
}

.system-admin-page .system-page-head {
  min-height: 48px;
  margin-bottom: 18px;
}

.system-admin-page .system-page-head h1 {
  font-size: 26px;
  font-weight: 850;
  letter-spacing: 0;
}

.system-admin-page .system-filters,
.system-admin-page .system-form,
.system-admin-page .system-panel,
.system-admin-page .system-table-wrap,
.system-admin-page .system-kpi,
.system-admin-page .system-drawer {
  border: 1px solid var(--system-line, #dfe5df);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--system-shadow, 0 18px 42px rgba(30, 36, 34, 0.08));
}

.system-admin-page .system-filters {
  align-items: center;
  border-radius: 10px;
  padding: 6px;
}

.system-admin-page .system-filters input,
.system-admin-page .system-filters select {
  min-height: 36px;
  border: 0;
  background: transparent;
}

.system-admin-page .system-filters input {
  min-width: 330px;
}

.system-admin-page .system-form {
  align-items: end;
}

.system-admin-page .system-form input,
.system-admin-page .system-form select,
.system-admin-page .system-form textarea,
.system-admin-page .system-table select {
  min-height: 40px;
  border-color: var(--system-line-strong, #c9d3ce);
  background: #fbfcfa;
}

.system-admin-page .system-kpi-grid {
  grid-template-columns: repeat(5, minmax(168px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.system-admin-page .system-kpi {
  position: relative;
  min-height: 108px;
  overflow: hidden;
}

.system-admin-page .system-kpi::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--system-accent, #007f75);
}

.system-admin-page .system-kpi strong {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 900;
}

.system-admin-page .system-table {
  font-size: 13px;
}

.system-admin-page .system-table th,
.system-admin-page .system-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #edf1ec;
}

.system-admin-page .system-table th {
  background: #f5f7f3;
  color: var(--system-muted, #69736f);
  font-size: 11px;
  letter-spacing: 0;
}

.system-admin-page .system-table tr:hover td {
  background: #f9fbf7;
}

.system-admin-page .system-status {
  min-width: 72px;
  justify-content: center;
  border: 1px solid transparent;
  font-weight: 850;
  text-transform: capitalize;
}

.system-admin-page .system-drawer {
  box-shadow: var(--system-shadow, 0 18px 42px rgba(30, 36, 34, 0.08));
}

.system-admin-page .system-drawer-head {
  align-items: flex-start;
  border-bottom: 1px solid var(--system-line, #dfe5df);
  padding-bottom: 14px;
}

.system-admin-page .system-card-tabs {
  gap: 8px;
  border-bottom: 0;
  padding: 12px 0;
}

.system-admin-page .system-card-tabs button {
  min-height: 34px;
  border: 1px solid var(--system-line, #dfe5df);
  border-radius: 999px;
  background: #fbfcfa;
  padding: 0 12px;
  color: var(--system-muted, #69736f);
  font-size: 13px;
}

.system-admin-page .system-card-tabs button.active {
  border-color: var(--system-accent, #007f75);
  background: rgba(0, 127, 117, 0.1);
  color: var(--system-accent, #007f75);
}

@media (max-width: 1180px) {
  .system-admin-page .system-kpi-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .system-admin-page .system-filters input {
    min-width: 220px;
  }
}

@media (max-width: 980px) {
  .system-admin-page .system-layout {
    min-height: auto;
  }

  .system-admin-page .system-sidebar {
    top: auto;
    height: auto;
  }

  .system-admin-page .system-sidebar::before {
    display: none;
  }

  .system-admin-page .system-main {
    padding: 16px;
  }

  .system-admin-page .system-filters {
    align-items: stretch;
    flex-direction: column;
  }

  .system-admin-page .system-filters input {
    min-width: 0;
  }
}

