/* Zentrix Agents console — dark theme with amber accents (based on the Boo console) */
:root {
  --bg: #0F141B;
  --panel: #161D27;
  --raised: #1E2733;
  --line: #2B3644;
  --line-soft: #222B37;
  --text: #E9EEF5;
  --muted: #8E9BAD;
  --amber: #FFB46A;
  --amber-strong: #FF8B3D;
  --amber-ink: #2A1704;
  --amber-glow: rgba(255, 180, 106, .14);
  --green: #5ED29A;
  --red: #FF6F6F;
  --blue: #7DB7FF;
  --board: #0A0D12;
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Chivo Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--amber); }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- buttons & inputs ---------- */
.btn { font: 600 14px var(--font); border-radius: var(--radius-s); padding: 9px 16px; border: 1px solid var(--line); background: var(--raised); color: var(--text); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.btn:hover { border-color: #3A4757; }
.btn.primary { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
.btn.primary:hover { background: #FFC285; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--red); background: transparent; }
.btn.danger:hover { border-color: var(--red); }
.btn.wide { width: 100%; justify-content: center; padding: 12px; }
.btn:disabled { opacity: .5; cursor: progress; }
.icon-btn { background: none; border: 0; color: var(--muted); padding: 6px; cursor: pointer; border-radius: var(--radius-s); }
.icon-btn:hover { color: var(--text); background: var(--raised); }

label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
input, textarea, select {
  font: 15px/1.45 var(--font); color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 12px; width: 100%;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-glow); }
textarea { resize: vertical; min-height: 110px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.form-error { color: var(--red); min-height: 1.2em; margin: 0; font-size: 14px; }

/* ---------- login ---------- */
.login { min-height: 100%; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(900px 500px at 70% -10%, rgba(255,139,61,.12), transparent 60%), var(--bg); }
.login-card { width: min(380px, 100%); display: grid; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 32px; }
.login-card h1 { margin: 8px 0 0; font-size: 24px; }
.login-card p { margin: 0; }
.login-logo { width: 120px; opacity: .55; justify-self: center; margin-top: 8px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; background: linear-gradient(90deg, var(--panel) 0 247px, var(--line-soft) 247px 248px, var(--bg) 248px); }
.sidebar { background: var(--panel); border-right: 1px solid var(--line-soft); align-self: start; display: flex; flex-direction: column; padding: 20px 14px; position: sticky; top: 0; height: 100vh; }
.side-head { display: flex; gap: 12px; align-items: center; padding: 0 8px 20px; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--amber); color: var(--amber-ink); display: grid; place-items: center; font: 700 20px var(--font); }
.brand-name { font-weight: 700; font-size: 17px; }
.brand-sub { color: var(--muted); font-size: 13px; }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--radius-s); color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--text); background: var(--raised); }
.nav a.active { color: var(--text); background: var(--raised); box-shadow: inset 3px 0 0 var(--amber); }
.nav a.active svg { color: var(--amber); }
.nav-group { color: var(--muted); font-size: 12px; padding: 18px 12px 6px; }
.nav-count { margin-left: auto; background: var(--amber); color: var(--amber-ink); font-size: 12px; font-weight: 700; border-radius: 20px; padding: 0 8px; }
.side-foot { margin-top: auto; padding: 16px 12px 0; display: grid; gap: 6px; }
.side-foot img { width: 110px; opacity: .7; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 16px; padding: 18px 32px; border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; background: rgba(15,20,27,.92); backdrop-filter: blur(8px); z-index: 5; }
.topbar h1 { font-size: 22px; margin: 0; font-weight: 650; letter-spacing: -.01em; }
.top-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; }
.content { padding: 28px 32px 64px; max-width: 1240px; width: 100%; }
.content:focus { outline: none; }

/* auto-reply switch: the one control that matters most */
.live-switch { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--raised); color: var(--text); border-radius: 30px; padding: 7px 14px 7px 10px; font: 600 14px var(--font); cursor: pointer; }
.live-switch .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(94,210,154,.18); }
.live-switch[aria-checked="false"] .dot { background: var(--muted); box-shadow: none; }
.live-switch[aria-checked="false"] { color: var(--muted); }

/* ---------- generic blocks ---------- */
.section { margin-bottom: 36px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 17px; font-weight: 650; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.panel { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius-m); padding: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stack { display: grid; gap: 14px; align-content: start; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius-m); }
.empty strong { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }

/* ---------- departures board (overview hero) ---------- */
.board { background: var(--board); border: 1px solid #1B222C; border-radius: var(--radius-l); padding: 22px 24px 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,.03); }
.board-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.board-title { font: 600 20px var(--font); color: var(--amber); display: flex; gap: 12px; align-items: center; }
.board-title svg { width: 22px; height: 22px; }
.board-clock { font: 500 22px var(--mono); color: var(--amber); letter-spacing: .06em; }
.board-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.board-table th { text-align: left; font: 500 12px var(--font); color: #6E7A8A; padding: 0 10px 4px; }
.board-table td { font: 500 15px var(--mono); color: #FFD6A8; padding: 9px 10px; background: #121820; white-space: nowrap; }
.board-table td:first-child { border-radius: 6px 0 0 6px; }
.board-table td:last-child { border-radius: 0 6px 6px 0; }
.board-table td.who { color: var(--text); font-family: var(--font); max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.flap { display: inline-block; min-width: .62em; text-align: center; background: linear-gradient(#1A212B 49%, #0C1016 50%, #161C25 51%); border-radius: 2px; margin-right: 1px; padding: 0 1px; }
.b-status { font-family: var(--font); font-weight: 600; font-size: 13px; }
.s-confirmed { color: var(--green); }
.s-pending, .s-new { color: var(--amber); }
.s-cancelled, .s-closed { color: var(--red); }
.s-contacted { color: var(--blue); }
.board-empty { font: 500 15px var(--mono); color: #FFD6A8; padding: 24px 10px; }

.month-strip { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 20px; border: 1px solid var(--line-soft); border-radius: var(--radius-m); background: var(--panel); }
.month-strip > div { padding: 16px 18px; border-right: 1px solid var(--line-soft); }
.month-strip > div:last-child { border-right: 0; }
.fig { font-size: 26px; font-weight: 650; letter-spacing: -.02em; display: block; font-variant-numeric: tabular-nums; }
.fig-label { color: var(--muted); font-size: 13px; }
a.fig-link { color: inherit; text-decoration: none; display: block; }
a.fig-link:hover .fig { color: var(--amber); }

/* plan meter */
.meter { height: 10px; background: var(--raised); border-radius: 10px; overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--amber); border-radius: 10px; transition: width .6s ease; }
.meter.warn > span { background: var(--amber-strong); }
.meter.full > span { background: var(--red); }

/* ---------- tabs ---------- */
.tabs { display: inline-flex; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 30px; padding: 4px; gap: 2px; }
.tabs button { font: 600 14px var(--font); color: var(--muted); background: none; border: 0; padding: 7px 16px; border-radius: 30px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--raised); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- boarding-pass tickets (bookings) ---------- */
.tickets { display: grid; gap: 12px; }
.ticket { display: grid; grid-template-columns: 170px 1fr auto; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius-m); position: relative; }
.ticket::before, .ticket::after { content: ""; position: absolute; left: 163px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-soft); }
.ticket::before { top: -8px; clip-path: inset(50% 0 0 0); }
.ticket::after { bottom: -8px; clip-path: inset(0 0 50% 0); }
.stub { padding: 16px 18px; border-right: 2px dashed var(--line); display: grid; gap: 6px; align-content: center; }
.stub .ref { font: 500 15px var(--mono); color: var(--amber); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 20px; background: var(--raised); width: fit-content; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ticket-body { padding: 16px 20px; display: grid; gap: 8px; min-width: 0; }
.route { font-size: 22px; font-weight: 650; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.route .arrow { color: var(--amber); }
.route .sub { font-size: 14px; font-weight: 500; color: var(--muted); }
.facts { display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.facts b { color: var(--text); font-weight: 600; }
.ticket-actions { padding: 16px 18px; display: grid; gap: 8px; align-content: center; justify-items: end; }
.ticket-actions select { width: 150px; padding: 7px 30px 7px 10px; font-size: 14px; }

/* ---------- tables (leads, usage) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius-m); background: var(--panel); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; color: var(--muted); font-weight: 500; font-size: 13px; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.nowrap { white-space: nowrap; }
table.data td.num { font-variant-numeric: tabular-nums; text-align: right; }
table.data th.num { text-align: right; }
table.data select { width: 140px; padding: 6px 28px 6px 10px; font-size: 13.5px; }
.lead-details { max-width: 340px; color: var(--muted); }

/* ---------- conversations ---------- */
.convo { display: grid; grid-template-columns: 320px 1fr; border: 1px solid var(--line-soft); border-radius: var(--radius-m); overflow: hidden; height: calc(100vh - 170px); min-height: 420px; grid-template-rows: minmax(0, 1fr); background: var(--panel); }
.convo-list { border-right: 1px solid var(--line-soft); overflow-y: auto; }
.convo-item { display: grid; gap: 2px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); cursor: pointer; background: none; border-left: 3px solid transparent; text-align: left; width: 100%; color: inherit; font: inherit; }
.convo-item:hover { background: var(--raised); }
.convo-item.active { background: var(--raised); border-left-color: var(--amber); }
.convo-item .top { display: flex; justify-content: space-between; gap: 8px; }
.convo-item .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo-item .when { color: var(--muted); font-size: 12px; white-space: nowrap; }
.convo-item .last { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; }   /* lets .messages scroll */
.convo-head { padding: 14px 20px; border-bottom: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.messages { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; padding: 20px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(180deg, rgba(255,180,106,.025), transparent 40%); }
.msg { max-width: 72%; padding: 10px 14px; border-radius: 14px; white-space: pre-wrap; word-wrap: break-word; font-size: 14.5px; }
.msg.user { align-self: flex-end; background: #2A3442; border-bottom-right-radius: 4px; }
.msg.assistant { align-self: flex-start; background: var(--raised); border: 1px solid var(--line-soft); border-bottom-left-radius: 4px; }
.msg.assistant .who { color: var(--amber); font-size: 12px; font-weight: 600; display: block; margin-bottom: 2px; }
.msg a.invoice { display: inline-flex; gap: 6px; margin-top: 8px; font-weight: 600; }
.typing { align-self: flex-start; color: var(--muted); font-size: 14px; padding: 6px 4px; }
.composer { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line-soft); }
.composer textarea { min-height: 46px; height: 46px; resize: none; }
.badge-test { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; margin-left: 6px; }

/* ---------- knowledge ---------- */
.sources { display: grid; gap: 8px; }
.source { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius-m); }
.src-icon { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; background: var(--raised); color: var(--amber); font: 600 11px var(--font); }
.source .meta { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source .title { font-weight: 600; }
.dropzone { border: 1.5px dashed var(--line); border-radius: var(--radius-m); padding: 22px; text-align: center; color: var(--muted); cursor: pointer; display: block; }
.dropzone.over, .dropzone:hover { border-color: var(--amber); color: var(--text); background: var(--amber-glow); }
.dropzone input { display: none; }
.hit { border-left: 3px solid var(--amber); padding: 8px 12px; background: var(--raised); border-radius: 0 6px 6px 0; font-size: 14px; white-space: pre-wrap; }

/* ---------- prompt editor ---------- */
.editor { font: 14px/1.6 var(--mono); min-height: 60vh; tab-size: 2; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 13px var(--mono); background: var(--raised); border: 1px solid var(--line); color: #FFD6A8; border-radius: 4px; padding: 3px 8px; cursor: pointer; }
.chip:hover { border-color: var(--amber); }

/* ---------- usage chart ---------- */
.bars { display: flex; align-items: flex-end; justify-content: flex-end; gap: 4px; height: 160px; padding: 10px 0 0; }
.bars .bar { flex: 1; max-width: 28px; background: var(--amber); border-radius: 3px 3px 0 0; min-height: 2px; opacity: .85; position: relative; }
.bars .bar:hover { opacity: 1; }
.bar-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 6px; }

/* ---------- toasts & dialog ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 8px; z-index: 50; }
.toast { background: var(--raised); border: 1px solid var(--line); border-left: 3px solid var(--green); padding: 12px 16px; border-radius: var(--radius-s); min-width: 240px; max-width: 380px; box-shadow: 0 10px 30px rgba(0,0,0,.35); font-size: 14px; }
.toast.error { border-left-color: var(--red); }
dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 24px; max-width: min(720px, 92vw); width: 100%; }
dialog::backdrop { background: rgba(5,8,12,.7); }
dialog h3 { margin: 0 0 8px; }
dialog pre { white-space: pre-wrap; font: 13.5px/1.6 var(--mono); max-height: 60vh; overflow: auto; background: var(--bg); padding: 14px; border-radius: var(--radius-s); border: 1px solid var(--line-soft); }
dialog .row { justify-content: flex-end; margin-top: 18px; }

.skeleton { height: 140px; border-radius: var(--radius-m); background: linear-gradient(90deg, var(--panel), var(--raised), var(--panel)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .month-strip { grid-template-columns: repeat(3, 1fr); }
  .month-strip > div:nth-child(3) { border-right: 0; }
  .month-strip > div:nth-child(n+4) { border-top: 1px solid var(--line-soft); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; background: var(--bg); }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 20; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: 20px 0 60px rgba(0,0,0,.5); }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 14px 16px; }
  .topbar h1 { font-size: 19px; }
  .live-switch .lbl { display: none; }
  .content { padding: 20px 16px 48px; }
  .ticket { grid-template-columns: 1fr; }
  .ticket::before, .ticket::after { display: none; }
  .stub { border-right: 0; border-bottom: 2px dashed var(--line); grid-auto-flow: column; justify-content: space-between; }
  .ticket-actions { justify-items: start; grid-auto-flow: column; justify-content: start; }
  .convo { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
  .convo-list { max-height: 260px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .messages { min-height: 320px; max-height: 60vh; }
  .msg { max-width: 88%; }
  .board { padding: 16px 12px; overflow-x: auto; }
  .month-strip { grid-template-columns: 1fr 1fr; }
  .month-strip > div { border-right: 0; border-top: 1px solid var(--line-soft); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* visible scrollbar in chat + lists */
.messages, .convo-list { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.messages::-webkit-scrollbar, .convo-list::-webkit-scrollbar { width: 8px; }
.messages::-webkit-scrollbar-thumb, .convo-list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.messages::-webkit-scrollbar-thumb:hover, .convo-list::-webkit-scrollbar-thumb:hover { background: var(--amber); }

/* =====================================================================
   SaaS additions: auth, business-type picker, setup wizard, checklist,
   catalog, WhatsApp connect, super admin
   ===================================================================== */
.auth { min-height: 100%; display: grid; place-items: center; padding: 32px 16px;
  background: radial-gradient(900px 500px at 70% -10%, rgba(255,139,61,.13), transparent 60%), var(--bg); }
.auth-card { width: min(460px, 100%); display: grid; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 30px; }
.auth-card.wide { width: min(880px, 100%); }
.auth-card h1 { margin: 0; font-size: 24px; letter-spacing: -.01em; }
.auth-card p { margin: 0; }
.auth-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.auth-switch { text-align: center; font-size: 14px; color: var(--muted); }
.auth-switch a { cursor: pointer; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.type-card { text-align: left; display: grid; gap: 6px; padding: 14px; border-radius: var(--radius-m); border: 1px solid var(--line); background: var(--bg); color: var(--text); cursor: pointer; font: inherit; }
.type-card:hover { border-color: #3A4757; background: var(--raised); }
.type-card[aria-pressed="true"] { border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-glow); background: var(--raised); }
.type-card .ti { width: 36px; height: 36px; border-radius: 9px; background: var(--amber-glow); color: var(--amber); display: grid; place-items: center; }
.type-card .ti svg { width: 20px; height: 20px; }
.type-card b { font-size: 15px; }
.type-card span { color: var(--muted); font-size: 13px; line-height: 1.35; }

/* setup wizard */
.wizard { max-width: 860px; }
.steps { display: flex; gap: 6px; margin-bottom: 22px; flex-wrap: wrap; }
.steps li { list-style: none; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; font-weight: 500; padding: 6px 12px 6px 6px; border-radius: 30px; background: var(--panel); border: 1px solid var(--line-soft); }
.steps li .n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--raised); font-size: 12px; font-weight: 700; }
.steps li.done .n { background: var(--green); color: #06210F; }
.steps li.now { color: var(--text); border-color: var(--amber); }
.steps li.now .n { background: var(--amber); color: var(--amber-ink); }
.steps { padding: 0; margin-top: 0; }
.wizard-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.hint { background: var(--amber-glow); border: 1px solid rgba(255,180,106,.25); border-radius: var(--radius-m); padding: 12px 14px; font-size: 14px; color: #FFD9B3; }
.hint b { color: var(--amber); }

/* checklist */
.checklist { display: grid; gap: 8px; }
.check { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-m); background: var(--panel); border: 1px solid var(--line-soft); color: var(--text); text-decoration: none; }
.check:hover { border-color: #3A4757; }
.check .box { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; }
.check.done .box { background: var(--green); border-color: var(--green); color: #06210F; }
.check.done .box svg { width: 14px; height: 14px; stroke-width: 3; }
.check.done span.t { color: var(--muted); text-decoration: line-through; }
.check .go { margin-left: auto; color: var(--amber); font-size: 13px; font-weight: 600; }

/* stat cards */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.stat { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius-m); padding: 16px; text-decoration: none; color: inherit; display: grid; gap: 2px; }
a.stat:hover { border-color: var(--amber); }
.stat.alert .fig { color: var(--amber); }
.stats.four { grid-template-columns: repeat(4, 1fr); }

/* catalog */
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.item { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius-m); padding: 16px; display: grid; gap: 6px; align-content: start; }
.item.off { opacity: .55; }
.item .name { font-weight: 650; font-size: 15.5px; }
.item .price { font: 500 15px var(--mono); color: var(--amber); }
.item .desc { color: var(--muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.item .row { margin-top: 6px; }
.tag { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 20px; padding: 1px 8px; width: fit-content; }
.btn.sm { padding: 6px 11px; font-size: 13px; }

/* WhatsApp connect */
.wa-hero { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.wa-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.wa-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(94,210,154,.18); }
.wa-badge.err .dot { background: var(--red); box-shadow: 0 0 0 4px rgba(255,111,111,.18); }
.btn.fb { background: #1877F2; border-color: #1877F2; color: #fff; padding: 12px 18px; }
.btn.fb:hover { background: #3A8DF5; }
details.manual { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius-m); padding: 14px 18px; }
details.manual summary { cursor: pointer; font-weight: 600; }
ol.howto { margin: 8px 0 0; padding-left: 20px; color: var(--muted); font-size: 14px; display: grid; gap: 4px; }

/* small helpers */
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.switch { position: relative; width: 44px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--raised); border: 1px solid var(--line); border-radius: 24px; cursor: pointer; transition: .15s; }
.switch span::before { content: ""; position: absolute; width: 18px; height: 18px; left: 2px; top: 2px; background: var(--muted); border-radius: 50%; transition: .15s; }
.switch input:checked + span { background: var(--amber); border-color: var(--amber); }
.switch input:checked + span::before { transform: translateX(20px); background: var(--amber-ink); }
.plan-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.plan-card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius-m); padding: 18px; display: grid; gap: 6px; }
.plan-card.current { border-color: var(--amber); }
.plan-card .price { font-size: 24px; font-weight: 700; }
.banner { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--radius-m); background: rgba(255,111,111,.08); border: 1px solid rgba(255,111,111,.3); margin-bottom: 18px; font-size: 14px; }
.banner.amber { background: var(--amber-glow); border-color: rgba(255,180,106,.3); }
.super-bar { background: #2A1704; color: #FFD6A8; padding: 8px 32px; display: flex; gap: 12px; align-items: center; justify-content: space-between; font-size: 14px; }
.msg.staff { align-self: flex-end; background: #233648; border: 1px solid #2F4A63; border-bottom-right-radius: 4px; }
.msg.staff .who { color: var(--blue); font-size: 12px; font-weight: 600; display: block; margin-bottom: 2px; }
.msg.user { align-self: flex-start; border-bottom-left-radius: 4px; border-bottom-right-radius: 14px; }
.msg.assistant { align-self: flex-end; border-bottom-right-radius: 4px; border-bottom-left-radius: 14px; }
.try .msg.user { align-self: flex-end; border-bottom-right-radius: 4px; border-bottom-left-radius: 14px; }
.try .msg.assistant { align-self: flex-start; border-bottom-left-radius: 4px; border-bottom-right-radius: 14px; }
.try-box { height: 520px; display: flex; flex-direction: column; border: 1px solid var(--line-soft); border-radius: var(--radius-m); background: var(--panel); overflow: hidden; }

@media (max-width: 1080px) { .stats { grid-template-columns: repeat(3, 1fr); } .plan-cards { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .two { grid-template-columns: 1fr; }
  .stats, .stats.four { grid-template-columns: 1fr 1fr; }
  .wa-hero { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  .super-bar { padding: 8px 16px; }
  .auth-card { padding: 22px 18px; }
}
