:root {
  --brand-on-green: #18a06a;
  --color-primary: #ff9f1c;
  --color-secondary: #177eb3;
  --color-tertiary: #182f4d;
  --c-bg: #0e2036;
  --text: #eaf1f8;
  --muted: rgba(234, 241, 248, 0.78);
  --title: #fff;
  --focus: #8ec5ff;
  --pp-footer-h: 0px;
}

.brand-on {
  color: var(--brand-on-green);
  font-weight: 800;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Nunito Sans, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--c-bg);
  overflow-x: hidden;
  padding-bottom: 100px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 10px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  background: #fff;
  color: #000;
  border-radius: 8px;
  z-index: 10001;
}

.hidden {
  display: none !important;
}

.global-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  --bg-img: url("https://www.pedagiopay.com/assets/faa756af-79a6-46cf-899d-83ba45475e56-DINip8dj.png");
  --bg-color: #0b2239;
}

.global-bg-layer {
  position: absolute;
  inset: -8% -4%;
  background: var(--bg-color) var(--bg-img) center / cover no-repeat;
  filter: saturate(105%);
}

.global-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.25));
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  isolation: isolate;
  padding: clamp(16px, 4vw, 32px);
  background: transparent;
}

.portal.portal--narrow {
  position: relative;
  z-index: 1;
  width: min(800px, 94vw);
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 28px);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
  backdrop-filter: saturate(120%) blur(10px);
  -webkit-backdrop-filter: saturate(120%) blur(10px);
}

#paySection,
#pixSection {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.dados__header {
  margin-bottom: 18px;
}

.dados__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-back-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #ff9f1c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-back-icon:hover {
  opacity: 0.85;
}

.btn-back-icon[hidden] {
  display: none !important;
}

.dados__logo {
  height: 44px;
  width: auto;
  max-width: min(55vw, 280px);
  object-fit: contain;
  opacity: 0.95;
}

.dados__divider {
  width: 1px;
  height: 44px;
  align-self: center;
  background: rgba(255, 255, 255, 0.16);
  margin: 0 6px;
}

.dados__titles {
  display: flex;
  flex-direction: column;
}

.dados__eyebrow {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 2px;
}

.dados__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  color: var(--title);
}

.psc-form .field {
  margin-bottom: 12px;
}

.psc-form .field label {
  display: block;
  font-weight: 800;
  color: #f7a600;
  font-size: 14px;
  margin-bottom: 6px;
}

.psc-form .field input,
#qPlaca {
  width: 100%;
  padding: 14px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  text-transform: uppercase;
  font-size: 15px;
  outline: none;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.7);
}

.checkbox-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: #cfe0ef;
  padding: 6px 0 4px;
  cursor: pointer;
}

.checkbox-row input {
  margin-top: 2px;
  accent-color: #f7a600;
}

.checkbox-row a {
  color: #177eb3;
}

.checkbox-row a:hover {
  color: #f7a600;
}

.link-ghost {
  font-size: 14px;
  color: #f7a600;
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.link-ghost:hover {
  opacity: 0.85;
}

.btn-row {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.btn-row--form .link-ghost {
  margin-top: 0;
}

.btn-row--pix {
  flex-direction: column;
}

@media (min-width: 641px) {
  .btn-row--pix {
    flex-direction: row;
  }
}

.btn-primary,
.btn-secondary {
  border-radius: 999px;
  border: none;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.08s ease, box-shadow 0.12s ease, filter 0.12s ease;
  white-space: nowrap;
}

.btn-primary {
  min-height: 44px;
  background: linear-gradient(180deg, #ffd27a, #ff9f1c);
  color: #111827 !important;
  font-weight: 900;
  border: 1px solid rgba(255, 159, 28, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

.btn-primary.full {
  width: 100%;
  max-width: 280px;
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: transparent;
  color: #ffb347;
  border: 1px solid rgba(247, 166, 0, 0.75);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.btn-secondary:hover {
  background: rgba(247, 166, 0, 0.08);
}

.container {
  width: 100%;
  margin-top: 14px;
  padding: 0;
}

.section-bar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin: 10px 6px;
}

.section-title {
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--title);
  margin: 0;
  line-height: 1.1;
}

.section-sub.muted {
  font-size: 14px;
  color: #cbd5e1;
  margin: 0 0 8px;
}

.section-stamp {
  white-space: nowrap;
  opacity: 0.85;
  font-size: 0.95rem;
}

.psc-select-all {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px auto;
  max-width: 100%;
  justify-content: flex-end;
  cursor: pointer;
  font-size: 14px;
}

.psc-select-all input {
  accent-color: #f7a600;
  width: 18px;
  height: 18px;
}

.debts-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.debt-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
}

.debt-row input[type="checkbox"] {
  accent-color: #f7a600;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.debt-row__body {
  flex: 1;
  min-width: 0;
}

.debt-row__title {
  font-weight: 800;
  color: #fff;
  font-size: 14px;
}

.debt-row__meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.debt-row__value {
  font-weight: 900;
  color: #f7a600;
  font-size: 15px;
  flex-shrink: 0;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 10px;
}

.pager__btn {
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(9, 20, 36, 0.55);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  transition: opacity 0.12s ease, border-color 0.12s ease;
}

.pager__btn--wide {
  min-width: 110px;
}

.pager__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pager__nums {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.pager__nums button {
  min-width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
}

.pager__nums button.is-active {
  border-color: #f7a600;
  background: rgba(247, 166, 0, 0.15);
}

.pager__info {
  width: 100%;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.total-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  margin-bottom: 24px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.14);
}

.total-box > span {
  font-size: 16px;
  color: var(--text);
}

.total-box strong {
  font-weight: 900;
  color: #f7a600;
}

.btn-continue {
  min-height: 42px;
  padding: 0 20px;
  border-radius: 99px;
  border: 1px solid rgba(255, 159, 28, 0.35);
  background: linear-gradient(180deg, #ffd27a, #ff9f1c);
  color: #111827;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: filter 0.12s ease, transform 0.12s ease;
}

.btn-continue:hover:not(:disabled) {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.btn-continue:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-continue--inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pay-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pay-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.pay-item:hover,
.pay-item:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.pay-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  flex: 0 0 auto;
}

.pay-icon img {
  width: 22px;
  height: 22px;
  display: block;
}

.pay-texts {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pay-texts strong {
  font-size: 16px;
  font-weight: 900;
  color: var(--text);
}

.pay-texts small {
  font-size: 14px;
  color: var(--muted);
}

.pay-arrow {
  margin-left: auto;
  opacity: 0.85;
  display: inline-flex;
}

.summary-card {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
}

.summary-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 900;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  font-size: 14px;
}

.summary-grid span {
  color: #cbd5e1;
}

.summary-grid strong {
  color: #e5edf7;
  font-weight: 800;
}

.summary-total-row {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-total-row strong {
  color: #f7a600;
  font-size: 16px;
}

.pix-countdown {
  margin: 12px 0 10px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.pix-countdown strong {
  color: #f7a600;
  font-weight: 900;
}

.qr-box {
  width: min(280px, 100%);
  aspect-ratio: 1;
  margin: 12px auto;
  border-radius: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.qr-box img {
  max-width: 100%;
  height: auto;
  display: block;
}

.pix-hint {
  margin: 0 0 10px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.code-box {
  width: 100%;
  min-height: 92px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  font-size: 13px;
  font-family: ui-monospace, monospace;
  resize: none;
  outline: none;
}

.code-box:focus {
  border-color: rgba(142, 197, 255, 0.55);
}

#btnCopyPix {
  flex: 1;
  min-width: 160px;
}

.loading-wrap {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.loader-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #f7a600;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.empty {
  text-align: center;
  padding: clamp(16px, 3vw, 22px);
  margin-top: 12px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 10px 40px rgba(0, 0, 0, 0.15);
}

.empty__icon {
  max-width: 72px;
  width: 20%;
  height: auto;
  margin-bottom: 12px;
}

.empty__title {
  font-weight: 700;
  font-size: 17px;
  margin: 0 0 8px;
  color: #fff;
}

.empty__desc {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 12px;
}

.empty__stamp {
  text-align: right;
  font-size: 12px;
  opacity: 0.6;
  margin: 0;
}

body.is-anon .total-card {
  display: none !important;
}

.dlg {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.dlg.is-open {
  display: flex;
}

.dlg__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 34, 0.85);
  cursor: pointer;
}

.dlg__card {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  padding: 24px;
  border-radius: 22px;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.dlg__title {
  margin: 0 0 12px;
  font-size: 20px;
  color: #fff;
}

.dlg__card p {
  margin: 0 0 20px;
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.5;
}

.dlg__primary {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffd27a, #ff9f1c);
  color: #111;
  font-weight: 900;
  cursor: pointer;
  font-family: inherit;
}

.site-footer {
  margin-top: 60px;
  background: var(--color-tertiary, #0f3558);
  color: #fff;
  padding: 24px 16px;
  font-size: 14px;
}

.footer__container {
  width: min(1100px, 92vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  align-items: center;
}

.footer__logo {
  display: block;
  width: min(90vw, 260px);
  height: 78px;
  flex-shrink: 0;
  background: url("../logoonpay.png") no-repeat center / contain;
}

.footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.btn-to-top {
  background: transparent;
  border: 1px solid #fff;
  border-radius: 6px;
  padding: 6px 12px;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
}

.btn-to-top:hover {
  background: #f7a600;
}

@media (max-width: 768px) {
  .dados__logo {
    height: 36px;
    max-width: min(50vw, 240px);
  }

  .dados__divider {
    height: 36px;
  }

  .footer__logo {
    width: min(85vw, 220px);
    height: 66px;
  }

  .dados__title {
    font-size: 20px;
  }

  .btn-row--form {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary.full {
    max-width: none;
    width: 100%;
  }

  .psc-select-all {
    margin-left: 0;
    justify-content: flex-start;
  }

  .total-box {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-continue--inline {
    width: 100%;
  }

  .empty__icon {
    width: 28%;
  }
}

@media (max-width: 520px) {
  .footer__logo {
    width: min(88vw, 200px);
    height: 60px;
  }

  .dados__brand {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 4px;
  }

  .brand-top {
    width: 100%;
  }

  .dados__divider {
    width: 100%;
    height: 1px;
  }

  .pager {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
}
