/* =====================================================================
   AutoLoop · design system (light + dark)
   Fonts: Inter (Latin) + Noto Sans Georgian (Georgian), system fallbacks.
   ===================================================================== */
:root {
  --font: "Inter", "Noto Sans Georgian", -apple-system, BlinkMacSystemFont, "Segoe UI",
          "Helvetica Neue", "BPG Arial", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --maxw: 1200px;

  --bg: #f5f7f5;
  --surface: #ffffff;
  --surface-2: #f2f6f3;
  --surface-3: #e8efea;
  --text: #0f1a14;
  --text-2: #2c3a33;
  --muted: #5d6d65;
  --border: #e1e8e3;
  --border-strong: #c9d6cd;
  --primary: #15803d;
  --primary-hover: #166534;
  --primary-ink: #ffffff;
  --accent: #a3e635;
  --accent-ink: #14260f;
  --brand-deep: #0d2b1e;
  --ring: rgba(21, 128, 61, 0.35);
  --track: #e6ede8;
  --shadow-sm: 0 1px 2px rgba(15, 30, 20, 0.06);
  --shadow: 0 1px 2px rgba(15, 30, 20, 0.05), 0 6px 20px rgba(15, 30, 20, 0.06);
  --shadow-lg: 0 18px 50px rgba(15, 30, 20, 0.16);

  --ok-bg: #dcf5e5;  --ok-fg: #14532d;
  --warn-bg: #fff3d1; --warn-fg: #7a4f00;
  --bad-bg: #ffe2de; --bad-fg: #8f1d14;
  --info-bg: #e3edfc; --info-fg: #1d4a86;
  --vio-bg: #ece7fd;  --vio-fg: #4b2fa8;
  --gray-bg: #e8ebee; --gray-fg: #45515c;

  --hero-bg: linear-gradient(155deg, #0d2b1e 0%, #0a1f16 60%, #071510 100%);
  --hero-fg: #ffffff;
  --hero-muted: #bcd6c6;

  /* aliases used by older page scripts */
  --green: var(--primary);
  --green-mid: var(--primary-hover);
  --green-dark: var(--brand-deep);
  --card: var(--surface);
  --warn-text: var(--warn-fg);
  --mint: var(--accent);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0a110d;
  --surface: #111a15;
  --surface-2: #16211b;
  --surface-3: #1d2a23;
  --text: #e7f0ea;
  --text-2: #c8d6ce;
  --muted: #91a399;
  --border: #223029;
  --border-strong: #31443a;
  --primary: #4ade80;
  --primary-hover: #86efac;
  --primary-ink: #052e16;
  --accent: #a3e635;
  --accent-ink: #14260f;
  --brand-deep: #0d2b1e;
  --ring: rgba(74, 222, 128, 0.35);
  --track: #1f2c25;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.55);

  --ok-bg: rgba(74, 222, 128, 0.14);  --ok-fg: #86efac;
  --warn-bg: rgba(250, 204, 21, 0.13); --warn-fg: #fcd34d;
  --bad-bg: rgba(248, 113, 113, 0.15); --bad-fg: #fca5a5;
  --info-bg: rgba(96, 165, 250, 0.15); --info-fg: #93c5fd;
  --vio-bg: rgba(167, 139, 250, 0.16); --vio-fg: #c4b5fd;
  --gray-bg: rgba(148, 163, 184, 0.14); --gray-fg: #cbd5e1;

  --hero-bg: linear-gradient(155deg, #0f2f21 0%, #0a1d15 55%, #060f0b 100%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); }
img { max-width: 100%; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { flex: 0 0 auto; }

/* ---------- prototype bar ---------- */
.proto-bar {
  background: var(--brand-deep);
  color: #d9eadf;
  font-size: 12.5px;
  text-align: center;
  padding: 6px 16px;
}
.proto-bar span { display: inline-flex; align-items: center; gap: 6px; }
.proto-bar .ic { color: var(--accent); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.sh-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); flex: 0 0 auto; }
.brand-logo { width: 40px; height: auto; display: block; }
.brand-name { font-size: 21px; font-weight: 800; letter-spacing: -0.03em; }
.brand-name span { color: var(--primary); }
.main-nav { display: flex; align-items: center; gap: 2px; flex: 1 1 auto; min-width: 0; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 550;
  padding: 8px 11px;
  border-radius: 10px;
  white-space: nowrap;
}
.nav-link .ic { color: var(--muted); }
.nav-link:hover { background: var(--surface-2); color: var(--text); }
.nav-link.active { background: var(--ok-bg); color: var(--ok-fg); }
.nav-link.active .ic { color: currentColor; }
.sh-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; margin-left: auto; }

.lang-switch { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.lang-btn {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  padding: 4px 9px;
  border-radius: 7px;
  min-width: 34px;
  text-align: center;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

.icon-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
}
.icon-toggle:hover { background: var(--surface-2); color: var(--text); }
.when-dark { display: none; }
:root[data-theme="dark"] .when-dark { display: inline; }
:root[data-theme="dark"] .when-light { display: none; }
.menu-btn { display: none; }

.org-switch { display: flex; align-items: center; gap: 6px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 0 0 0 10px; max-width: 260px; }
.org-switch-label { display: inline-flex; color: var(--muted); }
.org-switch select { border: 0; background: transparent; padding: 8px 8px 8px 0; font-size: 13px; font-weight: 600; max-width: 220px; box-shadow: none; }
.org-switch select:focus { outline: none; }

.btn-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary); color: var(--primary-ink);
  font-weight: 700; font-size: 14px; text-decoration: none;
  padding: 9px 14px; border-radius: 10px; white-space: nowrap;
}
.btn-cta:hover { background: var(--primary-hover); }

@media (max-width: 1180px) {
  .nav-link { padding: 8px 9px; font-size: 13.5px; }
  .nav-link .ic { display: none; }
}
@media (max-width: 1000px) {
  .menu-btn { display: inline-grid; }
  .main-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px 16px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .nav-link { padding: 12px; font-size: 15px; }
  .nav-link .ic { display: inline; }
  .org-switch { max-width: 170px; }
  .org-switch select { max-width: 130px; }
}
@media (max-width: 560px) {
  .sh-inner { padding: 8px 12px; gap: 8px; }
  .brand-name { font-size: 18px; }
  .brand-logo { width: 34px; }
  .org-switch { display: none; }
  .header-cta { display: none; }
  .icon-toggle { width: 36px; height: 36px; }
}

/* ---------- layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 28px 20px 56px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin: 0; }
.hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); }
body.lang-ka .eyebrow { letter-spacing: 0.02em; }
h1 { margin: 0 0 6px; font-size: 30px; line-height: 1.2; letter-spacing: -0.025em; font-weight: 800; }
h2 { margin: 34px 0 12px; font-size: 20px; letter-spacing: -0.015em; font-weight: 750; }
h2 small { font-size: 13px; margin-left: 6px; }
h3 { margin: 0 0 12px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
body.lang-ka h3 { letter-spacing: 0.01em; }
.muted { color: var(--muted); font-weight: 400; margin-top: 0; }
.pill { font-size: 12px; font-weight: 650; padding: 5px 11px; border-radius: 999px; background: var(--ok-bg); color: var(--ok-fg); }

/* ---------- cards / KPIs ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-bottom: 14px; }
.grid .card { margin-bottom: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 18px 0 8px; }
.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  min-height: 96px;
}
.kpi::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--primary); }
.kpi.waste::before { background: #ea580c; }
.kpi.quotes::before { background: #7c3aed; }
.kpi .value { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.kpi .label { font-size: 13px; color: var(--muted); margin-top: 2px; }
a.kpi { text-decoration: none; color: inherit; display: block; transition: transform .12s, box-shadow .12s; }
a.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
.skeleton::before { display: none; }
@keyframes shimmer { to { background-position: -200% 0; } }

.bar-row { display: grid; grid-template-columns: 140px 1fr 72px; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 10px; }
.bar-track { background: var(--track); border-radius: 6px; height: 10px; overflow: hidden; }
.bar-fill { background: linear-gradient(90deg, var(--primary), var(--accent)); height: 100%; border-radius: 6px; width: 0; transition: width .7s ease; }
.bar-value { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { color: var(--muted); font-weight: 650; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }
body.lang-ka th { letter-spacing: 0; text-transform: none; font-size: 12.5px; }
tbody tr:hover td { background: var(--surface-2); }
td.code, .code { font-family: var(--mono); font-size: 13px; color: var(--primary); }
td.num { font-variant-numeric: tabular-nums; }
.sub { display: block; font-size: 12px; color: var(--muted); }
table.clickable tbody tr { cursor: pointer; }
table.clickable tbody tr:focus { outline: 2px solid var(--ring); outline-offset: -2px; }
td.sub-cell { color: var(--muted); font-size: 12px; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--gray-bg); color: var(--gray-fg); white-space: nowrap; }
.badge.status-available { background: var(--ok-bg); color: var(--ok-fg); }
.badge.status-reserved { background: var(--warn-bg); color: var(--warn-fg); }
.badge.status-draft { background: var(--gray-bg); color: var(--gray-fg); }
.badge.status-soldcollected { background: var(--info-bg); color: var(--info-fg); }
.badge.haz { background: var(--bad-bg); color: var(--bad-fg); }
.badge.cond { background: var(--info-bg); color: var(--info-fg); }
.badge.q-pending { background: var(--vio-bg); color: var(--vio-fg); }
.badge.q-accepted { background: var(--ok-bg); color: var(--ok-fg); }
.badge.q-declined, .badge.q-withdrawn { background: var(--gray-bg); color: var(--gray-fg); }
.badge.unverified { background: var(--warn-bg); color: var(--warn-fg); font-size: 11px; }
.badge.h-prepared { background: var(--gray-bg); color: var(--gray-fg); }
.badge.h-submitted { background: var(--vio-bg); color: var(--vio-fg); }
.badge.h-picked_up { background: var(--warn-bg); color: var(--warn-fg); }
.badge.h-received { background: var(--ok-bg); color: var(--ok-fg); }
.badge.h-cancelled { background: var(--gray-bg); color: var(--muted); text-decoration: line-through; }

.error { background: var(--bad-bg); color: var(--bad-fg); padding: 12px 16px; border-radius: var(--radius-sm); margin: 14px 0; }

/* ---------- buttons & inputs ---------- */
.hero-actions, .btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font: inherit; font-size: 14px; font-weight: 650;
  padding: 9px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text);
  cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn.primary:disabled { opacity: .5; }
.btn.danger { color: var(--bad-fg); border-color: color-mix(in srgb, var(--bad-fg) 35%, transparent); }
.btn.danger:hover { background: var(--bad-bg); }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.block { width: 100%; }
.btn.big-btn { padding: 12px 16px; font-size: 15px; }
.icon-btn { border: 0; background: transparent; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; padding: 2px 8px; border-radius: 8px; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

select, input, textarea {
  font: inherit; font-size: 14px;
  padding: 9px 11px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  width: 100%;
}
select:focus, input:focus, textarea:focus, .btn:focus-visible, .chip:focus-visible, .lp-btn:focus-visible {
  outline: 3px solid var(--ring); outline-offset: 1px; border-color: var(--primary);
}
input[type="checkbox"], input[type="radio"] { width: auto; margin: 0 6px 0 0; accent-color: var(--primary); }
input[type="file"] { padding: 7px; background: var(--surface-2); }

.toolbar { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.toolbar-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font: inherit; font-size: 13px; font-weight: 550; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); cursor: pointer; }
.chip:hover { border-color: var(--primary); }
.chip.active { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
:root[data-theme="dark"] .chip.active { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.sort-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.sort-label select { width: auto; }
.results-count { margin: 22px 0 12px; }
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.empty { text-align: center; padding: 28px; color: var(--muted); }

/* ---------- dialogs ---------- */
.dialog {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  width: min(640px, calc(100vw - 24px));
  max-height: calc(100vh - 40px);
  box-shadow: var(--shadow-lg);
  background: var(--surface);
  color: var(--text);
}
.dialog.wide { width: min(880px, calc(100vw - 24px)); }
.dialog::backdrop { background: rgba(5, 15, 10, .55); backdrop-filter: blur(3px); }
.dialog > form, .dialog > div { padding: 22px 24px; }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.dialog-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 22px; }
.dialog-head .eyebrow { margin-bottom: 2px; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); flex-wrap: wrap; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.form-grid label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.form-grid .span-2 { grid-column: span 2; }
.form-grid label.check { font-weight: 500; background: var(--warn-bg); border-radius: var(--radius-sm); padding: 10px 12px; }
.form-grid label.check span { display: flex; align-items: center; }
.hint { font-weight: 400; color: var(--muted); font-size: 12px; }
.invalid { border-color: #dc2626 !important; }
.field-error { color: var(--bad-fg); font-weight: 550; font-size: 12px; }
.form-error { color: var(--bad-fg); background: var(--bad-bg); border-radius: var(--radius-sm); padding: 9px 12px; margin: 14px 0 0; font-size: 14px; }
.photo-preview img { max-height: 160px; border-radius: var(--radius-sm); border: 1px solid var(--border); }

/* ---------- detail view ---------- */
.detail-grid { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
.photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); }
.photo.placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 12px; background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 10px, var(--surface-3) 10px, var(--surface-3) 20px); }
.facts { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; margin: 0; font-size: 14px; }
.facts dt { color: var(--muted); font-size: 13px; }
.facts dd { margin: 0; }
.facts .price { font-size: 20px; font-weight: 800; color: var(--primary); }
.facts.compact { grid-template-columns: 115px 1fr; font-size: 13px; }
.code-lg { font-family: var(--mono); }
.code-inline { font-family: var(--mono); text-transform: none; }
.detail-section { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.note-label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.sim-note { font-size: 12.5px; color: var(--warn-fg); background: var(--warn-bg); border-radius: 8px; padding: 8px 10px; margin: 18px 0 0; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--track); }
.timeline li { display: grid; grid-template-columns: 14px 1fr; gap: 12px; padding: 6px 0; position: relative; }
.tl-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--primary); margin-top: 3px; z-index: 1; }
.timeline li:last-child .tl-dot { background: var(--primary); }
.tl-dot.pending { background: var(--surface) !important; border-color: var(--border-strong); }
.tl-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--brand-deep); color: #fff;
  padding: 11px 18px; border-radius: 12px; font-size: 14px;
  box-shadow: var(--shadow-lg); z-index: 200; max-width: calc(100vw - 32px);
}
.toast.bad { background: #991b1b; }

/* ---------- old market cards (still used on /market/*) ---------- */
.market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.mcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 8px; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.mcard:hover, .mcard:focus { transform: translateY(-2px); box-shadow: var(--shadow); outline: none; }
.mcard .photo { aspect-ratio: 16 / 9; margin-bottom: 4px; }
.mcard-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.mcard-big { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.mcard-title { margin: 0; font-size: 16px; line-height: 1.3; }
.mcard-meta { font-size: 13px; color: var(--muted); }
.mcard-notes { margin: 0; font-size: 13px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mcard-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; }
.mcard-price { font-size: 20px; font-weight: 800; color: var(--primary); }
.material-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; background: #999; flex: 0 0 auto; }
.m-used_oil { background: #8b5e1a; } .m-coolant { background: #14b8a6; } .m-brake_fluid { background: #ca8a04; }
.m-scrap_metal { background: #64748b; } .m-tires { background: #334155; } .m-batteries { background: #dc2626; }
.quote-pill { font-size: 12px; color: var(--muted); background: var(--surface-2); padding: 3px 9px; border-radius: 999px; }
.quote-pill.has { background: var(--vio-bg); color: var(--vio-fg); font-weight: 650; }
.market-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.market-detail .photo { margin-bottom: 14px; }
.quote-form { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.quote-form h3 { margin: 0; color: var(--text); text-transform: none; letter-spacing: 0; font-size: 16px; }
.quote-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.seg { border: 0; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.seg legend { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; padding: 0; }
.seg label { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 8px 12px; cursor: pointer; text-align: left; flex: 0 1 auto; }
.seg label:has(input:checked) { border-color: var(--primary); background: var(--ok-bg); }
.success-box { text-align: center; padding: 26px 18px; background: var(--ok-bg); border-radius: var(--radius); }
.success-box h3 { color: var(--ok-fg); text-transform: none; letter-spacing: 0; font-size: 18px; margin: 8px 0; }
.success-icon { width: 48px; height: 48px; margin: 0 auto; border-radius: 50%; background: var(--primary); color: var(--primary-ink); font-size: 26px; display: grid; place-items: center; }
.quote-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.quote-list li { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--surface-2); }
.quote-list li.accepted { border-color: var(--primary); background: var(--ok-bg); }
.quote-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.quote-top .code { font-family: var(--mono); font-size: 13px; color: var(--primary); }
.quote-amount { margin-left: auto; font-size: 16px; }
.quote-from { font-size: 13px; margin-top: 6px; }
.quote-msg { margin: 6px 0 0; font-size: 13px; color: var(--text-2); font-style: italic; }
.quote-actions { margin-top: 10px; }

/* ---------- handoff / WMS form detail ---------- */
.sim-banner { background: var(--bad-bg); color: var(--bad-fg); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13px; margin: 16px 0; }
.sim-ref { margin: 4px 0 0; font-family: var(--mono); font-size: 13px; color: var(--bad-fg); }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; color: var(--primary); text-decoration: none; font-size: 14px; font-weight: 600; }
.back-link:hover { text-decoration: underline; }
.handoff-callout { background: var(--ok-bg); border-radius: 12px; padding: 14px 16px; }
.handoff-callout p { margin: 0 0 10px; }
.stepper { list-style: none; display: flex; gap: 6px; padding: 0; margin: 4px 0 16px; flex-wrap: wrap; }
.stepper li { flex: 1 1 160px; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; font-size: 13px; color: var(--muted); }
.step-dot { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--track); font-weight: 700; font-size: 12px; color: var(--muted); }
.stepper li.done { color: var(--ok-fg); border-color: color-mix(in srgb, var(--primary) 40%, transparent); }
.stepper li.done .step-dot { background: var(--primary); color: var(--primary-ink); }
.stepper li.current { color: var(--text); border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); font-weight: 650; }
.stepper li.current .step-dot { background: var(--brand-deep); color: #fff; }
.autofill { margin-bottom: 16px; }
.autofill-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; font-size: 16px; }
.autofill-pct { font-size: 26px; font-weight: 800; color: var(--primary); }
.bar-track.big { height: 14px; }
.handoff-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.wms-section { margin-bottom: 14px; }
.wms-fields { margin: 0; }
.wms-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); align-items: center; }
.wms-row:last-child { border-bottom: 0; }
.wms-row dt { font-size: 13px; color: var(--muted); }
.wms-row dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.wms-row dd input, .wms-row dd select { flex: 1 1 220px; }
.wms-row.missing dt { color: var(--bad-fg); font-weight: 650; }
.wms-value { font-weight: 550; }
.copy-btn { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); border-radius: 7px; padding: 2px 7px; font: inherit; font-size: 11.5px; cursor: pointer; }
.copy-btn:hover { color: var(--text); border-color: var(--border-strong); }
.copy-btn.done { color: var(--ok-fg); background: var(--ok-bg); }
.src { font-size: 11px; padding: 2px 8px; border-radius: 999px; white-space: nowrap; font-weight: 600; }
.src-auto { background: var(--ok-bg); color: var(--ok-fg); }
.src-user { background: var(--info-bg); color: var(--info-fg); }
.src-missing { background: var(--bad-bg); color: var(--bad-fg); }
.warn-text { color: var(--warn-fg); flex-basis: 100%; }
.comment-label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.checklist { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: 8px; font-size: 13px; align-items: start; }
.chk-icon { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.checklist li.ok .chk-icon { background: var(--ok-bg); color: var(--ok-fg); }
.checklist li.bad .chk-icon { background: var(--bad-bg); color: var(--bad-fg); }
.checklist li.warn .chk-icon { background: var(--warn-bg); color: var(--warn-fg); }
.checklist li.bad > div > div:first-child { color: var(--bad-fg); font-weight: 650; }
.actions-card { display: flex; flex-direction: column; gap: 8px; }
.hero a.code { color: var(--primary); }
.report-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 10px 0 16px; }
.report-controls label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); min-width: 200px; }
.report-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.report-table td { white-space: normal; }

/* ---------- footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 24px; }
.sf-inner { max-width: var(--maxw); margin: 0 auto; padding: 40px 20px 20px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
.sf-brand p { color: var(--muted); font-size: 14px; max-width: 30em; margin: 12px 0 0; }
.sf-col { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.sf-col h4 { margin: 0 0 4px; font-size: 13px; color: var(--text); }
.sf-col a { color: var(--text-2); text-decoration: none; }
.sf-col a:hover { color: var(--primary); }
.sf-muted { color: var(--muted); font-size: 13px; }
.sf-legal { max-width: var(--maxw); margin: 0 auto; padding: 16px 20px 28px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
.sf-legal p { margin: 6px 0; }

@media (max-width: 900px) {
  .handoff-grid { grid-template-columns: 1fr; }
  .wms-row { grid-template-columns: 1fr; gap: 4px; }
  .sf-inner { grid-template-columns: 1fr 1fr; }
  .market-detail { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 20px 16px 40px; }
  h1 { font-size: 25px; }
  .bar-row { grid-template-columns: 105px 1fr 60px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .detail-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 100px 1fr; }
  .sf-inner { grid-template-columns: 1fr; gap: 20px; padding: 28px 16px 12px; }
  .sf-legal { padding: 14px 16px 24px; }
}
@media print {
  .site-header, .site-footer, .proto-bar, .report-controls, .back-link, #toast { display: none !important; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; }
}

/* =====================================================================
   Landing page
   ===================================================================== */
.lp-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.landing section[id] { scroll-margin-top: 80px; }
.lp-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 750; text-decoration: none;
  padding: 13px 22px; border-radius: 12px; border: 2px solid var(--accent);
  transition: transform .12s, box-shadow .12s;
}
.lp-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(163, 230, 53, .25); }
.lp-btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.lp-btn-ghost:hover { box-shadow: none; background: rgba(255, 255, 255, .08); }
.lp-btn-dark { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }

.lp-hero { background: var(--hero-bg); color: var(--hero-fg); padding: 64px 0 0; overflow: hidden; position: relative; }
.lp-hero::after { content: ""; position: absolute; inset: auto -10% -40% auto; width: 60%; aspect-ratio: 1; background: radial-gradient(circle, rgba(163, 230, 53, .16), transparent 65%); pointer-events: none; }
.lp-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.lp-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 700; font-size: 13.5px; margin: 0 0 16px; background: rgba(163, 230, 53, .1); border: 1px solid rgba(163, 230, 53, .25); padding: 5px 12px; border-radius: 999px; }
.lp-hero h1 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 18px; color: #fff; }
.lp-hero h1 em { font-style: normal; color: var(--accent); }
body.lang-ka .lp-hero h1 { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.2; letter-spacing: -0.01em; }
.lp-lead { font-size: 18px; line-height: 1.6; color: var(--hero-muted); margin: 0 0 28px; max-width: 36em; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-hero-visual { position: relative; padding-bottom: 56px; }
.lp-hero-photo { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 24px; display: block; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); background: linear-gradient(135deg, #1d4a35, #0f2a1d); }
.lp-float {
  position: absolute; background: var(--surface); color: var(--text);
  border-radius: 16px; box-shadow: var(--shadow-lg); padding: 14px 16px; border: 1px solid var(--border);
}
.lp-float-a { left: -28px; bottom: 18px; width: 250px; }
.lp-float-b { right: -18px; top: 24px; width: 210px; }
.lp-float .lbl { font-size: 12px; color: var(--muted); display: block; }
.lp-float .val { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; display: block; }
.lp-float .val s { color: var(--muted); font-weight: 600; font-size: 15px; margin-right: 6px; }
.lp-float .mini-bar { height: 8px; border-radius: 6px; background: var(--track); overflow: hidden; margin-top: 8px; }
.lp-float .mini-bar i { display: block; height: 100%; width: 86%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 6px; }
.lp-float .ok { color: var(--ok-fg); font-weight: 700; font-size: 13px; display: inline-flex; gap: 4px; align-items: center; }

.lp-rules { position: relative; z-index: 1; border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 8px; }
.lp-rules-inner { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 18px 0 22px; }
.lp-rules-label { color: var(--hero-muted); font-size: 13px; margin-right: 6px; }
.lp-rule { color: #e6f2ea; font-size: 13px; font-weight: 600; border: 1px solid rgba(255, 255, 255, .14); padding: 6px 12px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.lp-rule:hover { border-color: var(--accent); color: var(--accent); }

.lp-section { padding: 80px 0; }
.lp-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lp-head { max-width: 760px; margin-bottom: 36px; }
.lp-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.lp-kicker { color: var(--primary); font-weight: 750; font-size: 13px; margin: 0 0 10px; letter-spacing: .04em; text-transform: uppercase; }
body.lang-ka .lp-kicker { letter-spacing: .01em; }
.lp-section h2, .lp-end h2 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.15; letter-spacing: -0.025em; margin: 0 0 12px; font-weight: 800; }
body.lang-ka .lp-section h2, body.lang-ka .lp-end h2 { font-size: clamp(24px, 2.8vw, 34px); line-height: 1.3; letter-spacing: -0.005em; }
.lp-section h2 em { font-style: normal; color: var(--primary); }
.lp-sub { color: var(--muted); font-size: 17px; margin: 0; line-height: 1.6; }
.lp-note { color: var(--muted); font-size: 13px; margin: 14px 0 0; }

.lp-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lp-product { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; display: flex; flex-direction: column; gap: 12px; transition: transform .15s, box-shadow .15s, border-color .15s; text-decoration: none; color: inherit; }
.lp-alt .lp-product { background: var(--bg); }
.lp-product:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.lp-product-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok-fg); }
.lp-product h3 { margin: 0; font-size: 19px; text-transform: none; letter-spacing: -0.01em; color: var(--text); }
.lp-product p { margin: 0; color: var(--muted); font-size: 14.5px; }
.lp-product ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 14px; color: var(--text-2); }
.lp-product li { display: flex; gap: 8px; align-items: flex-start; }
.lp-product li .ic { color: var(--primary); margin-top: 3px; }
.lp-more { margin-top: auto; padding-top: 6px; color: var(--primary); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }

.lp-pillars { display: flex; flex-direction: column; gap: 64px; }
.lp-pillar { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.lp-pillar:nth-child(even) .lp-pillar-media { order: 2; }
.lp-pillar-media { position: relative; }
.lp-pillar-media img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: var(--radius-lg); display: block; box-shadow: var(--shadow); background: var(--surface-3); }
.lp-pillar-media .lp-badge { position: absolute; left: 16px; bottom: 16px; background: var(--surface); color: var(--text); border-radius: 12px; padding: 10px 14px; font-weight: 750; box-shadow: var(--shadow); font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.lp-pillar-media .lp-badge .ic { color: var(--primary); }
.lp-tag { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--ok-fg); background: var(--ok-bg); padding: 4px 11px; border-radius: 999px; margin-bottom: 14px; }
.lp-pillar h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; text-transform: none; letter-spacing: -0.02em; color: var(--text); margin: 0 0 12px; }
.lp-pillar p { color: var(--muted); font-size: 16px; line-height: 1.65; margin: 0 0 14px; }
.lp-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lp-checks li { display: flex; gap: 9px; align-items: flex-start; font-size: 15px; color: var(--text-2); }
.lp-checks li .ic { color: var(--primary); margin-top: 3px; }

.lp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 8px; }
.lp-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.lp-alt .lp-stat { background: var(--bg); }
.lp-stat strong { display: block; font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -0.03em; color: var(--primary); line-height: 1.1; }
.lp-stat span { display: block; color: var(--text-2); font-size: 14.5px; margin-top: 8px; }
.lp-stat small { display: block; color: var(--muted); font-size: 12px; margin-top: 8px; }

.lp-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lp-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.lp-alt .lp-card { background: var(--bg); }
.lp-card h3 { margin: 0 0 8px; font-size: 17px; text-transform: none; letter-spacing: -0.01em; color: var(--text); }
.lp-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.lp-problem { border-top: 4px solid #f59e0b; }
.lp-src { display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--warn-fg); background: var(--warn-bg); padding: 3px 9px; border-radius: 999px; margin-bottom: 12px; }

/* pooling illustration */
.lp-pool-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: center; }
.lp-toggle { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 4px; gap: 4px; flex-wrap: wrap; margin-top: 22px; }
.lp-toggle-btn { border: 0; background: transparent; padding: 9px 14px; border-radius: 9px; font: inherit; font-weight: 650; color: var(--text-2); cursor: pointer; }
.lp-toggle-btn.active { background: var(--brand-deep); color: #fff; }
:root[data-theme="dark"] .lp-toggle-btn.active { background: var(--primary); color: var(--primary-ink); }
.lp-pstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.lp-pstat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.lp-alt .lp-pstat { background: var(--bg); }
.lp-pstat span { display: block; font-size: 12.5px; color: var(--muted); }
.lp-pstat strong { font-size: 24px; color: var(--text); font-weight: 800; }
.lp-pstat strong span { display: inline; font-size: inherit; color: inherit; }
.lp-pstat.good strong { color: var(--primary); }
.lp-map-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px; color: var(--text); }
#pool-map { width: 100%; height: auto; display: block; }
.lp-route { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.lp-route-separate { stroke: #f97316; stroke-width: 3; stroke-dasharray: 7 7; opacity: .9; }
.lp-route-shared { stroke: var(--primary); stroke-width: 5; }
.lp-pt-garage { fill: var(--brand-deep); stroke: var(--surface); stroke-width: 3; }
:root[data-theme="dark"] .lp-pt-garage { fill: #2f5a45; }
.lp-pt-recycler { fill: var(--accent); stroke: var(--brand-deep); stroke-width: 3; }
.lp-pt-label { fill: #fff; font-size: 14px; font-weight: 700; text-anchor: middle; font-family: var(--font); }
.lp-pt-label-r { fill: var(--brand-deep); font-size: 20px; }
.lp-legend { display: flex; gap: 18px; font-size: 13px; color: var(--muted); padding: 6px 4px 0; flex-wrap: wrap; }
.lp-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.lp-dot-garage { background: var(--brand-deep); }
.lp-dot-recycler { background: var(--accent); border: 2px solid var(--brand-deep); border-radius: 3px; }

/* WMS compare */
.lp-wms-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
.lp-wms-old, .lp-wms-new { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.lp-wms-new { border: 2px solid var(--primary); }
.lp-wms-old h3, .lp-wms-new h3 { margin: 0 0 10px; font-size: 15px; color: var(--text); }
.lp-wms-tab { border-top: 1px dashed var(--border); padding: 10px 0; }
.lp-wms-tabname { font-weight: 700; font-size: 14px; color: var(--warn-fg); }
.lp-wms-old p { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
.lp-warn { margin-top: 10px; background: var(--warn-bg); color: var(--warn-fg); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.lp-col-label { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 750; color: var(--muted); margin: 14px 0 8px; }
.lp-inputs, .lp-auto { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lp-inputs li { background: var(--brand-deep); color: #fff; border-radius: 10px; padding: 10px 14px; font-weight: 650; }
:root[data-theme="dark"] .lp-inputs li { background: var(--primary); color: var(--primary-ink); }
.lp-auto li { background: var(--ok-bg); color: var(--ok-fg); border-radius: 10px; padding: 10px 14px; display: flex; gap: 8px; align-items: center; }

/* FAQ */
.lp-faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.lp-faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 18px; }
.lp-alt .lp-faq details { background: var(--bg); }
.lp-faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; font-size: 22px; color: var(--primary); font-weight: 500; }
.lp-faq details[open] summary::after { content: "−"; }
.lp-faq details p { margin: 0 0 16px; color: var(--muted); line-height: 1.65; }

.lp-end { background: var(--hero-bg); color: #fff; padding: 72px 0; text-align: center; }
.lp-end h2 { color: #fff; }
.lp-end p { color: var(--hero-muted); margin: 0 auto 26px; max-width: 40em; font-size: 17px; }
.lp-end .lp-actions { justify-content: center; }

@media (max-width: 1000px) {
  .lp-hero-grid, .lp-pool-grid, .lp-wms-grid { grid-template-columns: 1fr; }
  .lp-products, .lp-grid4, .lp-stats { grid-template-columns: repeat(2, 1fr); }
  .lp-pillar { grid-template-columns: 1fr; gap: 24px; }
  .lp-pillar:nth-child(even) .lp-pillar-media { order: 0; }
  .lp-float-a { left: 12px; }
  .lp-float-b { right: 12px; }
}
@media (max-width: 560px) {
  .lp-products, .lp-grid4, .lp-stats { grid-template-columns: 1fr; }
  .lp-hero { padding-top: 40px; }
  .lp-section { padding: 52px 0; }
  .lp-wrap { padding: 0 16px; }
  .lp-float-b { display: none; }
  .lp-float-a { width: 220px; bottom: 8px; }
  .lp-pstat strong { font-size: 19px; }
}

/* =====================================================================
   App pages: shared page header
   ===================================================================== */
.ph { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.ph h1 { margin: 0 0 4px; }
.ph p { margin: 0; color: var(--muted); max-width: 52em; }
.ph-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 30px 0 12px; }
.section-title h2 { margin: 0; }
.org-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px 6px 8px; font-size: 13px; font-weight: 600; }
.org-chip .ic { color: var(--primary); }

/* ---------- B2B ---------- */
.b2b-search { display: flex; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 8px; box-shadow: var(--shadow); align-items: center; }
.b2b-search .ic { color: var(--muted); margin-left: 8px; }
.b2b-search input { border: 0; font-size: 16px; padding: 10px 6px; background: transparent; box-shadow: none; }
.b2b-search input:focus { outline: none; }
.b2b-tabs { display: flex; gap: 6px; margin: 16px 0 0; flex-wrap: wrap; }
.b2b-tab { font: inherit; font-size: 14px; font-weight: 650; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.b2b-tab .n { font-size: 12px; background: var(--surface-2); padding: 1px 8px; border-radius: 999px; color: var(--muted); }
.b2b-tab.active { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.b2b-tab.active .n { background: rgba(255, 255, 255, .16); color: #fff; }
:root[data-theme="dark"] .b2b-tab.active { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
:root[data-theme="dark"] .b2b-tab.active .n { color: var(--primary-ink); background: rgba(0, 0, 0, .15); }
.b2b-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; margin-top: 20px; align-items: start; }
.b2b-filters { position: sticky; top: 80px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 18px; max-height: calc(100vh - 100px); overflow: auto; }
.fgroup h4 { margin: 0 0 8px; font-size: 13px; color: var(--text); font-weight: 700; }
.fopt { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; padding: 5px 2px; cursor: pointer; color: var(--text-2); }
.fopt input { margin: 0 8px 0 0; }
.fopt span:first-child { display: flex; align-items: center; }
.fopt .n { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.fopt.zero { opacity: .45; }
.frow { display: flex; gap: 8px; }
.b2b-results-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.b2b-results-head strong { font-size: 16px; }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.af { display: inline-flex; align-items: center; gap: 4px; font: inherit; font-size: 12.5px; background: var(--ok-bg); color: var(--ok-fg); border: 0; border-radius: 999px; padding: 4px 6px 4px 10px; cursor: pointer; font-weight: 600; }
.b2b-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.lcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; text-align: left; font: inherit; color: inherit; padding: 0; }
.lcard:hover, .lcard:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); outline: none; }
.lcard-media { position: relative; aspect-ratio: 16 / 10; background: var(--surface-3); overflow: hidden; }
.lcard-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.lcard:hover .lcard-media img { transform: scale(1.04); }
.lcard-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.lcard-badges .badge { background: rgba(255, 255, 255, .92); color: #1b2a22; backdrop-filter: blur(4px); }
.lcard-badges .badge.haz { background: #fee2e2; color: #991b1b; }
.lcard-kind { position: absolute; top: 10px; right: 10px; font-size: 11.5px; font-weight: 750; padding: 3px 9px; border-radius: 999px; background: rgba(13, 43, 30, .85); color: #d9f99d; }
.lcard-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.lcard-title { font-size: 16px; font-weight: 750; margin: 0; line-height: 1.3; color: var(--text); }
.lcard-meta { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.lcard-meta .ic { width: 14px; height: 14px; }
.lcard-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; margin-top: auto; padding-top: 10px; }
.lcard-value { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.lcard-value small { font-size: 12px; font-weight: 600; color: var(--muted); display: block; letter-spacing: 0; }
.lcard-offer { font-size: 12px; font-weight: 700; color: var(--vio-fg); background: var(--vio-bg); padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.img-fallback { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); background: linear-gradient(135deg, var(--surface-2), var(--surface-3)); }
.img-fallback svg { width: 54px; height: 54px; opacity: .7; }
.filters-toggle { display: none; }
.b2b-detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: 22px; align-items: start; }
.b2b-detail-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-3); }
.b2b-detail-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.big-value { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin: 14px 0 4px; }

@media (max-width: 900px) {
  .b2b-layout { grid-template-columns: minmax(0, 1fr); }
  .b2b-filters { position: static; max-height: none; display: none; }
  .b2b-filters.open { display: flex; }
  .filters-toggle { display: inline-flex; }
  .b2b-detail { grid-template-columns: 1fr; }
}

/* ---------- Logistics ---------- */
.lg-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.lg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.lg-map-wrap { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
#lg-map { height: 600px; width: 100%; background: var(--surface-2); }
.lg-legend { position: absolute; left: 12px; bottom: 12px; z-index: 500; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; box-shadow: var(--shadow); color: var(--text-2); }
.lg-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.lg-dot.garage { background: #0d2b1e; }
.lg-dot.garage-ready { background: #f97316; }
.lg-dot.recycler { background: #a3e635; border-radius: 3px; }
.lg-dot.transporter { background: #3b82f6; border-radius: 3px; }
.lg-dot.dismantler { background: #8b5cf6; }
.lg-routes { display: flex; flex-direction: column; gap: 10px; max-height: 600px; overflow: auto; }
.lg-route { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; cursor: pointer; text-align: left; font: inherit; color: inherit; width: 100%; transition: border-color .15s, box-shadow .15s; }
.lg-route:hover { border-color: var(--border-strong); }
.lg-route.active { border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); }
.lg-route-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lg-route-top strong { font-size: 15px; }
.lg-save { font-weight: 800; color: var(--ok-fg); background: var(--ok-bg); padding: 3px 9px; border-radius: 999px; font-size: 13px; }
.lg-route-meta { font-size: 13px; color: var(--muted); margin-top: 6px; display: flex; gap: 10px; flex-wrap: wrap; }
.lg-stops { list-style: none; margin: 10px 0 0; padding: 0; display: none; flex-direction: column; gap: 6px; font-size: 13px; counter-reset: stop; }
.lg-route.active .lg-stops { display: flex; }
.lg-stops li { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; }
.lg-stops li::before { counter-increment: stop; content: counter(stop); width: 22px; height: 22px; border-radius: 50%; background: var(--brand-deep); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.lg-stops li.end::before { content: "♻"; background: var(--accent); color: var(--brand-deep); }
.lg-stops .kg { color: var(--muted); font-variant-numeric: tabular-nums; }
.lg-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.lg-compare div { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; font-size: 12px; color: var(--muted); }
.lg-compare b { display: block; font-size: 17px; color: var(--text); }
.lg-compare .good b { color: var(--primary); }
.lg-svg-note { position: absolute; top: 12px; left: 12px; z-index: 500; background: var(--warn-bg); color: var(--warn-fg); border-radius: 10px; padding: 6px 10px; font-size: 12px; }
#lg-map svg.fallback-map { width: 100%; height: 100%; display: block; }
.fm-land { fill: var(--surface-3); stroke: var(--border-strong); stroke-width: 1.5; }
.fm-city { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.leaflet-container { font-family: var(--font); background: var(--surface-2); }
:root[data-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9) saturate(.6); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface); color: var(--text); }
.leaflet-popup-content { margin: 12px 14px; font-size: 13px; line-height: 1.45; }
.al-marker { border-radius: 50%; border: 2.5px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.al-marker.sq { border-radius: 5px; }

@media (max-width: 1000px) {
  .lg-layout { grid-template-columns: minmax(0, 1fr); }
  .lg-kpis { grid-template-columns: repeat(2, 1fr); }
  #lg-map { height: 440px; }
  .lg-routes { max-height: none; }
}

/* ---------- Compliance ---------- */
.cp-filters { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 20px; }
.cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.cp-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.cp-ref { font-size: 12.5px; font-weight: 700; color: var(--primary); margin: 0; }
.cp-card h3 { margin: 0; font-size: 18px; text-transform: none; letter-spacing: -0.01em; color: var(--text); line-height: 1.3; }
.cp-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.cp-points { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 7px; font-size: 14px; color: var(--text-2); }
.cp-feature { background: var(--ok-bg); color: var(--ok-fg); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; display: flex; gap: 8px; align-items: flex-start; text-decoration: none; }
.cp-feature .ic { margin-top: 2px; }
.cp-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; font-size: 13px; }
.cp-who { display: flex; gap: 4px; flex-wrap: wrap; }
.cp-source { display: inline-flex; align-items: center; gap: 5px; font-weight: 650; text-decoration: none; }
.cp-dates { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.cp-date { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; gap: 12px; align-items: flex-start; }
.cp-date .ic { color: var(--primary); margin-top: 2px; }
.cp-date strong { display: block; font-size: 15px; }
.cp-date span { color: var(--muted); font-size: 13.5px; }
.cp-disclaimer { background: var(--warn-bg); color: var(--warn-fg); border-radius: var(--radius); padding: 12px 16px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.epr-table td { white-space: normal; }

/* ---------- Tracking ---------- */
.tr-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.status-strip { display: flex; height: 12px; border-radius: 8px; overflow: hidden; background: var(--track); margin: 10px 0 12px; }
.status-strip i { display: block; height: 100%; }
.legend-row { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--muted); }
.legend-row span { display: inline-flex; align-items: center; gap: 6px; }
.legend-row i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.quick-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.qa { display: flex; flex-direction: column; gap: 6px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px; text-decoration: none; color: var(--text); font-weight: 650; font-size: 14px; }
.qa .ic { color: var(--primary); }
.qa small { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.qa:hover { border-color: var(--primary); }
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.feed li { display: grid; grid-template-columns: 10px 1fr; gap: 10px; font-size: 13.5px; }
.feed li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); margin-top: 5px; }
.feed .when { color: var(--muted); font-size: 12px; }

@media (max-width: 1000px) { .tr-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Government forms (inventory) ---------- */
.gf-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.gf-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; }
.gf-step b { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-deep); color: var(--accent); display: grid; place-items: center; flex: 0 0 auto; font-size: 14px; }
.gf-step strong { display: block; font-size: 14.5px; }
.gf-step span { color: var(--muted); font-size: 13px; }
.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.inv-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.inv-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.inv-title { display: flex; align-items: center; gap: 8px; font-weight: 750; font-size: 16px; }
.inv-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 13px; margin: 0; }
.inv-fields dt { color: var(--muted); }
.inv-fields dd { margin: 0; font-weight: 600; }
.inv-fields dd.mono { font-family: var(--mono); }
.inv-auto { font-size: 12.5px; color: var(--ok-fg); display: flex; align-items: center; gap: 6px; }
.preview-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.preview-tab { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.preview-tab h4 { margin: 0 0 8px; font-size: 13px; color: var(--warn-fg); }
.preview-tab dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: 12.5px; }
.preview-tab dt { color: var(--muted); }
.preview-tab dd { margin: 0; font-weight: 600; }
.preview-tab dd .src { margin-left: 4px; }
@media (max-width: 760px) {
  .gf-steps { grid-template-columns: 1fr; }
  .preview-tabs { grid-template-columns: 1fr; }
}


/* ---------- company context bar (app pages) ---------- */
.ctx-bar { background: var(--surface-2); border-bottom: 1px solid var(--border); }
.ctx-inner { max-width: var(--maxw); margin: 0 auto; padding: 8px 20px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; }
.ctx-inner label { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--text-2); }
.ctx-inner label .ic { color: var(--primary); }
.ctx-inner select { width: auto; max-width: 360px; padding: 6px 10px; font-weight: 600; font-size: 13.5px; }
.ctx-hint { color: var(--muted); font-size: 12.5px; }
@media (max-width: 640px) {
  .ctx-inner { padding: 8px 16px; }
  .ctx-inner select { max-width: 100%; flex: 1 1 100%; }
  .ctx-hint { display: none; }
}
@media (max-width: 1400px) { body.lang-ka .nav-link .ic { display: none; } }

/* ---------- hero / pillar photo fallbacks ---------- */
.lp-hero-photo-wrap { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3.4;
  background: radial-gradient(circle at 30% 30%, #1f5a3f, #0d2b1e 70%); box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.lp-hero-photo-wrap .lp-hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; background: none; }
.lp-hero-fallback { position: absolute; left: 50%; top: 46%; width: 46%; transform: translate(-50%, -50%); opacity: .9; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }
.lp-pillar-img { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 11; background: linear-gradient(135deg, var(--surface-2), var(--surface-3)); box-shadow: var(--shadow); }
.lp-pillar-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; aspect-ratio: auto; }
.lp-pillar-img .lp-pillar-fallback { inset: auto; left: 50%; top: 50%; width: 28%; height: auto; transform: translate(-50%, -50%); opacity: .35; object-fit: contain; }

/* ---------- listing card fixes ---------- */
.lcard-title { text-transform: none; letter-spacing: -0.01em; font-size: 16px; color: var(--text); margin: 0; }
.lcard-kind { top: auto; bottom: 10px; right: auto; left: 10px; }
.lp-pillar-img .lp-pillar-fallback, .lp-hero-fallback { background: none !important; box-shadow: none !important; aspect-ratio: auto; }
