* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f7fb;
  color: #0f172a;
}
.pp-shell {
  min-height: 100vh;
  padding: 24px 14px;
}
.pp-card {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #dde7f3;
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  padding: 22px;
}
.pp-card--result { max-width: 620px; }
.pp-brand {
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid #e6eef8;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.pp-brand__title {
  font-size: 22px;
  font-weight: 800;
}
.pp-brand__sub {
  margin-top: 4px;
  color: #5f7493;
  font-size: 13px;
  font-weight: 700;
}
.pp-section { margin-top: 18px; }
.pp-section__title,
.pp-section__toggle {
  width: 100%;
  text-align: left;
  margin: 0 0 12px;
  padding: 0;
  background: none;
  border: 0;
  color: #183153;
  font-size: 18px;
  font-weight: 800;
}
.pp-grid {
  display: grid;
  gap: 12px;
}
.pp-grid--1 { grid-template-columns: 1fr; }
.pp-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pp-field span {
  font-size: 13px;
  font-weight: 700;
  color: #5f7493;
}
.pp-field input,
.pp-field textarea,
.pp-field select {
  width: 100%;
  border: 1px solid #cfdbec;
  background: #fff;
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 15px;
  color: #0f172a;
  outline: none;
}
.pp-field textarea { resize: vertical; }
.pp-field input:focus,
.pp-field textarea:focus,
.pp-field select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.pp-field--button {
  justify-content: flex-end;
}
.pp-btn {
  border: 1px solid #cfdcf0;
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}
.pp-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pp-btn--ghost {
  background: #fff;
  color: #16345e;
}
.pp-btn--primary {
  background: #f97316;
  border-color: #f97316;
  color: #fff;
}
.pp-btn--block {
  width: 100%;
  margin-top: 16px;
}
.pp-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  font-size: 13px;
  color: #334155;
}
.pp-installments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.pp-installment {
  min-width: 110px;
  border: 1px solid #d7e2f1;
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
}
.pp-installment.is-active {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}
.pp-installment__top {
  font-size: 13px;
  font-weight: 800;
}
.pp-installment__sub {
  margin-top: 4px;
  color: #475569;
  font-size: 13px;
}
.pp-mini {
  margin-top: 10px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}
.pp-alert {
  margin-bottom: 14px;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
}
.pp-alert.is-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}
.pp-alert.is-success {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #15803d;
}
.pp-captcha__question {
  margin-bottom: 10px;
  color: #16345e;
  font-size: 16px;
  font-weight: 800;
}
.pp-modal[hidden] { display: none; }
.pp-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}
.pp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
}
.pp-modal__card {
  position: relative;
  max-width: 760px;
  margin: 24px auto;
  background: #fff;
  border-radius: 18px;
  border: 1px solid #dbe5f2;
  overflow: hidden;
}
.pp-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #e6eef8;
}
.pp-modal__title {
  font-size: 18px;
  font-weight: 800;
}
.pp-modal__body {
  max-height: 70vh;
  overflow: auto;
  padding: 16px 18px 18px;
}
.pp-x {
  width: 38px;
  height: 38px;
  border: 1px solid #dbe5f2;
  border-radius: 12px;
  background: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.pp-bank {
  border: 1px solid #e4ecf6;
  border-radius: 16px;
  overflow: hidden;
}
.pp-bank + .pp-bank {
  margin-top: 14px;
}
.pp-bank__name {
  padding: 14px 16px;
  font-size: 18px;
  font-weight: 800;
  border-bottom: 1px solid #eef4fa;
}
.pp-bank__table {
  width: 100%;
  border-collapse: collapse;
}
.pp-bank__table th,
.pp-bank__table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eef4fa;
  text-align: left;
  font-size: 14px;
}
.mono { font-variant-numeric: tabular-nums; }
.pp-result__icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 42px;
  font-weight: 900;
  background: #e2e8f0;
  color: #0f172a;
}
.pp-result__icon.ok { background: #16a34a; color: #fff; }
.pp-result__icon.fail { background: #dc2626; color: #fff; }
.pp-result__title {
  text-align: center;
  font-size: 34px;
  font-weight: 900;
}
.pp-result__text {
  margin-top: 8px;
  text-align: center;
  color: #5f7493;
}
.pp-result__table {
  margin-top: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
}
.pp-result__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
}
.pp-result__row:last-child { border-bottom: 0; }

@media (max-width: 640px) {
  .pp-card { padding: 16px; border-radius: 18px; }
  .pp-grid--2,
  .pp-grid--3 {
    grid-template-columns: 1fr;
  }
  .pp-result__title { font-size: 28px; }
  .pp-result__row {
    flex-direction: column;
  }
}
