body.bma-modal-open { overflow: hidden; }
.bma-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(15, 23, 42, .46);
}
.bma-modal-backdrop[hidden],
.bma-modal[hidden] { display: none !important; }
.bma-modal {
  position: fixed;
  inset: 0;
  z-index: 21;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px 12px calc(16px + env(safe-area-inset-bottom));
  pointer-events: none;
}
.bma-modal-card {
  --bma: #0d9488;
  --line: #e2e8f0;
  pointer-events: auto;
  position: relative;
  width: min(460px, 100%);
  max-height: min(86vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 22px 22px 18px 18px;
  padding: 22px 18px 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
  font-family: "Hind Siliguri", "Segoe UI", sans-serif;
}
.bma-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #f1f5f9;
  color: #334155;
  font-size: 22px;
  line-height: 1;
}
.bma-modal-kicker {
  margin: 0 0 4px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}
.bma-modal-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -.02em;
}
.bma-modal-lead,
.bma-modal-card p {
  margin: 0 0 12px;
  color: #475569;
  font-size: 14px;
  line-height: 1.55;
}
.bma-modal-card h3 {
  margin: 16px 0 8px;
  font-size: 15px;
  color: #0f766e;
}
.bma-modal-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.bma-modal-list li {
  padding: 10px 12px;
  border: 1px solid #ccfbf1;
  background: #f0fdfa;
  border-radius: 12px;
  color: #475569;
  font-size: 13.5px;
  line-height: 1.5;
}
.bma-modal-list strong { display: block; color: #0f172a; margin-bottom: 2px; }
.bma-modal-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 4px 0 6px;
}
.bma-modal-tiers div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  background: #f8fafc;
}
.bma-modal-tiers .is-top {
  grid-column: 1 / -1;
  background: #ecfdf5;
  border-color: #99f6e4;
}
.bma-modal-tiers b { display: block; font-size: 20px; color: #0f766e; }
.bma-modal-tiers span { display: block; margin-top: 2px; font-size: 12px; color: #64748b; }
.bma-modal-example {
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid #fde68a;
  background: #fffbeb;
  border-radius: 14px;
}
.bma-modal-example-note {
  margin: 0 0 10px !important;
  font-size: 13px !important;
}
.bma-modal-example-totals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.bma-modal-example-totals > div {
  padding: 10px 8px;
  background: #fff;
  border: 1px solid #fef3c7;
  border-radius: 10px;
  text-align: center;
}
.bma-modal-example-totals span {
  display: block;
  font-size: 12px;
  color: #64748b;
}
.bma-modal-example-totals strong {
  display: block;
  margin-top: 4px;
  color: #0f766e;
  font-size: 18px;
}
.bma-modal-card .bma-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--bma);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 12px;
  font-weight: 700;
  margin-top: 4px;
}
@media (min-width: 768px) {
  .bma-modal { align-items: center; }
  .bma-modal-card { border-radius: 20px; }
}
