.bf-dialog {
  box-sizing: border-box;
  width: min(540px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 28px 32px;
  overflow: auto;
  border: 1px solid #aa80bc;
  border-radius: 28px;
  background: radial-gradient(ellipse at 50% 0%, #4b285b, #261a3f 58%);
  color: #efe9fb;
  box-shadow: 0 28px 100px #120a24aa;
  text-align: center;
  font-family: var(--f, system-ui, sans-serif);
}
.bf-dialog::backdrop { background: #100b1dcc; backdrop-filter: blur(6px); }
.bf-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #ffffff30;
  border-radius: 50%;
  background: #ffffff0a;
  color: #efe9fb;
  cursor: pointer;
}
.bf-close span { font: 28px/1 system-ui, sans-serif; }
.bf-close:hover { background: #ffffff20; }
.bf-mascot { display: block; width: 68px; height: 76px; object-fit: contain; margin: 0 auto 12px; }
.bf-dialog .bf-eyebrow { color: #f3a9d6; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.bf-dialog h2 { margin: 12px 0; font-size: clamp(32px, 6vw, 44px); line-height: 1.1; font-weight: 900; }
.bf-dialog h2 span { color: #f3a9d6; }
.bf-dialog #bf-subtitle { color: #ddd0ef; font-size: 15px; line-height: 1.5; }
.bf-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 18px; }
.bf-plan { padding: 16px 8px; background: #ffffff08; border: 1px solid #ffffff25; border-radius: 16px; }
.bf-dialog .bf-plan h3 { margin: 0; font-size: 15px; color: #ddd0ef; }
.bf-dialog .bf-price { margin: 4px 0; line-height: 1.3; }
.bf-price s { color: #c0b1d0; font-size: 18px; }
.bf-price strong { font-size: 38px; font-weight: 900; color: #fff; }
.bf-plan > p:last-child { font-size: 11px; color: #ddd0ef; line-height: 1.5; }
.bf-dialog .bf-code-label { margin-bottom: 8px; font-size: 13px; color: #ddd0ef; }
.bf-code-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 18px; border: 1px dashed #a98abf; border-radius: 12px; background: #170e26; }
.bf-code-row code { font-size: 18px; font-weight: 700; color: #f3a9d6; letter-spacing: .06em; user-select: all; }
.bf-copy { min-height: 40px; padding: 8px 12px; border: 0; border-radius: 8px; background: #433054; color: #fff; font: 700 13px var(--f, system-ui, sans-serif); cursor: pointer; }
.bf-copy:hover { background: #5a3b6d; }
.bf-dialog .bf-copy-status { min-height: 24px; padding-top: 4px; font-size: 12px; line-height: 1.6; color: #7fd4ec; }
.bf-cta { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 12px; border-radius: 999px; background: #b8186f; color: #fff; font-size: 16px; font-weight: 800; text-decoration: none; }
.bf-cta:hover { background: #cf217f; }
.bf-dialog .bf-terms { margin-top: 14px; color: #cbbbd9; font-size: 11px; line-height: 1.65; }
.bf-reopen { position: fixed; right: 16px; bottom: 16px; z-index: 60; max-width: calc(100vw - 32px); min-height: 44px; padding: 10px 18px; border: 1px solid #f3a9d680; border-radius: 999px; background: #3b224c; color: #f3a9d6; box-shadow: 0 4px 20px #0004; font: 800 13px var(--f, system-ui, sans-serif); cursor: pointer; }
.bf-reopen:hover { background: #51285e; }
body:has(.bf-reopen) #cohost { bottom: 72px; }
body:has(.bf-dialog[open]) .bf-reopen { visibility: hidden; }
body:has(.bf-dialog[open]) { overflow: hidden; }
@media (max-width: 420px) {
  .bf-dialog { padding: 24px 18px; border-radius: 22px; }
  .bf-code-row { padding-left: 10px; gap: 6px; }
  .bf-code-row code { font-size: 16px; letter-spacing: 0; }
  .bf-copy { padding: 8px; }
  .bf-plan > p:last-child { font-size: 10px; }
}
