/* ════════════════════════════════════════════════════════════════════
   AccSota landing — extras for reworked components (Trust, new Bento, alerts)
   Loaded after landing.css; only NEW classes here, no overrides.
   ──────────────────────────────────────────────────────────────────── */

/* ── TRUST grid (replaces fake customer logos) ── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.trust-item {
  background: var(--rm-surface);
  border: 1px solid var(--rm-border);
  border-radius: var(--rm-r-md);
  padding: 16px;
}
.trust-item-icon {
  font-size: 20px;
  margin-bottom: 8px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: var(--rm-r-sm);
  background: var(--rm-bg-subtle);
}
.trust-item-title {
  font-family: var(--rm-font-display);
  font-weight: var(--rm-fw-bold);
  font-size: 14px;
  letter-spacing: -0.018em;
  color: var(--rm-fg-strong);
  margin-bottom: 4px;
}
.trust-item-desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--rm-fg-muted);
}
@media (max-width: 880px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .trust-grid { grid-template-columns: 1fr; } }

/* ── BENTO: Telegram bubble visual ── */
.b-tg { display: flex; flex-direction: column; gap: 8px; }
.b-tg-msg { display: flex; gap: 8px; align-items: flex-end; }
.b-tg-msg.b-tg-out { justify-content: flex-end; }
.b-tg-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff; font-size: 11px; font-weight: 800;
  display: grid; place-items: center;
  flex: none;
}
.b-tg-bubble {
  background: #fff;
  border: 1px solid var(--rm-border);
  border-radius: 12px 12px 12px 4px;
  padding: 6px;
  max-width: 76%;
  font-size: 11.5px;
}
.b-tg-bubble-bot {
  background: var(--rm-primary-tint);
  border-color: var(--rm-primary-tint-2);
  color: var(--rm-primary);
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border-radius: 12px 12px 4px 12px;
}
.b-tg-bot-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--rm-success);
  color: #fff; font-weight: 700;
  display: grid; place-items: center; font-size: 12px;
}
.b-tg-photo {
  height: 70px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  margin-bottom: 4px;
  position: relative;
  overflow: hidden;
}
.b-tg-photo::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(255,255,255,0.18) 0, transparent 30%),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,0.12) 0, transparent 35%);
}
.b-tg-caption { padding: 0 4px; color: var(--rm-fg-strong); font-weight: 500; }
.b-tg-time { font-size: 10px; color: var(--rm-fg-muted); margin-top: 2px; padding: 0 4px; }

/* ── BENTO: Smart stocktake visual ── */
.b-st-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.b-st-pill {
  background: rgba(245,158,11,.18);
  color: #d97706;
  font-size: 9px; font-weight: 800;
  padding: 3px 7px; border-radius: 999px;
  letter-spacing: 0.06em;
}
.b-st-scan {
  font-size: 11px;
  color: var(--rm-success);
  font-family: var(--rm-font-mono);
  background: var(--rm-success-tint);
  padding: 3px 7px; border-radius: 6px;
}
.b-st-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--rm-border);
  font-size: 12px;
}
.b-st-row:last-child { border-bottom: 0; }
.b-st-name { font-weight: 600; color: var(--rm-fg-strong); font-size: 12px; }
.b-st-bar { font-size: 10px; color: var(--rm-fg-muted); font-family: var(--rm-font-mono); margin-top: 1px; }
.b-st-cell { text-align: center; min-width: 40px; }
.b-st-cell-l { font-size: 9px; color: var(--rm-fg-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 1px; }
.b-st-sys, .b-st-real { font-weight: 700; font-family: var(--rm-font-mono); font-size: 13px; }
.b-st-ok .b-st-real { color: var(--rm-success); }
.b-st-diff .b-st-real { color: #e11d48; }
.b-st-pending .b-st-real { color: var(--rm-fg-muted); }

/* ── BENTO: Inventory analytics visual ── */
.b-an-row {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--rm-border);
  font-size: 12px;
}
.b-an-row:last-child { border-bottom: 0; }
.b-an-tag {
  width: 22px; height: 22px;
  border-radius: 6px;
  font-weight: 800; font-size: 11px;
  display: grid; place-items: center;
  flex: none;
}
.b-an-name { flex: 1; min-width: 0; font-weight: 600; color: var(--rm-fg-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-an-meta { display: flex; align-items: baseline; gap: 3px; }
.b-an-meta-num { font-weight: 700; font-family: var(--rm-font-mono); font-size: 12px; color: var(--rm-fg-strong); }
.b-an-meta-l { font-size: 10px; color: var(--rm-fg-muted); }
.b-an-days {
  min-width: 48px; text-align: right;
  font-family: var(--rm-font-mono); font-weight: 700; font-size: 12px;
  color: var(--rm-fg-muted);
}
.b-an-days.b-an-low { color: #d97706; }
.b-an-days.b-an-dead { color: #e11d48; }

/* ── BENTO: Cash shift visual ── */
.b-shift { display: flex; flex-direction: column; gap: 6px; }
.b-shift-row { display: flex; gap: 8px; }
.b-shift-step {
  flex: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  background: var(--rm-bg-subtle);
  border: 1px solid var(--rm-border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
}
.b-shift-step.done {
  background: var(--rm-success-tint);
  border-color: rgba(16,185,129,.3);
  color: var(--rm-success);
}
.b-shift-step.active {
  background: var(--rm-primary-tint);
  border-color: var(--rm-primary-tint-2);
  color: var(--rm-primary);
}
.b-shift-num {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(0,0,0,.08);
  color: inherit;
  font-size: 10px; font-weight: 800;
  display: grid; place-items: center;
}
.b-shift-amt { font-size: 10px; opacity: 0.85; font-family: var(--rm-font-mono); }
.b-shift-flow {
  background: #fff;
  border: 1px dashed var(--rm-border);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex; flex-direction: column; gap: 3px;
  font-size: 11px;
}
.b-shift-flow-item { display: flex; justify-content: space-between; font-family: var(--rm-font-mono); color: var(--rm-fg); }
.b-shift-flow-item b { color: var(--rm-fg-strong); }
.b-shift-flow-l { color: var(--rm-fg-muted); font-family: var(--rm-font-sans); font-weight: 500; }

/* ── BENTO: Dashboard alerts visual ── */
.b-alert {
  display: flex; gap: 10px; align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 6px;
}
.b-alert:last-child { margin-bottom: 0; }
.b-alert-icon { font-size: 18px; line-height: 1; }
.b-alert-title { font-weight: 700; color: var(--rm-fg-strong); font-size: 13px; }
.b-alert-sub { font-size: 11px; color: var(--rm-fg-muted); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-alert-danger { background: rgba(244,63,94,.08); border: 1px solid rgba(244,63,94,.18); }
.b-alert-success { background: var(--rm-success-tint); border: 1px solid rgba(16,185,129,.22); }
.b-alert-warn { background: rgba(245,158,11,.10); border: 1px solid rgba(245,158,11,.22); }

/* ── BENTO: Audit log visual ── */
.b-aud-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--rm-border);
  font-size: 11.5px;
}
.b-aud-row:last-child { border-bottom: 0; }
.b-aud-act {
  font-size: 9.5px; font-weight: 800;
  padding: 2px 6px; border-radius: 5px;
  font-family: var(--rm-font-mono);
  letter-spacing: 0.04em;
}
.b-aud-who { font-weight: 600; color: var(--rm-fg-strong); white-space: nowrap; }
.b-aud-ent { color: var(--rm-fg-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; font-family: var(--rm-font-mono); font-size: 11px; }
.b-aud-t { color: var(--rm-fg-muted); font-family: var(--rm-font-mono); font-size: 10.5px; }

/* ── INTEGRATIONS: Telegram / WhatsApp / Realtime / API icons ── */
.integ-icon.tg  { background: linear-gradient(135deg, #0ea5e9, #0284c7); color: #fff; }
.integ-icon.wa  { background: linear-gradient(135deg, #25d366, #128c7e); color: #fff; }
.integ-icon.sse { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
.integ-icon.api { background: linear-gradient(135deg, #5b5bd6, #3d3aa8); color: #fff; }

/* ── BENTO: Smart suggestions visual (склад + частые работы) ── */
.b-sg { display: flex; flex-direction: column; gap: 5px; }
.b-sg-head {
  display: flex; align-items: center; gap: 6px;
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #b45309;
  margin-bottom: 4px;
}
.b-sg-bulb {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px;
  background: rgba(245, 158, 11, 0.25);
  border-radius: 4px;
  color: #b45309;
  flex: none;
}
.b-sg-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 8px;
  background: var(--rm-surface);
  border: 1px solid var(--rm-border);
  border-radius: 6px;
  font-size: 11.5px;
}
.b-sg-row-stock { border-left: 2px solid var(--rm-success); }
.b-sg-row-work  { border-left: 2px solid var(--rm-primary); margin-top: 4px; }
.b-sg-l { color: var(--rm-fg); font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-sg-p { font-family: var(--rm-font-mono); font-weight: 700; color: var(--rm-fg-strong); flex: none; }

/* ── BENTO: Online approval visual ── */
.b-ap { display: flex; flex-direction: column; gap: 8px; }
.b-ap-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 2px;
}
.b-ap-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.b-ap-chip-pending {
  background: rgba(244, 63, 94, 0.12);
  color: #be123c;
  border: 1px solid rgba(244, 63, 94, 0.25);
}
.b-ap-chip-ok {
  background: var(--rm-success-tint);
  color: var(--rm-success);
  border: 1px solid rgba(16, 185, 129, 0.30);
}
.b-ap-arrow { color: var(--rm-fg-muted); font-weight: 700; font-size: 14px; }
.b-ap-card {
  background: var(--rm-surface);
  border: 1px solid var(--rm-border);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex; flex-direction: column; gap: 3px;
}
.b-ap-line {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11px;
  padding: 2px 0;
}
.b-ap-l { color: var(--rm-fg-muted); font-weight: 500; }
.b-ap-v { color: var(--rm-fg-strong); font-weight: 600; }
.b-ap-line-sum {
  padding-top: 5px;
  margin-top: 2px;
  border-top: 1px dashed var(--rm-border);
}
.b-ap-line-sum .b-ap-v { font-family: var(--rm-font-mono); font-weight: 800; color: var(--rm-success); font-size: 13px; }

/* ── BENTO: Repair timer visual ── */
.b-tm { display: flex; flex-direction: column; gap: 8px; }
.b-tm-card {
  background: #0f172a;
  color: #f1f5f9;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 8px;
  position: relative;
  overflow: hidden;
}
.b-tm-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 90% 30%, rgba(16,185,129,0.18), transparent 60%);
  pointer-events: none;
}
.b-tm-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #6ee7b7;
  position: relative; z-index: 1;
}
.b-tm-dot {
  width: 7px; height: 7px;
  background: #10b981; border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.25);
  animation: tm-pulse 1.6s ease-in-out infinite;
}
@keyframes tm-pulse { 0%,100%{opacity:1} 50%{opacity:0.55} }
.b-tm-clock {
  font-family: var(--rm-font-mono);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: #f8fafc;
  position: relative; z-index: 1;
}
.b-tm-controls { display: flex; gap: 6px; position: relative; z-index: 1; }
.b-tm-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px; font-weight: 700;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: #e2e8f0;
}
.b-tm-pause { background: rgba(245,158,11,0.18); border-color: rgba(245,158,11,0.32); color: #fde68a; }
.b-tm-stop  { background: rgba(244, 63, 94,0.18); border-color: rgba(244, 63, 94,0.32); color: #fda4af; }
.b-tm-rows {
  display: flex; gap: 10px;
  font-size: 11.5px;
}
.b-tm-row {
  flex: 1;
  background: var(--rm-surface);
  border: 1px solid var(--rm-border);
  border-radius: 8px;
  padding: 6px 10px;
  display: flex; justify-content: space-between; align-items: baseline;
}
.b-tm-row-l { color: var(--rm-fg-muted); font-weight: 500; }
.b-tm-row b { font-family: var(--rm-font-mono); font-weight: 800; color: var(--rm-fg-strong); font-variant-numeric: tabular-nums; }

/* ── BENTO: Profit on order visual (3 KPI tiles like in real CRM order) ── */
.b-pf { display: flex; flex-direction: column; gap: 8px; }
.b-pf-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}
.b-pf-card {
  border-radius: 8px;
  padding: 8px 10px;
  border: 1px solid var(--rm-border);
}
.b-pf-rev   { background: #eff6ff; border-color: #bfdbfe; }
.b-pf-cost  { background: #fef2f2; border-color: #fecaca; }
.b-pf-gross { background: var(--rm-success-tint); border-color: rgba(16,185,129,0.30); }
.b-pf-l {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--rm-fg-muted);
  margin-bottom: 3px;
}
.b-pf-num {
  font-family: var(--rm-font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--rm-fg-strong);
  font-variant-numeric: tabular-nums;
}
.b-pf-rev   .b-pf-num { color: #1d4ed8; }
.b-pf-cost  .b-pf-num { color: #b91c1c; }
.b-pf-gross .b-pf-num { color: var(--rm-success); }
.b-pf-foot {
  font-size: 10.5px;
  color: var(--rm-fg-muted);
  font-style: italic;
  padding: 2px 4px;
  line-height: 1.4;
}

/* ── SCREENSHOTS: alert chips inside dashboard mock ── */
.shot-alert {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11.5px; font-weight: 600;
}
.shot-alert-danger { background: rgba(244,63,94,.08); border: 1px solid rgba(244,63,94,.2); color: #be123c; }
.shot-alert-success { background: var(--rm-success-tint); border: 1px solid rgba(16,185,129,.25); color: var(--rm-success); }
.shot-alert-warn { background: rgba(245,158,11,.10); border: 1px solid rgba(245,158,11,.25); color: #b45309; }
