/* HeroAgent authenticated shell — forest-green admin language */
:root {
  --brand: #2F6B3C;
  --brand-deep: #1f3d28;
  --brand-mid: #3a7d4a;
  --brand-soft: #eef6f0;
  --brand-mist: #f4f6f5;
  --sidebar-w: 264px;
  --sidebar-bg: #15271c;
  --sidebar-bg-2: #1a3022;
  --sidebar-border: rgba(255, 255, 255, 0.06);
  --sidebar-muted: rgba(220, 235, 226, 0.55);
  --sidebar-text: #e8f0ea;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shell-shadow: 0 1px 2px rgba(21, 39, 28, 0.04), 0 8px 24px rgba(21, 39, 28, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.app-body {
  margin: 0;
  background: var(--brand-mist);
  color: #1a2b20;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.btn-brand {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn-brand:hover {
  background: #255732;
  border-color: #255732;
  color: #fff;
}

.score-HOT { color: #b42318; font-weight: 700; }
.score-WARM { color: #b54708; font-weight: 700; }
.score-COLD { color: #175cd3; font-weight: 700; }

.lead-confirm-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  vertical-align: middle;
  white-space: nowrap;
}
.lead-confirm-badge--confirmed {
  color: #0f6b3a;
  background: #e3f7ec;
  border: 1px solid #b7e4c7;
}
.lead-confirm-badge--unconfirmed {
  color: #8a6d1d;
  background: #fff6db;
  border: 1px solid #f0dfa0;
}
.lead-row--confirmed td:first-child {
  box-shadow: inset 3px 0 0 #22a06b;
}
.lead-row--unconfirmed td:first-child {
  box-shadow: inset 3px 0 0 #e2b203;
}
.lead-confirm-status--confirmed { color: #0f6b3a; font-weight: 650; }
.lead-confirm-status--unconfirmed { color: #8a6d1d; font-weight: 650; }

/* ——— Shell ——— */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1040;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(61, 138, 79, 0.18), transparent 55%),
    linear-gradient(180deg, var(--sidebar-bg-2) 0%, var(--sidebar-bg) 100%);
  border-right: 1px solid var(--sidebar-border);
  color: var(--sidebar-text);
  transform: translateX(0);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
  will-change: transform;
}

.app-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.15rem 1.1rem;
  text-decoration: none;
  color: #fff;
  border-bottom: 1px solid var(--sidebar-border);
  flex-shrink: 0;
}

.app-sidebar__brand:hover {
  color: #fff;
}

.app-sidebar__mark {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.65rem;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--brand-mid), var(--brand-deep));
  box-shadow: 0 4px 12px rgba(47, 107, 60, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.app-sidebar__brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.app-sidebar__brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.app-sidebar__brand-tag {
  font-size: 0.68rem;
  color: var(--sidebar-muted);
  letter-spacing: 0.02em;
}

.app-sidebar__nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem 0.7rem 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.app-nav-section {
  margin-bottom: 1.15rem;
}

.app-nav-section:last-child {
  margin-bottom: 0.35rem;
}

.app-nav-label {
  display: block;
  padding: 0.35rem 0.75rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(200, 220, 208, 0.42);
}

.app-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.58rem 0.75rem;
  margin-bottom: 0.15rem;
  border-radius: 0.65rem;
  color: var(--sidebar-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.25;
  transition:
    background 0.18s var(--ease-out),
    color 0.18s var(--ease-out),
    transform 0.18s var(--ease-out);
}

.app-nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 0 3px 3px 0;
  background: #7ec992;
  transform: translateY(-50%);
  opacity: 0;
  transition: height 0.2s var(--ease-out), opacity 0.2s var(--ease-out);
}

.app-nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f3faf5;
  transform: translateX(2px);
}

.app-nav-link:focus-visible {
  outline: 2px solid rgba(126, 201, 146, 0.65);
  outline-offset: 2px;
}

.app-nav-link.is-active {
  background: rgba(126, 201, 146, 0.14);
  color: #fff;
  font-weight: 600;
}

.app-nav-link.is-active::before {
  height: 1.15rem;
  opacity: 1;
}

.app-nav-link.is-active:hover {
  background: rgba(126, 201, 146, 0.18);
  transform: none;
}

.app-nav-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  opacity: 0.85;
  transition: opacity 0.18s ease, transform 0.18s var(--ease-out);
}

.app-nav-link:hover .app-nav-icon,
.app-nav-link.is-active .app-nav-icon {
  opacity: 1;
}

.app-nav-link.is-active .app-nav-icon {
  transform: scale(1.05);
}

.app-sidebar__foot {
  flex-shrink: 0;
  padding: 0.85rem 0.9rem 1.1rem;
  border-top: 1px solid var(--sidebar-border);
  background: rgba(0, 0, 0, 0.12);
}

.app-sidebar__user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.app-sidebar__avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(126, 201, 146, 0.2);
  color: #b8e0c2;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.app-sidebar__user-meta {
  min-width: 0;
  flex: 1;
}

.app-sidebar__user-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #f0f7f2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-sidebar__logout {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: var(--sidebar-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.app-sidebar__logout:hover {
  color: #fff;
}

.app-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1035;
  background: rgba(12, 22, 16, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out), visibility 0.25s var(--ease-out);
  backdrop-filter: blur(2px);
}

.app-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.app-main {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 0.28s var(--ease-out);
}

.app-topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 1020;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  background: rgba(244, 246, 245, 0.92);
  border-bottom: 1px solid rgba(31, 61, 40, 0.08);
  backdrop-filter: blur(10px);
}

.app-topbar__toggle {
  appearance: none;
  border: 1px solid rgba(31, 61, 40, 0.12);
  background: #fff;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.6rem;
  display: grid;
  place-items: center;
  color: var(--brand-deep);
  cursor: pointer;
  box-shadow: var(--shell-shadow);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.app-topbar__toggle:hover {
  background: var(--brand-soft);
  border-color: rgba(47, 107, 60, 0.25);
}

.app-topbar__toggle:active {
  transform: scale(0.96);
}

.app-topbar__brand {
  font-weight: 700;
  color: var(--brand-deep);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.app-topbar__brand:hover {
  color: var(--brand);
}

.app-content {
  flex: 1;
  width: min(1140px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

/* Auth (no sidebar) */
body:not(.app-body) {
  background: var(--brand-mist);
}

.auth-main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

/* Domain chips / widget cards (shared dashboard styles) */
.svc-chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.svc-chip-wrap {
  display: inline-flex; align-items: stretch; border-radius: 999px; overflow: hidden;
  border: 1px solid #cfd8d3; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.svc-chip {
  appearance: none; border: 0; background: transparent; margin: 0;
  padding: .45rem .9rem .45rem .75rem; font-size: .9rem; line-height: 1.2;
  color: #33443a; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem;
}
.svc-chip:hover { background: #f3f7f4; }
.svc-chip-check {
  width: 1.05rem; height: 1.05rem; border-radius: 50%; border: 1.5px solid #b7c4bc;
  display: inline-grid; place-items: center; font-size: .65rem; color: transparent; flex: 0 0 auto;
  background: #fff;
}
.svc-chip-wrap.is-on { border-color: #2F6B3C; background: #eef6f0; }
.svc-chip-wrap.is-on .svc-chip { color: #1f3d28; font-weight: 600; }
.svc-chip-wrap.is-on .svc-chip-check {
  background: #2F6B3C; border-color: #2F6B3C; color: #fff;
}
.svc-chip-wrap.is-off { opacity: .72; }
.svc-chip-remove {
  appearance: none; border: 0; border-left: 1px solid #d7e0db; background: transparent;
  width: 2rem; color: #7a8a80; cursor: pointer; font-size: 1.1rem; line-height: 1;
}
.svc-chip-remove:hover { background: #fdecec; color: #b42318; }
.svc-suggest-input { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.svc-chip-wrap .svc-suggest-label {
  border: 0; box-shadow: none; border-radius: 0; background: transparent; padding: .45rem .9rem .45rem .75rem;
}
.svc-chip-wrap.is-off .svc-chip-check { background: #fff; border-color: #b7c4bc; color: transparent; }

.widget-type-card {
  display: flex; flex-direction: column; gap: .35rem; height: 100%;
  border: 1px solid #d5ddd8; border-radius: 12px; padding: 1rem 1rem .95rem;
  background: #fff; cursor: pointer; position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.widget-type-card input { position: absolute; opacity: 0; pointer-events: none; }
.widget-type-card:hover { border-color: #9bb5a4; }
.widget-type-card.is-selected,
.widget-type-card:has(input:checked) {
  border-color: #2F6B3C; background: #eef6f0; box-shadow: 0 0 0 1px #2F6B3C;
}
.widget-type-title { font-weight: 700; color: #1f3d28; }
.widget-type-body { font-size: .85rem; color: #5b675f; line-height: 1.35; }
.widget-type-badge {
  align-self: flex-start; font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .03em; color: #2F6B3C; background: #dcefe2; border-radius: 999px; padding: .15rem .5rem;
}

.color-picker-group .form-control-color {
  width: 3rem; max-width: 3rem; padding: .35rem; flex: 0 0 auto;
  cursor: pointer;
}

/* ——— AI admin page ——— */
.ai-stat-card {
  border: 1px solid rgba(31, 61, 40, 0.08);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shell-shadow);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.ai-stat-card:hover {
  border-color: rgba(47, 107, 60, 0.18);
  box-shadow: 0 2px 8px rgba(21, 39, 28, 0.07);
}
.ai-stat-card__label {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7d72;
}
.ai-stat-card__value { font-weight: 600; color: var(--brand-deep); }

.ai-usage-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .55);
  animation: ai-usage-pulse 1.6s ease-out infinite;
  display: inline-block;
}
#ai-usage-live.is-refreshing .ai-usage-live-dot {
  background: #86efac;
}
@keyframes ai-usage-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .45); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.ai-call-log-row--error {
  background: rgba(220, 53, 69, 0.06);
}
.ai-call-log-row--empty {
  background: rgba(255, 193, 7, 0.08);
}
.ai-call-log-row--clickable {
  cursor: pointer;
}
.ai-call-log-row--clickable:hover {
  background: rgba(31, 61, 40, 0.04);
}
.ai-call-detail-pre {
  max-height: 42vh;
  overflow: auto;
  font-size: 0.78rem;
  background: #f8faf9;
  border-radius: 8px;
  padding: 0.75rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.ai-settings-block {
  border: 1px solid rgba(31, 61, 40, 0.08);
  border-radius: 12px;
  background: #fafcfb;
  padding: 1.15rem 1.25rem;
}
.ai-settings-block + .ai-settings-block { margin-top: 1rem; }
.ai-settings-block__title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-mid);
  margin-bottom: 0.85rem;
}

.ai-tier-card {
  border: 1px solid #d5ddd8;
  border-radius: 12px;
  background: #fff;
  padding: 1rem 1.1rem;
  height: 100%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.ai-tier-card--cheap { border-top: 3px solid #6b9e78; }
.ai-tier-card--standard { border-top: 3px solid var(--brand); }
.ai-tier-card--advanced { border-top: 3px solid #8b5cf6; }
.ai-tier-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.ai-tier-card__label { font-weight: 700; color: var(--brand-deep); font-size: 0.95rem; }
.ai-tier-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  white-space: nowrap;
}
.ai-tier-badge--cheap { background: #e8f3ec; color: #2d6a42; }
.ai-tier-badge--standard { background: var(--brand-soft); color: var(--brand-deep); }
.ai-tier-badge--advanced { background: #f0ebff; color: #5b21b6; }

.ai-feature-card {
  border: 1px solid #d5ddd8;
  border-radius: 10px;
  background: #fff;
  padding: 0.85rem 1rem;
  height: 100%;
  transition: border-color 0.18s ease;
}
.ai-feature-card:hover { border-color: #9bb5a4; }
.ai-feature-card__label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--brand-deep);
  margin-bottom: 0.45rem;
}
.ai-feature-card__model {
  font-size: 0.75rem;
  color: #6b7d72;
  margin-top: 0.35rem;
  word-break: break-all;
}

.ai-model-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f4f6f5;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7d72;
  border-bottom: 1px solid #d5ddd8;
}
.ai-model-table tbody tr { transition: background 0.12s ease; }
.ai-model-table tbody tr:hover { background: rgba(238, 246, 240, 0.55); }
.ai-model-table tr.is-tier-cheap { background: rgba(107, 158, 120, 0.08); }
.ai-model-table tr.is-tier-standard { background: rgba(47, 107, 60, 0.07); }
.ai-model-table tr.is-tier-advanced { background: rgba(139, 92, 246, 0.07); }

.ai-tier-btn {
  font-size: 0.68rem;
  font-weight: 650;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  border: 1px solid #cfd8d3;
  background: #fff;
  color: #5b675f;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.ai-tier-btn:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
  background: var(--brand-soft);
}
.ai-tier-btn.is-active--cheap {
  background: #e8f3ec;
  border-color: #6b9e78;
  color: #2d6a42;
}
.ai-tier-btn.is-active--standard {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-deep);
}
.ai-tier-btn.is-active--advanced {
  background: #f0ebff;
  border-color: #8b5cf6;
  color: #5b21b6;
}
.ai-tier-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

/* ——— Website overview ——— */
.sites-page__intro .text-muted { max-width: 36rem; }

.sites-stat {
  border: 1px solid rgba(31, 61, 40, 0.08);
  border-radius: 14px;
  background: linear-gradient(165deg, #ffffff 0%, #f7fbf8 100%);
  box-shadow: var(--shell-shadow);
  padding: 1.15rem 1.25rem;
  position: relative;
  overflow: hidden;
}
.sites-stat::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--brand-mid), var(--brand-deep));
  border-radius: 14px 0 0 14px;
}
.sites-stat__label {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7d72;
  margin-bottom: 0.35rem;
}
.sites-stat__value {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-deep);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.sites-stat__hint {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #6b7d72;
}

.sites-table-card,
.sites-create-card {
  border: 1px solid rgba(31, 61, 40, 0.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shell-shadow);
  overflow: hidden;
}
.sites-create-card { padding: 1.25rem 1.35rem 1.4rem; }

.sites-table-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid rgba(31, 61, 40, 0.07);
  background: linear-gradient(180deg, #fbfdfc 0%, #f4f8f5 100%);
}
.sites-table-card__period {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7d72;
  letter-spacing: 0.02em;
}
.sites-table-card__empty {
  padding: 2rem 1.25rem;
  text-align: center;
  color: #6b7d72;
}

.sites-table {
  --bs-table-bg: transparent;
  --bs-table-hover-bg: rgba(47, 107, 60, 0.04);
}
.sites-table thead th {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b7d72;
  border-bottom-color: rgba(31, 61, 40, 0.1);
  padding: 0.75rem 1.15rem;
  white-space: nowrap;
  background: #fafcfb;
}
.sites-table tbody td {
  padding: 1rem 1.15rem;
  border-bottom-color: rgba(31, 61, 40, 0.06);
  vertical-align: middle;
}
.sites-table tbody tr:last-child td { border-bottom: 0; }
.sites-table__name {
  font-weight: 650;
  color: var(--brand-deep);
  margin-bottom: 0.15rem;
}
.sites-table__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
  font-size: 0.8rem;
  color: #6b7d72;
}
.sites-table__dot { opacity: 0.55; }
.sites-table__id {
  font-size: 0.72rem;
  color: #5a6b61;
  background: #eef3f0;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}
.sites-table__cost {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #6b7d72;
}
.sites-table__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}
.sites-table__actions .chat-test-btn {
  flex-shrink: 0;
}

/* ——— Chat testen CTA ——— */
.chat-test-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  white-space: nowrap;
  color: #fff !important;
  background: linear-gradient(135deg, #46a058 0%, var(--brand) 45%, #255732 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 10px 24px rgba(47, 107, 60, 0.32);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
  overflow: hidden;
  isolation: isolate;
}
.chat-test-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.22) 50%, transparent 65%);
  transform: translateX(-130%);
  transition: transform 0.55s ease;
  pointer-events: none;
}
.chat-test-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 14px 32px rgba(47, 107, 60, 0.4);
  filter: brightness(1.04);
  color: #fff !important;
}
.chat-test-btn:hover::before { transform: translateX(130%); }
.chat-test-btn:active { transform: translateY(0); }
.chat-test-btn--sm {
  padding: 0.48rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 650;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 6px 16px rgba(47, 107, 60, 0.26);
}
.chat-test-btn--sm .chat-test-btn__icon { width: 15px; height: 15px; }
.chat-test-btn--lg {
  padding: 0.9rem 1.55rem;
  font-size: 1.02rem;
  min-width: 11rem;
}
.chat-test-btn--lg .chat-test-btn__label::after {
  content: ' →';
  font-weight: 700;
  opacity: 0.92;
}
.chat-test-btn__icon {
  flex: 0 0 auto;
  display: block;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.12));
}
.chat-test-btn__label {
  position: relative;
  z-index: 1;
}

.chat-test-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.35rem;
  padding: 1.25rem 1.45rem;
  border-radius: 16px;
  background:
    radial-gradient(ellipse 80% 90% at 100% 0%, rgba(47, 107, 60, 0.14), transparent 58%),
    linear-gradient(135deg, #e8f3ec 0%, #f4faf6 48%, #fff 100%);
  border: 1px solid rgba(47, 107, 60, 0.2);
  box-shadow: 0 12px 32px rgba(21, 39, 28, 0.07);
}
.chat-test-banner__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.35rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(47, 107, 60, 0.1);
}
.chat-test-banner__title {
  margin: 0 0 0.3rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-deep);
  letter-spacing: -0.01em;
}
.chat-test-banner__text {
  margin: 0;
  font-size: 0.9rem;
  color: #5b675f;
  max-width: 36rem;
  line-height: 1.45;
}

/* ——— Responsive ——— */
@media (max-width: 991.98px) {
  .app-sidebar {
    transform: translateX(-105%);
    box-shadow: none;
  }

  .app-shell.is-nav-open .app-sidebar {
    transform: translateX(0);
    box-shadow: 12px 0 40px rgba(12, 22, 16, 0.28);
  }

  .app-main {
    margin-left: 0;
  }

  .app-topbar {
    display: flex;
  }

  .app-content {
    width: min(1140px, calc(100% - 1.75rem));
    padding-top: 1.15rem;
  }
}

/* ——— Platform admin dashboard ——— */
.platform-dash__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-primary, #2F6B3C);
  margin-bottom: 0.25rem;
}
.platform-kpi {
  border: 1px solid rgba(31, 61, 40, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #f8fbf9 100%);
  box-shadow: var(--shell-shadow);
  padding: 1rem 1.1rem;
}
.platform-kpi__label {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7d72;
  margin-bottom: 0.35rem;
}
.platform-kpi__value {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--brand-deep);
  line-height: 1.1;
}
.platform-kpi__hint {
  font-size: 0.78rem;
  color: #7a8b80;
  margin-top: 0.35rem;
}
.platform-chart-card {
  border: 1px solid rgba(31, 61, 40, 0.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shell-shadow);
  overflow: hidden;
}
.platform-chart-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem 0;
}
.platform-chart-card__body {
  position: relative;
  min-height: 220px;
  padding: 0.75rem 1rem 1rem;
}
.platform-chart-card__body--donut {
  min-height: 260px;
}
.platform-mini-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.platform-model-table td,
.platform-model-table th {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}
.platform-dash-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #8fa396;
}
.platform-dash-divider::before,
.platform-dash-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(31, 61, 40, 0.1);
}
.platform-dash-divider__label {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .app-sidebar,
  .app-backdrop,
  .app-nav-link,
  .app-nav-link::before,
  .app-nav-icon,
  .app-main {
    transition: none !important;
  }
}
