/* max-bot-20261124.css — карточка и окно «MAX-бот» в Настройках */
.bf-max-card {
  display: flex; align-items: center; gap: 12px;
  padding: 20px; margin: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: box-shadow .15s;
}
.bf-max-card:hover { box-shadow: 0 4px 12px rgba(15, 23, 42, .08); }
html.dark .bf-max-card { background: rgba(30, 41, 59, .8); }
.bf-max-card__icon {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  background: rgba(99, 102, 241, .14);
}
html.dark .bf-max-card__icon { background: rgba(99, 102, 241, .28); }
.bf-max-card__texts { flex: 1 1 auto; min-width: 0; }
.bf-max-card__title { margin: 0; font-weight: 600; color: #0f172a; }
html.dark .bf-max-card__title { color: #fff; }
.bf-max-card__desc { margin: 0; font-size: 14px; color: #64748b; }
.bf-max-card__chev { flex: 0 0 auto; font-size: 22px; line-height: 1; color: #94a3b8; }

.bf-max-modal {
  position: fixed; inset: 0; z-index: 2147483000;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(15, 23, 42, .55);
}
.bf-max-modal__dialog {
  width: 100%; max-width: 420px; max-height: 90vh; overflow: auto;
  border-radius: 18px; padding: 18px; background: #fff; color: #0f172a;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .3);
}
html.dark .bf-max-modal__dialog { background: #0f172a; color: #e2e8f0; border: 1px solid rgba(148, 163, 184, .2); }
.bf-max-modal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.bf-max-modal__title { margin: 0; font-size: 18px; font-weight: 700; }
.bf-max-modal__close { border: 0; background: transparent; font-size: 26px; line-height: 1; color: #94a3b8; cursor: pointer; padding: 4px 8px; }

.bf-max__text { margin: 8px 0; font-size: 14px; line-height: 1.45; color: #475569; }
html.dark .bf-max__text { color: #cbd5e1; }
.bf-max__hint { margin: 6px 0 10px; font-size: 12px; color: #94a3b8; }
.bf-max__ok { padding: 10px 12px; border-radius: 12px; background: #ecfdf5; color: #047857; font-size: 14px; font-weight: 600; }
html.dark .bf-max__ok { background: rgba(16, 185, 129, .15); color: #6ee7b7; }
.bf-max__code {
  margin: 6px 0; padding: 12px; border-radius: 12px; text-align: center;
  font: 700 26px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em;
  background: rgba(99, 102, 241, .08); border: 1px dashed rgba(99, 102, 241, .5);
  user-select: all; -webkit-user-select: all;
}
.bf-max__row { display: flex; gap: 8px; }
.bf-max__btn {
  display: block; width: 100%; box-sizing: border-box; margin: 10px 0 0; text-align: center; text-decoration: none;
  border: 0; border-radius: 12px; padding: 12px 16px; font: inherit; font-weight: 650; font-size: 15px;
  color: #fff; background: linear-gradient(135deg, #7c3aed, #4f46e5); cursor: pointer;
}
.bf-max__btn--ghost { color: #4f46e5; background: rgba(99, 102, 241, .1); }
html.dark .bf-max__btn--ghost { color: #c4b5fd; background: rgba(99, 102, 241, .2); }
.bf-max__btn:disabled { opacity: .6; cursor: default; }
.bf-max__link { display: block; margin: 14px auto 0; border: 0; background: transparent; color: #e11d48; font: inherit; font-size: 14px; cursor: pointer; }
.bf-max__status { margin: 10px 0 0; font-size: 13px; color: #64748b; }
.bf-max__status--ok { color: #15803d; font-weight: 600; }
html.dark .bf-max__status--ok { color: #4ade80; }
.bf-max__status--error { color: #b91c1c; }
html.dark .bf-max__status--error { color: #fca5a5; }
