/* ── BOT DEMO + STYLE BUILDER ───────────────── */
.bot-demo {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
  background: #000;
}
@media (min-width: 900px) { .bot-demo { padding: 88px 0; } }
.bot-demo-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: 36px;
  align-items: center;
}
@media (min-width: 900px) {
  .bot-demo-inner { grid-template-columns: 1fr 1fr; gap: 48px; }
}
.bot-demo-text { display: grid; gap: 14px; }
.bot-demo-text h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em; }
.bot-demo-text p { max-width: 46ch; color: var(--ink-2); }
.bot-demo-visual { display: flex; justify-content: center; }
.bot-demo-window {
  width: 100%;
  max-width: 360px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 10px;
  box-shadow: 0 24px 50px -28px rgba(0,0,0,.55);
}
.bot-demo-bar { display: flex; gap: 6px; margin-bottom: 4px; }
.bot-demo-bar span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line-3);
}
.bot-demo-msg {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.45;
}
.bot-demo-msg--bot {
  background: rgba(255,255,255,.06);
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.bot-demo-msg--user {
  justify-self: end;
  background: var(--cyan);
  color: #041018;
  font-weight: 500;
}
.bot-demo-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.bot-demo-chips span {
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
}

.bot-style-sec {
  padding: 56px 0 72px;
  border-bottom: 1px solid var(--line);
  background: #000;
}
@media (min-width: 900px) { .bot-style-sec { padding: 88px 0 100px; } }
.bot-style-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: 36px;
  align-items: start;
}
@media (min-width: 960px) {
  .bot-style-inner { grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: 48px; }
}
.bot-style-inner--cta {
  grid-template-columns: 1fr;
  max-width: var(--wrap);
  margin: 0 auto;
  text-align: center;
  justify-items: center;
}
.bot-style-inner--cta .bot-style-text {
  justify-items: center;
  text-align: center;
}
.bot-style-inner--cta .bot-style-text > p {
  max-width: 54ch;
  margin-left: auto;
  margin-right: auto;
}
.bot-style-text { display: grid; gap: 14px; }
.bot-style-text h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em; }
.bot-style-text > p { max-width: 52ch; color: var(--ink-2); }
.bot-style-controls { display: grid; gap: 18px; margin-top: 6px; }
.bot-style-field {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 8px;
}
.bot-style-field legend,
.bot-style-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.bot-style-options,
.bot-style-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bot-style-options label,
.bot-style-swatches label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  font-size: 13.5px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.bot-style-options label:has(input:checked),
.bot-style-swatches label:has(input:checked) {
  border-color: var(--cyan);
  background: rgba(0,200,255,.08);
}
.bot-style-options input,
.bot-style-swatches input { accent-color: var(--cyan); }
.bot-swatch {
  width: 14px; height: 14px; border-radius: 50%;
  display: inline-block;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
}
.bot-swatch--cyan { background: #00C8FF; }
.bot-swatch--green { background: #2ECC71; }
.bot-swatch--amber { background: #E0A106; }
.bot-swatch--rose { background: #E86B8A; }
.bot-swatch--navy { background: #3B6EF5; }
.bot-swatch--coral { background: #FF6B4A; }
.bot-swatch--slate { background: #8B93A7; }
.bot-swatch--custom {
  background: conic-gradient(from 90deg, #00C8FF, #2ECC71, #E0A106, #E86B8A, #00C8FF);
}
.bot-style-text-input {
  width: 100%;
  max-width: 280px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.04);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
.bot-style-logo-row { display: flex; gap: 10px; align-items: center; }
.bot-style-upload {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.04);
  font-size: 13.5px;
  cursor: pointer;
}
.bot-style-upload:hover { border-color: var(--cyan); }
.bot-style-clear {
  background: none;
  border: 0;
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}
.bot-style-custom-color {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-2);
}
.bot-style-custom-color input[type="color"] {
  width: 36px; height: 28px;
  padding: 0; border: 1px solid var(--line-2);
  border-radius: 6px; background: transparent; cursor: pointer;
}
.bot-style-note {
  font-size: 13px;
  color: var(--ink-2);
  max-width: 48ch;
  margin-top: 4px;
}

.bot-style-preview-wrap { position: sticky; top: 88px; }
.bot-style-page-mock {
  position: relative;
  min-height: 420px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 40%),
    var(--bg-2);
  overflow: hidden;
  padding: 18px;
}
.bot-style-page-bar {
  height: 10px;
  width: 42%;
  border-radius: 999px;
  background: var(--line-2);
  margin-bottom: 18px;
}
.bot-style-page-content { display: grid; gap: 10px; max-width: 55%; }
.bot-style-page-line {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
}
.bot-style-page-line--short { width: 62%; }

.bot-style-widget {
  --bot-r: 14px;
  --bot-accent: #00C8FF;
  position: absolute;
  right: 18px;
  bottom: 78px;
  width: min(280px, calc(100% - 36px));
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--bot-r);
  transition: border-radius .2s ease, background .2s ease, box-shadow .2s ease;
}
.bot-style-widget[data-shape="square"] { --bot-r: 4px; }
.bot-style-widget[data-shape="rounded"] { --bot-r: 14px; }
.bot-style-widget[data-shape="pill"] { --bot-r: 22px; }

.bot-style-widget[data-theme="dark"] {
  background: #10131c;
  color: #eef0f8;
}
.bot-style-widget[data-theme="light"] {
  background: #f7f8fc;
  color: #10131c;
  border-color: #d8dce8;
}
.bot-style-widget[data-surface="matte"] { box-shadow: 0 18px 40px -24px rgba(0,0,0,.7); }
.bot-style-widget[data-surface="glass"] {
  background: rgba(16,19,28,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.bot-style-widget[data-theme="light"][data-surface="glass"] {
  background: rgba(247,248,252,.78);
}
.bot-style-widget[data-surface="solid"] { box-shadow: none; }

.bot-style-widget[data-accent="cyan"] { --bot-accent: #00C8FF; }
.bot-style-widget[data-accent="green"] { --bot-accent: #2ECC71; }
.bot-style-widget[data-accent="amber"] { --bot-accent: #E0A106; }
.bot-style-widget[data-accent="rose"] { --bot-accent: #E86B8A; }

.bot-style-widget-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.bot-style-widget[data-theme="light"] .bot-style-widget-head {
  border-bottom-color: rgba(16,19,28,.08);
}
.bot-style-widget-logo {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--bot-accent) 22%, transparent);
  color: var(--bot-accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.bot-style-widget-logo.has-logo { background: transparent; }
.bot-style-widget-logo img {
  width: 100%; height: 100%; object-fit: contain;
}
.bot-style-widget-title {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.bot-style-widget-body {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  min-height: 140px;
}
.bot-style-bubble {
  max-width: 90%;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.4;
}
.bot-style-bubble--bot {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}
.bot-style-widget[data-theme="light"] .bot-style-bubble--bot {
  background: #fff;
  border-color: #e2e5ef;
}
.bot-style-bubble--user {
  justify-self: end;
  background: var(--bot-accent);
  color: #041018;
  font-weight: 500;
}
.bot-style-widget-input {
  margin: 0 12px 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1);
  font-size: 12.5px;
  color: var(--ink-2);
  opacity: .85;
}
.bot-style-widget[data-theme="light"] .bot-style-widget-input {
  border-color: #d8dce8;
  background: #fff;
  color: #6a7087;
}

.bot-style-fab {
  --bot-accent: #00C8FF;
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  background: var(--bot-accent);
  color: #041018;
  border-radius: 14px;
  box-shadow: 0 12px 28px -12px rgba(0,0,0,.55);
}
.bot-style-fab[data-shape="square"] { border-radius: 6px; }
.bot-style-fab[data-shape="rounded"] { border-radius: 14px; }
.bot-style-fab[data-shape="pill"] { border-radius: 999px; }
.bot-style-fab[data-accent="cyan"] { --bot-accent: #00C8FF; }
.bot-style-fab[data-accent="green"] { --bot-accent: #2ECC71; }
.bot-style-fab[data-accent="amber"] { --bot-accent: #E0A106; }
.bot-style-fab[data-accent="rose"] { --bot-accent: #E86B8A; }

.auto-list--spaced { display: grid; gap: 10px; }
.auto-cases-grid--single { grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .auto-cases-grid--single { grid-template-columns: 1fr 1fr; }
}

/* ── FULL BUILDER PAGE ─────────────────────── */
.page-hero--compact { padding-bottom: 40px; }
.bot-builder-back {
  margin-top: 8px;
  font-size: 14px;
}
.bot-builder-back a { color: var(--ink-2); text-decoration: none; }
.bot-builder-back a:hover { color: var(--cyan); }

.bot-builder {
  padding: 0 0 72px;
  border-bottom: 1px solid var(--line);
  background: #000;
}
.bot-builder-layout {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: 28px;
  align-items: start;
}
@media (min-width: 1020px) {
  .bot-builder-layout {
    grid-template-columns: minmax(300px, 400px) minmax(0, 1fr);
    gap: 36px;
  }
}

.bot-builder-panel {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 22px 20px;
  max-height: none;
}
@media (min-width: 1020px) {
  .bot-builder-panel {
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 110px);
    overflow: auto;
  }
}
.bot-style-controls--full { margin-top: 0; gap: 16px; }
.bot-style-text-input--wide { max-width: 100%; }
.bot-builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.bot-builder-stage { min-width: 0; }
.bot-style-page-mock--xl {
  min-height: 620px;
  height: min(78vh, 760px);
  padding: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}
.bot-style-page-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
}
.bot-style-page-chrome > span {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.18);
}
.bot-style-page-url {
  margin-left: 10px;
  flex: 1;
  font-size: 12px;
  color: var(--ink-2);
  background: rgba(255,255,255,.05);
  border-radius: 6px;
  padding: 5px 10px;
}
.bot-style-page-mock--xl .bot-style-page-bar {
  margin: 22px 22px 14px;
}
.bot-style-page-mock--xl .bot-style-page-content {
  margin-left: 22px;
  max-width: 48%;
}
.bot-style-page-block {
  display: block;
  width: 78%;
  height: 88px;
  margin-top: 8px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}

.bot-style-page-mock[data-page="light"] {
  background: linear-gradient(180deg, #f4f6fb, #e9edf5);
}
.bot-style-page-mock[data-page="light"] .bot-style-page-chrome {
  background: #fff;
  border-bottom-color: #dfe3ee;
}
.bot-style-page-mock[data-page="light"] .bot-style-page-chrome > span { background: #d0d5e2; }
.bot-style-page-mock[data-page="light"] .bot-style-page-url {
  background: #f0f2f8;
  color: #5a6178;
}
.bot-style-page-mock[data-page="light"] .bot-style-page-bar,
.bot-style-page-mock[data-page="light"] .bot-style-page-line,
.bot-style-page-mock[data-page="light"] .bot-style-page-block {
  background: rgba(16,19,28,.08);
  border-color: rgba(16,19,28,.08);
}

.bot-style-widget-meta { display: grid; gap: 1px; min-width: 0; }
.bot-style-widget-status {
  font-size: 11px;
  color: var(--bot-accent);
  opacity: .9;
}
.bot-style-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.bot-style-chips[hidden] { display: none !important; }
.bot-style-chips span {
  font-size: 11px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  color: inherit;
  opacity: .85;
}
.bot-style-widget[data-theme="light"] .bot-style-chips span {
  border-color: #d8dce8;
}

/* size */
.bot-style-widget[data-size="compact"] { width: min(240px, calc(100% - 36px)); }
.bot-style-widget[data-size="normal"] { width: min(300px, calc(100% - 36px)); }
.bot-style-widget[data-size="large"] { width: min(360px, calc(100% - 36px)); }
.bot-style-widget[data-size="large"] .bot-style-widget-body { min-height: 180px; }
.bot-style-widget[data-size="large"] .bot-style-bubble { font-size: 13.5px; }

/* position */
.bot-style-widget[data-pos="right"],
.bot-style-fab[data-pos="right"] { right: 22px; left: auto; }
.bot-style-widget[data-pos="left"],
.bot-style-fab[data-pos="left"] { left: 22px; right: auto; }
.bot-style-page-mock--xl .bot-style-widget { bottom: 88px; }
.bot-style-page-mock--xl .bot-style-fab { bottom: 22px; }

/* header variants */
.bot-style-widget[data-header="accent"] .bot-style-widget-head {
  background: color-mix(in srgb, var(--bot-accent) 18%, transparent);
}
.bot-style-widget[data-header="bold"] .bot-style-widget-head {
  background: var(--bot-accent);
  color: #041018;
  border-bottom-color: transparent;
}
.bot-style-widget[data-header="bold"] .bot-style-widget-status { color: #041018; opacity: .75; }
.bot-style-widget[data-header="bold"] .bot-style-widget-logo {
  background: rgba(4,16,24,.12);
  color: #041018;
}

/* theme brand */
.bot-style-widget[data-theme="brand"] {
  background: color-mix(in srgb, var(--bot-accent) 12%, #10131c);
  color: #eef0f8;
  border-color: color-mix(in srgb, var(--bot-accent) 35%, transparent);
}

/* surface outline */
.bot-style-widget[data-surface="outline"] {
  background: transparent;
  border-width: 2px;
  border-color: var(--bot-accent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.bot-style-widget[data-theme="light"][data-surface="outline"] {
  background: rgba(255,255,255,.72);
}

/* fab variants */
.bot-style-fab {
  width: auto;
  min-width: 48px;
  height: 48px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
.bot-style-fab .bot-fab-label { display: none; }
.bot-style-fab[data-fab="icon"] { width: 48px; padding: 0; }
.bot-style-fab[data-fab="label"] .bot-fab-icon { display: none; }
.bot-style-fab[data-fab="label"] .bot-fab-label,
.bot-style-fab[data-fab="both"] .bot-fab-label { display: inline; }
.bot-style-fab[data-fab="label"] { border-radius: 999px; padding: 0 18px; }

@media (max-width: 1019.98px) {
  .bot-style-page-mock--xl {
    min-height: 520px;
    height: 560px;
  }
}
