/* ═════════ GAMA Business Leak Calculator ═════════ */
.blc-scrim {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(5, 8, 16, 0.62);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.blc-scrim.on { opacity: 1; }
.blc {
  position: fixed;
  z-index: 9991;
  left: 50%;
  top: 50%;
  width: min(640px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translate(-50%, -48%) scale(0.98);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  background: #f8f9fb;
  color: #11131a;
  border: 1px solid #e4e6eb;
  border-radius: 16px;
  box-shadow: 0 28px 70px rgba(5, 8, 16, 0.24);
  font-family: Inter, system-ui, sans-serif;
  padding: 34px 36px 30px;
  box-sizing: border-box;
}
.blc.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.blc * { box-sizing: border-box; }
.blc-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #dfe2e8;
  background: #fff;
  color: #4e5360;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.blc-x:hover { background: #f0f1f4; }
.blc-x svg { width: 18px; height: 18px; }
.blc-eye {
  font: 600 11px/1 "JetBrains Mono", monospace;
  letter-spacing: 0.14em;
  color: #80358a;
  margin: 0 0 12px;
}
.blc h2 {
  font-size: clamp(24px, 4.6vw, 30px);
  line-height: 1.17;
  font-weight: 800;
  margin: 0 52px 10px 0;
  letter-spacing: 0;
}
.blc-lead {
  font-size: 14.5px;
  line-height: 1.55;
  color: #606572;
  margin: 0 0 22px;
}
.blc-paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 4px;
  margin-bottom: 0;
  border: 1px solid #dfe2e8;
  border-radius: 12px;
  background: #eef0f3;
}
.blc-path {
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 9px;
  border: 0;
  background: transparent;
  color: #555b68;
  cursor: pointer;
  font: inherit;
}
.blc-path span { font-size: 13.5px; font-weight: 700; }
.blc-path[aria-pressed="true"] {
  color: #6c2486;
  background: #fff;
  box-shadow: 0 2px 8px rgba(5, 8, 16, 0.08);
}
.blc-path:focus-visible,
.blc button:focus-visible,
.blc input:focus-visible,
.blc a:focus-visible {
  outline: 2px solid #80358a;
  outline-offset: 2px;
}
.blc-ctx {
  font: 500 11px/1 "JetBrains Mono", monospace;
  color: #777d89;
  letter-spacing: 0.06em;
  margin: 10px 0 0;
}
.blc-q { font-size: 14px; font-weight: 700; margin: 0; }
.blc-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 20px 0 12px;
}
.blc-cur {
  display: inline-flex;
  border: 1px solid #d8dbe2;
  border-radius: 999px;
  padding: 3px;
}
.blc-cur button {
  min-height: 36px;
  min-width: 60px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #666b77;
  font: 600 12px "JetBrains Mono", monospace;
  cursor: pointer;
}
.blc-cur button[aria-pressed="true"] { background: #80358a; color: #fff; }
.blc-fields { display: grid; gap: 12px; }
.blc label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #373b45;
  margin-bottom: 6px;
}
.blc input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #d8dbe2;
  background: #fff;
  color: #11131a;
  font: inherit;
  font-size: 15px;
}
.blc input::placeholder { color: #9297a2; }
.blc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  background: #80358a;
  color: #fff;
  font: 700 14.5px Inter, sans-serif;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
  margin-top: 16px;
}
.blc-btn:hover { background: #6c2486; }
.blc-btn[disabled] { opacity: 0.6; cursor: progress; }
.blc-btn.ghost {
  background: transparent;
  color: #6c2486;
  border: 1px solid #d8dbe2;
  margin-top: 10px;
}
.blc-err { color: #a5202d; font-size: 13px; margin: 10px 0 0; }
.blc-res { padding: 22px 0 20px; border-bottom: 1px solid #e1e3e8; }
.blc-tag {
  font: 600 10.5px/1 "JetBrains Mono", monospace;
  letter-spacing: 0.14em;
  color: #80358a;
}
.blc-res h3 { font-size: 15px; font-weight: 700; color: #30343d; margin: 8px 0 0; }
.blc-amt {
  font-size: clamp(36px, 8vw, 48px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
  margin: 6px 0 0;
  word-break: break-word;
}
.blc-formula {
  margin: 14px 0 0;
  padding-left: 12px;
  border-left: 2px solid #c9a5d0;
  font: 500 12px/1.55 "JetBrains Mono", monospace;
  color: #666b77;
  word-break: break-word;
}
.blc-note { font-size: 12px; color: #727783; margin: 8px 0 0; line-height: 1.5; }
.blc-cap { margin-top: 20px; }
.blc-cap p.h { font-size: 16px; font-weight: 700; margin: 0 0 14px; }
.blc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.blc-micro { font-size: 11.5px; color: #727783; line-height: 1.5; margin: 10px 0 0; }
.blc-micro a { color: #6c2486; }
.blc.is-result .blc-lead,
.blc.is-result .blc-paths,
.blc.is-result .blc-ctx,
.blc.is-done .blc-lead:not(.blc-done .blc-lead),
.blc.is-done .blc-ctx { display: none; }
.blc-done { text-align: center; padding: 16px 0 6px; }
.blc-done .ok {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  background: #e6f7ef;
  color: #0b7a57;
}
.blc-done .ok svg { width: 26px; height: 26px; }
.blc-done .blc-q { font-size: 22px; }
.blc-done .blc-lead { margin: 10px auto 20px; max-width: 430px; }
@media (max-width: 560px) {
  .blc {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    padding: 28px 18px 20px;
    border-radius: 14px;
  }
  .blc h2 { margin-right: 44px; }
  .blc-path { padding-inline: 5px; }
  .blc-path span { font-size: 12.5px; }
  .blc-row { grid-template-columns: 1fr; }
  .blc-amt { font-size: clamp(32px, 10vw, 42px); }
}
@media (prefers-reduced-motion: reduce) {
  .blc, .blc-scrim { transition: none; }
}