/* ==========================================================================
   Airboost — camada de marca
   Céu noturno azul-marinho, nuvens que passam devagar, um azul-céu nos
   pontos de ação. Fica por cima do style.css (que dá os componentes base).
   ========================================================================== */

/* fundo do site: um céu bem escuro com um brilho no topo */
body {
  background:
    radial-gradient(1200px 600px at 50% -220px, rgba(61, 155, 255, .16), transparent 70%),
    linear-gradient(180deg, #070b17 0%, var(--bg) 520px);
  background-attachment: fixed, scroll;
}

/* --- logo -------------------------------------------------------------- */
.logo { gap: 9px; }
.logo-mark-img { width: 30px; height: 30px; display: block; filter: drop-shadow(0 4px 14px rgba(61, 155, 255, .45)); }
.logo-word { font-size: 1.12rem; font-weight: 600; letter-spacing: -.04em; color: var(--fg-70); }
.logo-word b { color: var(--fg); font-weight: 800; }
.logo-word.lg { font-size: 1.35rem; }
.header.is-stuck .logo-mark-img { width: 26px; height: 26px; }

/* --- botões extras ----------------------------------------------------- */
.btn-primary {
  background: linear-gradient(180deg, #5aaeff, #2f8cf0);
  box-shadow: 0 0 0 1px rgba(120, 190, 255, .35) inset, 0 8px 24px -10px rgba(61, 155, 255, .8);
}
.btn-primary:hover { background: linear-gradient(180deg, #6db8ff, #3d9bff); }
.btn-glass {
  background: rgba(160, 200, 255, .06);
  border-color: rgba(170, 205, 255, .16);
  backdrop-filter: blur(12px);
}
.btn-glass:hover { background: rgba(160, 200, 255, .12); border-color: rgba(170, 205, 255, .28); }
.btn-lg { padding: 13px 24px; border-radius: 12px; }
.link-arrow { color: var(--violet-text); font-weight: 500; font-size: .92rem; }
.center-x { justify-content: center; }

/* --- pill "novo" -------------------------------------------------------- */
.pill-new { padding: 5px 12px 5px 5px; color: var(--fg-70); transition: border-color .3s, background .3s; }
.pill-new:hover { border-color: var(--violet-line); background: var(--violet-soft); }
.pill-tag {
  padding: 2px 9px; border-radius: 99px; font-size: .72rem; font-weight: 600;
  background: var(--violet-soft); color: var(--violet-text); border: 1px solid var(--violet-line);
}

/* ==========================================================================
   Céu e nuvens
   As nuvens são blobs de radial-gradient desfocados, compostos com
   ::before/::after para ganhar o contorno irregular. Movem-se só com
   transform (barato para a GPU) e param com prefers-reduced-motion.
   ========================================================================== */
.sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.sky-stars {
  position: absolute; inset: 0; opacity: .55;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff, transparent 60%),
    radial-gradient(1px 1px at 28% 42%, #cfe6ff, transparent 60%),
    radial-gradient(1.4px 1.4px at 46% 12%, #fff, transparent 60%),
    radial-gradient(1px 1px at 64% 30%, #fff, transparent 60%),
    radial-gradient(1.2px 1.2px at 78% 16%, #d8ecff, transparent 60%),
    radial-gradient(1px 1px at 88% 40%, #fff, transparent 60%),
    radial-gradient(1px 1px at 8% 56%, #fff, transparent 60%),
    radial-gradient(1.3px 1.3px at 56% 58%, #e2f1ff, transparent 60%),
    radial-gradient(1px 1px at 94% 64%, #fff, transparent 60%),
    radial-gradient(1px 1px at 36% 70%, #fff, transparent 60%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
}
.sky-glow {
  position: absolute; left: 50%; top: -360px; width: 1400px; height: 900px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(61, 155, 255, .34), rgba(61, 155, 255, 0) 70%);
  filter: blur(30px);
}

.cloud {
  position: absolute; display: block;
  width: var(--w, 420px); aspect-ratio: 300 / 140;
  background: url("/static/img/cloud-puff.svg") center / contain no-repeat;
  opacity: var(--a, .16);
  filter: blur(var(--b, 3px));
  animation: drift var(--t, 90s) linear infinite;
  animation-delay: var(--d, 0s);
  will-change: transform;
}

/* mar de nuvens na base do hero: a sensação de estar acima delas */
.cloud-bank {
  position: absolute; left: -2%; right: -2%; bottom: 0; height: 420px; pointer-events: none;
  background: url("/static/img/cloud-bank.svg") center bottom / cover no-repeat;
  opacity: .9;
}
.cloud.c1 { --w: 340px; --a: .22; --t: 110s; --d: -20s; top: 20%; --b: 4px; }
.cloud.c2 { --w: 220px; --a: .16; --t: 85s;  --d: -55s; top: 7%;  --b: 2px; }
.cloud.c3 { --w: 460px; --a: .14; --t: 150s; --d: -95s; top: 44%; --b: 8px; }
.cloud.c4 { --w: 180px; --a: .14; --t: 70s;  --d: -12s; top: 33%; --b: 2px; }
.cloud.c5 { --w: 400px; --a: .2;  --t: 130s; --d: -70s; top: 58%; --b: 6px; }

@keyframes drift {
  from { transform: translateX(-60vw); }
  to   { transform: translateX(130vw); }
}
@media (prefers-reduced-motion: reduce) {
  .cloud { animation: none; transform: translateX(20vw); }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.sky-hero { position: relative; padding: clamp(56px, 8vw, 104px) 0 0; overflow: hidden; }
.sky-hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none; z-index: 1;
  background: linear-gradient(180deg, transparent, var(--bg));
}
.sky-hero .cloud-bank { bottom: -10px; height: 460px; }
.sky-hero-inner { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; }

.mega {
  font-size: clamp(4rem, 15vw, 11.5rem);
  line-height: .9; letter-spacing: -.06em; font-weight: 800;
  margin: 10px 0 18px;
  background: linear-gradient(180deg, #ffffff 0%, #e4f1ff 38%, #8cc6ff 78%, #3d9bff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 12px 50px rgba(61, 155, 255, .35));
}
.mega-sub {
  font-size: clamp(1.05rem, 2vw, 1.32rem); color: var(--fg-70);
  max-width: 640px; margin: 0 auto 30px; line-height: 1.5; letter-spacing: -.02em;
}
.sky-hero .hero-cta { margin-bottom: clamp(48px, 6vw, 72px); }

/* --- janela do painel (prévia) ----------------------------------------- */
.app-preview {
  width: 100%; max-width: 1060px; position: relative; z-index: 2;
  padding: 10px; border-radius: 26px;
  background: linear-gradient(180deg, rgba(120, 180, 255, .22), rgba(120, 180, 255, .04) 60%, transparent);
  box-shadow: 0 40px 120px -30px rgba(20, 80, 180, .55);
}
.app-window {
  display: grid; grid-template-columns: 58px 1fr; text-align: left;
  border-radius: 18px; overflow: hidden;
  background: rgba(8, 13, 26, .92); border: 1px solid var(--border-2);
  backdrop-filter: blur(20px);
}
.app-side {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 0;
  border-right: 1px solid var(--border); background: rgba(255, 255, 255, .015);
}
.app-side-logo { margin-bottom: 10px; }
.app-side-ico {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--fg-30);
}
.app-side-ico.on { color: var(--violet-text); background: var(--violet-soft); box-shadow: inset 0 0 0 1px var(--violet-line); }
.app-main { padding: 14px 18px 18px; min-width: 0; }
.app-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: .82rem; }
.app-crumb { color: var(--fg-50); }
.app-crumb i { font-style: normal; opacity: .4; margin: 0 4px; }
.app-crumb b { color: var(--fg); font-weight: 600; }
.app-status { display: inline-flex; align-items: center; gap: 7px; color: var(--fg-50); }
.app-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 12px; }
.app-card { border: 1px solid var(--border); border-radius: 14px; padding: 14px; background: rgba(255, 255, 255, .02); min-width: 0; }
.app-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.app-avatar {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: .9rem;
  background: linear-gradient(135deg, #7cc4ff, #2f6fe0); color: #fff; flex: none;
}
.app-avatar.bot { background: linear-gradient(135deg, #8b95ff, #5865f2); }
.app-title { font-weight: 600; font-size: .9rem; letter-spacing: -.02em; }
.app-sub { font-size: .74rem; color: var(--fg-50); display: flex; align-items: center; gap: 6px; }
.app-game { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--border); }
.app-game img { width: 74px; height: 28px; object-fit: cover; border-radius: 6px; flex: none; }
.app-game-info { flex: 1; min-width: 0; }
.app-game-name { font-size: .8rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-game-h { font-size: .74rem; color: var(--violet-text); }
.bar { height: 5px; border-radius: 9px; background: rgba(255, 255, 255, .06); overflow: hidden; margin-top: 6px; }
.bar > span { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, #3d9bff, #9fd2ff); transition: width 1s linear; }

.console {
  margin: 0; font-family: var(--mono); font-size: .74rem; line-height: 1.7; color: var(--fg-70);
  background: #050810; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
  height: 152px; overflow: hidden; white-space: pre-wrap; word-break: break-word;
}
.console.mini { height: auto; font-size: .72rem; }
.c-dim { color: var(--fg-30); }
.c-ok { color: var(--ok); }
.c-info { color: var(--violet-text); }
.c-warn { color: var(--warn); }

/* ==========================================================================
   Seções
   ========================================================================== */
.stat-band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, rgba(160, 200, 255, .05), rgba(160, 200, 255, .015));
}
.stat-band > div { padding: 26px 24px; border-left: 1px solid var(--border); }
.stat-band > div:first-child { border-left: 0; }
.stat-band .stat-value { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.stat-band .stat-label { color: var(--fg-50); margin-top: 4px; }

.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.service-card {
  display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 24px; overflow: hidden;
  background: linear-gradient(180deg, rgba(160, 200, 255, .045), rgba(160, 200, 255, .01));
  transition: border-color .4s var(--ease), transform .5s var(--ease);
}
.service-card:hover { border-color: var(--violet-line); transform: translateY(-4px); }
.service-art { position: relative; height: 230px; overflow: hidden; border-bottom: 1px solid var(--border); }
.steam-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px; transform: rotate(-4deg) scale(1.12); }
.steam-art img { width: 100%; height: 82px; object-fit: cover; border-radius: 10px; opacity: .85; }
.steam-art::after { content: ''; position: absolute; inset: -20px; background: linear-gradient(180deg, transparent 30%, rgba(6, 9, 18, .9)); }
.bots-art { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 24px 28px;
  background: radial-gradient(400px 200px at 80% 0%, rgba(88, 101, 242, .22), transparent 70%); }
.lang-row { display: flex; gap: 10px; }
.lang {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--border);
}
.service-body { padding: 24px 26px 26px; }
.service-kicker { font-size: .78rem; color: var(--violet-text); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.service-body h3 { font-size: 1.45rem; margin: 8px 0 8px; letter-spacing: -.03em; }
.service-body p { font-size: .95rem; color: var(--fg-50); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { padding: 22px; border-radius: 18px; border: 1px solid var(--border); background: rgba(255, 255, 255, .015); }
.step-n { font-family: var(--mono); font-size: .78rem; color: var(--violet-text); }
.step h3 { margin: 10px 0 6px; }
.step p { font-size: .9rem; color: var(--fg-50); margin: 0; }

/* --- destaque alternado (páginas de serviço) --------------------------- */
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.feature-split.flip > :first-child { order: 2; }
.feature-split h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.check-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--fg-70); font-size: .95rem; }
.check-list svg { color: var(--violet-text); flex: none; margin-top: 4px; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feat {
  padding: 22px; border-radius: 18px; border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(160, 200, 255, .04), transparent);
}
.feat-ico {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px;
  color: var(--violet-text); background: var(--violet-soft); border: 1px solid var(--violet-line);
}
.feat h3 { margin: 0 0 6px; }
.feat p { font-size: .9rem; color: var(--fg-50); margin: 0; }

.page-hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 64px); text-align: center; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.page-hero h1 .sky-text, .sky-text {
  background: linear-gradient(180deg, #fff 10%, #8cc6ff 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-hero p { max-width: 620px; margin: 0 auto 26px; font-size: 1.12rem; }
.page-hero > .wrap { position: relative; z-index: 1; }

/* ==========================================================================
   Planos
   ========================================================================== */
.seg {
  display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; margin: 0 auto 28px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, .02);
}
.plans-tabs { display: flex; flex-direction: column; }
.plans-tabs > .seg { align-self: center; }
.seg-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 10px; border: 0;
  background: transparent; color: var(--fg-50); font-size: .88rem; font-weight: 500; cursor: pointer;
  transition: color .3s, background .3s;
}
.seg-btn:hover { color: var(--fg); }
.seg-btn.active { color: var(--fg); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-2); }
.plans-tabs .tab-panel { display: none; }
.plans-tabs .tab-panel.active { display: block; animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; align-items: stretch; }
.plan-card {
  position: relative; display: flex; flex-direction: column; padding: 28px 26px 26px; border-radius: 22px;
  border: 1px solid var(--border); background: linear-gradient(180deg, rgba(160, 200, 255, .045), rgba(160, 200, 255, .01));
}
.plan-card.featured {
  border-color: var(--violet-line);
  background:
    radial-gradient(420px 220px at 50% -60px, rgba(61, 155, 255, .22), transparent 70%),
    linear-gradient(180deg, rgba(160, 200, 255, .07), rgba(160, 200, 255, .015));
  box-shadow: 0 30px 80px -40px rgba(61, 155, 255, .7);
}
.plan-card.current { border-color: rgba(74, 222, 128, .35); }
.plan-flag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  padding: 3px 12px; border-radius: 99px; font-size: .72rem; font-weight: 600; white-space: nowrap;
  background: linear-gradient(180deg, #5aaeff, #2f8cf0); color: #fff;
}
.plan-name { font-size: 1.25rem; font-weight: 700; letter-spacing: -.03em; }
.plan-tagline { font-size: .88rem; color: var(--fg-50); margin: 4px 0 18px; min-height: 2.6em; }
.plan-price { font-size: 2.6rem; font-weight: 700; letter-spacing: -.05em; line-height: 1; margin-bottom: 20px; }
.plan-cur { font-size: 1rem; font-weight: 600; color: var(--fg-50); margin-right: 4px; vertical-align: top; letter-spacing: 0; }
.plan-per { font-size: .9rem; font-weight: 500; color: var(--fg-30); letter-spacing: 0; }
.plan-feats { list-style: none; padding: 18px 0 0; margin: 0 0 24px; display: grid; gap: 9px; border-top: 1px solid var(--border); flex: 1; }
.plan-feats li { display: flex; gap: 9px; align-items: center; font-size: .9rem; color: var(--fg-70); }
.plan-feats svg { color: var(--violet-text); flex: none; }

/* --- CTA final --------------------------------------------------------- */
.cta-sky {
  position: relative; overflow: hidden; text-align: center; padding: clamp(48px, 7vw, 88px) 24px;
  border-radius: 28px; border: 1px solid var(--violet-line);
  background: radial-gradient(800px 360px at 50% 120%, rgba(61, 155, 255, .45), transparent 70%),
              linear-gradient(180deg, #0c1630, #081022);
}
.cta-sky > :not(.sky) { position: relative; z-index: 1; }
.cta-sky .cloud-bank { height: 260px; opacity: .7; }
.cta-sky h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.cta-sky p { color: var(--fg-70); margin-bottom: 26px; }

/* --- rodapé com nuvens ------------------------------------------------- */
.footer { position: relative; overflow: hidden; }
.footer .wrap { position: relative; z-index: 1; }
.footer-sky { position: absolute; inset: 0; pointer-events: none; opacity: .6;
  mask-image: linear-gradient(180deg, transparent, #000 60%); }
.footer-sky .cloud-bank { height: 300px; opacity: .3; }

/* ==========================================================================
   Painel do cliente (dashboard)
   ========================================================================== */
.svc-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.svc-tile {
  position: relative; overflow: hidden; padding: 22px; border-radius: 20px; border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(160, 200, 255, .05), rgba(160, 200, 255, .01));
}
.svc-tile.on { border-color: var(--violet-line); }
.svc-tile-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.svc-ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none;
  color: var(--violet-text); background: var(--violet-soft); border: 1px solid var(--violet-line);
}
.svc-tile h3 { margin: 0; }
.svc-meta { font-size: .84rem; color: var(--fg-50); }
.svc-nums { display: flex; gap: 22px; margin: 6px 0 16px; }
.svc-nums b { display: block; font-size: 1.5rem; letter-spacing: -.04em; }
.svc-nums span { font-size: .78rem; color: var(--fg-50); }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 900px) {
  .app-grid, .service-grid, .feature-split, .svc-tiles { grid-template-columns: 1fr; }
  .feature-split.flip > :first-child { order: 0; }
  .steps, .feat-grid { grid-template-columns: 1fr 1fr; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .stat-band > div:nth-child(3) { border-left: 0; }
  .stat-band > div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .app-console { display: none; }
}
@media (max-width: 640px) {
  .hide-sm { display: none !important; }
  .app-window { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .steps, .feat-grid { grid-template-columns: 1fr; }
  .mega { letter-spacing: -.05em; }
  .seg-btn { padding: 8px 12px; font-size: .82rem; }
}

/* ==========================================================================
   Hospedagem: lista e detalhe do bot
   ========================================================================== */
.bot-list { display: grid; gap: 10px; }
.bot-row {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px;
  border: 1px solid var(--border); background: linear-gradient(180deg, rgba(160, 200, 255, .04), rgba(160, 200, 255, .01));
  transition: border-color .3s, transform .3s var(--ease);
}
.bot-row:hover { border-color: var(--violet-line); transform: translateY(-1px); }
.bot-ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none;
  font-family: var(--mono); font-weight: 700; font-size: .85rem;
}
.bot-ico.python { background: rgba(55, 118, 171, .2); color: #ffd43b; border: 1px solid rgba(55, 118, 171, .5); }
.bot-ico.node { background: rgba(95, 160, 78, .16); color: #8fd47c; border: 1px solid rgba(95, 160, 78, .45); }
.bot-row-main { flex: 1; min-width: 0; }
.bot-row-name { font-weight: 600; letter-spacing: -.02em; }
.bot-row-mem { color: var(--fg-50); font-size: .85rem; }

.status-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 99px;
  font-size: .8rem; font-weight: 500; border: 1px solid var(--border-2); color: var(--fg-70); white-space: nowrap;
}
.status-pill .dot { animation: none; background: var(--fg-30); box-shadow: none; }
.status-pill.s-running { color: #86efac; border-color: rgba(74, 222, 128, .3); background: rgba(74, 222, 128, .06); }
.status-pill.s-running .dot { background: var(--ok); box-shadow: 0 0 8px rgba(74, 222, 128, .8); animation: pulse 2.4s infinite; }
.status-pill.s-starting, .status-pill.s-deploying { color: var(--violet-text); border-color: var(--violet-line); background: var(--violet-soft); }
.status-pill.s-starting .dot, .status-pill.s-deploying .dot { background: var(--violet-text); animation: pulse 1s infinite; }
.status-pill.s-crashed { color: #fca5a5; border-color: rgba(248, 113, 113, .35); background: rgba(248, 113, 113, .06); }
.status-pill.s-crashed .dot { background: var(--bad); }

.bot-console { height: 360px; overflow: auto; font-size: .78rem; }
.modal { max-width: 460px; }

/* acertos nos componentes herdados */
.chip { white-space: nowrap; }
.chart-bar { background: linear-gradient(180deg, #6db8ff, rgba(61, 155, 255, .35)); }
.chart-col:hover .chart-bar { background: linear-gradient(180deg, #9fd2ff, rgba(61, 155, 255, .5)); }
.auth-wrap { position: relative; }
.side-link.active { background: var(--violet-soft); box-shadow: inset 0 0 0 1px var(--violet-line); }

/* fotos dos bots */
.bot-avatar { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; flex: none; background: var(--surface-2); }
.bot-avatar.lg { width: 58px; height: 58px; border-radius: 16px; }
.bot-avatar-btn { position: relative; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 16px; flex: none; }
.bot-avatar-btn span {
  position: absolute; inset: 0; display: grid; place-items: center; border-radius: 16px; font-size: .72rem; font-weight: 600;
  background: rgba(6, 9, 18, .62); color: #fff; opacity: 0; transition: opacity .2s;
}
.bot-avatar-btn:hover span, .bot-avatar-btn:focus-visible span { opacity: 1; }
.avatar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.avatar-opt { position: relative; cursor: pointer; display: grid; place-items: center; }
.avatar-opt input { position: absolute; opacity: 0; }
.avatar-opt img { width: 56px; height: 56px; border-radius: 14px; outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .2s, transform .2s; }
.avatar-opt:hover img { transform: translateY(-2px); }
.avatar-opt input:checked + img { outline-color: var(--violet); }
.avatar-opt input:focus-visible + img { outline-color: var(--violet-text); }
.cfg-gen .console { white-space: pre; overflow-x: auto; }
.tut-step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--border); }
.tut-step:first-child { border-top: 0; }
.tut-n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 700;
  color: var(--violet-text); background: var(--violet-soft); border: 1px solid var(--violet-line); }
.tut-step h3 { margin: 6px 0 8px; }
.tut-step p { font-size: .95rem; }
.cfg-table td:first-child { font-family: var(--mono); color: var(--violet-text); white-space: nowrap; }
