:root {
  --brand: #24ca68;

  --brand-700: #1db75e;

  --overlay: rgba(0, 0, 0, 0.55);

  --card: #fff;

  --radius: 22px;

  --shadow: 0 28px 80px rgba(2, 8, 23, 0.28);
}

.dlg,
.dlg * {
  box-sizing: border-box;

  font-style: normal;
}

.dlg[hidden] {
  display: none;
}

.dlg {
  position: fixed;

  inset: 0;

  z-index: 9999;

  display: grid;

  place-items: center;

  font-family: Inter, system-ui, sans-serif;
}

.dlg__backdrop {
  position: absolute;

  inset: 0;

  background: var(--overlay);

  backdrop-filter: blur(6px);
}

.dlg__card {
  position: relative;

  z-index: 1;

  width: min(94vw, 500px);

  background: var(--card);

  border-radius: var(--radius);

  box-shadow: var(--shadow);

  padding: 26px 24px;

  text-align: center;
}

.dlg__close {
  position: absolute;

  top: 14px;

  right: 14px;

  border: 0;

  background: #f1f5f9;

  width: 36px;

  height: 36px;

  border-radius: 50%;

  font-size: 22px;

  cursor: pointer;
}

.dlg__close:hover {
  background: #e2e8f0;
}

.dlg__title {
  margin: 0 0 10px;

  font-size: 22px;

  font-weight: 900;
}

.dlg__text {
  margin: 0 0 16px;

  color: #1f2937;

  line-height: 1.6;
}

.dlg__actions {
  display: flex;

  gap: 10px;

  margin-top: 16px;
}

.btn {
  flex: 1;

  padding: 14px 16px;

  border-radius: 12px;

  font-weight: 800;

  border: 1px solid transparent;

  text-align: center;
}

.btn--brand {
  background: #24ca68 !important;

  color: #fff !important;

  border-color: #24ca68 !important;
}

.btn--brand:hover {
  background: #1db75e !important;
}

.btn--ghost {
  background: #fff;

  color: #333;

  border: 1px solid #ddd;
}

.btn--ghost:hover {
  background: #f8f8f8;
}

.dlg__foot {
  margin-top: 10px;

  font-size: 12px;

  color: #666;
}

.spinner {
  width: 32px;

  height: 32px;

  border: 3px solid #ddd;

  border-top: 3px solid var(--brand);

  border-radius: 50%;

  margin: 0 auto 12px;

  animation: spin 0.8s linear infinite;
}

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

.ok-badge {
  width: 44px;

  height: 44px;

  margin: 0 auto 10px;

  border-radius: 50%;

  background: #ecfdf5;

  display: grid;

  place-items: center;

  color: var(--brand);

  font-size: 22px;
}

.dlg--xl .dlg__card {
  width: min(96vw, 560px);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(36, 202, 104, 0.5);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 10px 6px rgba(36, 202, 104, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(36, 202, 104, 0);
  }
}

.btn-pulse {
  animation: pulse 1.5s infinite;
}

body.modal-open {
  overflow: hidden;

  touch-action: none;
}

.dlg,
.dlg * {
  box-sizing: border-box;

  font-style: normal;
}

.dlg[hidden] {
  display: none;
}

.dlg {
  position: fixed;

  inset: 0;

  z-index: 9999;

  display: grid;

  place-items: center;

  padding: 16px;

  font-family: Inter, system-ui, sans-serif;
}

.dlg__backdrop {
  position: absolute;

  inset: 0;

  background: var(--overlay);

  backdrop-filter: blur(6px);
}

.dlg__card {
  position: relative;

  z-index: 1;

  width: min(94vw, 500px);

  background: var(--card);

  border-radius: var(--radius);

  box-shadow: var(--shadow);

  padding: 26px 24px;

  text-align: center;

  opacity: 0;

  animation: fadeIn 0.3s ease-out forwards;

  max-height: 92vh;

  overflow: auto;

  -webkit-overflow-scrolling: touch;

  margin: auto;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.dlg__close {
  position: absolute;

  top: 14px;

  right: 14px;

  border: 0;

  background: #f1f5f9;

  width: 36px;

  height: 36px;

  border-radius: 50%;

  font-size: 22px;

  cursor: pointer;

  line-height: 1;
}

.dlg__close:hover {
  background: #e2e8f0;
}

.dlg__title {
  margin: 0 0 10px;

  font-size: 22px;

  font-weight: 900;
}

.dlg__text {
  margin: 0 0 16px;

  color: #1f2937;

  line-height: 1.6;
}

.dlg__actions {
  display: flex;

  gap: 10px;

  margin-top: 16px;
}

.dlg__actions--single {
  justify-content: center;
}

.btn {
  padding: 14px 16px;

  border-radius: 12px;

  font-weight: 800;

  border: 1px solid transparent;

  text-align: center;
}

.btn--brand {
  background: #24ca68 !important;

  color: #fff !important;

  border-color: #24ca68 !important;
}

.btn--brand:hover {
  background: #1db75e !important;
}

.btn--xl {
  font-size: 18px;

  line-height: 1.1;

  padding: 18px 22px;

  min-width: 260px;

  box-shadow: 0 12px 30px rgba(36, 202, 104, 0.25);
}

@media (max-width: 480px) {
  .btn--xl {
    width: 100%;

    min-width: 0;
  }
}

.btn--pulse {
  animation: btnPulse 2.6s ease-in-out infinite;
}

@keyframes btnPulse {
  0%,
  100% {
    transform: translateZ(0) scale(1);

    box-shadow: 0 12px 30px rgba(36, 202, 104, 0.25);
  }

  50% {
    transform: translateZ(0) scale(1.02);

    box-shadow: 0 16px 38px rgba(36, 202, 104, 0.3);
  }
}

.dlg__foot {
  margin-top: 10px;

  font-size: 12px;

  color: #666;
}

.spinner {
  width: 32px;

  height: 32px;

  border: 3px solid #ddd;

  border-top: 3px solid var(--brand);

  border-radius: 50%;

  margin: 0 auto 12px;

  animation: spin 0.8s linear infinite;
}

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

.ok-badge {
  width: 44px;

  height: 44px;

  margin: 0 auto 10px;

  border-radius: 50%;

  background: #ecfdf5;

  display: grid;

  place-items: center;

  color: #24ca68;

  font-size: 22px;

  opacity: 1;
}

.dlg__card.dlg--xl {
  width: min(96vw, 560px);
}

#pxm-amount.dlg .dlg__card {
  width: min(92vw, 500px);

  padding: 16px 14px;
}

#pxm-qr.dlg .dlg__card {
  width: min(92vw, 420px);

  padding: 16px 14px;
}

.pxm-input {
  display: block;

  width: 100%;

  border: 1px solid #d1d5db;

  border-radius: 12px;

  background: #fff;

  padding: 12px;

  font-size: 14px;
}

.pxm-btn {
  background: #24ca68;

  color: #fff;

  padding: 12px 16px;

  border-radius: 999px;

  font-weight: 800;

  width: 100%;

  box-shadow: 0 10px 22px rgba(36, 202, 104, 0.18);

  transition: 0.25s;

  margin-top: 8px;
}

.pxm-btn:hover {
  background: #1db75e;
}

.pxm-btn--ghost {
  background: #fff;

  color: #065f46;

  border: 1px solid #bbf7d0;

  box-shadow: none;

  font-weight: 900;
}

.pxm-btn--ghost:hover {
  background: #ecfdf5;
}

.pxm-box {
  background: #fff;

  border: 1px solid #e6eef5;

  border-radius: 16px;

  padding: 14px;

  margin-bottom: 12px;
}

.pxm-brand {
  display: flex;

  align-items: center;

  gap: 10px;

  background: #fff;

  border: 1px solid #e6eef5;

  border-radius: 14px;

  padding: 10px 12px;

  margin-bottom: 12px;
}

.pxm-brand img {
  height: 50px;

  width: auto;

  display: block;
}

.pxm-brand .ttl {
  font-weight: 900;

  color: #0b1324;

  font-size: 14px;
}

.pxm-title {
  font-weight: 900;

  color: #0b1324;

  margin: 0 0 10px;

  font-size: 18px;
}

.pxm-step {
  font-weight: 900;

  color: #0b1324;

  font-size: 18px;

  margin: 2px 0 6px;
}

.pxm-sub {
  margin: 0 0 8px;

  color: #64748b;

  font-size: 12px;
}

.pxm-pay {
  display: flex;

  align-items: center;

  gap: 10px;

  padding: 12px;

  border: 1px solid #bbf7d0;

  background: #ecfdf5;

  border-radius: 12px;
}

.pxm-pay input {
  accent-color: #16a34a;
}

.pxm-pay span {
  font-weight: 800;

  color: #065f46;
}

.pxm-grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 12px;
}

.pxm-amt {
  position: relative;

  display: flex;

  align-items: center;

  justify-content: center;

  height: 56px;

  border: 1px solid #e6eef5;

  background: #fff;

  border-radius: 12px;

  font-weight: 900;

  color: #0f172a;

  font-size: 18px;

  cursor: pointer;

  user-select: none;

  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;

  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.pxm-amt:hover {
  border-color: #a7f3d0;

  background: #f9fafb;
}

.pxm-amt.active {
  border-color: #24ca68;

  background: #ecfdf5;

  box-shadow: 0 0 0 3px #dcfce7;
}

.pxm-badge {
  position: absolute;

  top: -9px;

  right: -8px;

  background: #ecfdf5;

  border: 1px solid #86efac;

  color: #065f46;

  font-size: 10px;

  font-weight: 800;

  padding: 0.15rem 0.4rem;

  border-radius: 999px;

  white-space: nowrap;
}

.pxm-head {
  display: flex;

  align-items: center;

  justify-content: center;

  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);

  border-bottom: 1px solid #e6eef5;

  border-radius: 14px 14px 0 0;

  padding: 10px 12px;

  margin: -16px -14px 10px;
}

.pxm-head .t {
  font-weight: 900;

  color: #0b6b3a;

  font-size: 18px;
}

.pxm-status {
  margin: 2px 0 6px;

  font-weight: 800;

  color: #0b1324;

  text-align: center;
}

.pxm-valor {
  margin: 4px 0 8px;

  text-align: center;

  font-size: 12px;

  color: #64748b;
}

.pxm-valor b {
  display: block;

  color: #10b981;

  font-size: 22px;
}

.pxm-qrwrap {
  border: 1px solid #e6eef5;

  background: #fff;

  border-radius: 12px;

  padding: 12px;

  display: flex;

  justify-content: center;

  align-items: center;

  min-height: unset;
}

#pxm-qrc {
  width: clamp(160px, 58vw, 220px);

  height: clamp(160px, 58vw, 220px);

  margin: 0 auto;
}

.pxm-rec {
  margin-top: 12px;

  background: #ffffff;

  border: 1px solid #e6eef5;

  border-radius: 14px;

  padding: 12px;

  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.pxm-rec .title {
  text-align: center;

  margin: 0 0 8px;

  font-weight: 900;

  color: #0b1324;

  font-size: 14px;
}

.pxm-row {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 10px;

  padding: 8px 10px;

  border: 1px solid #eef2f7;

  border-radius: 10px;

  background: #f8fafc;

  margin-top: 6px;
}

.pxm-row span {
  font-size: 12px;

  color: #7a8799;

  font-weight: 800;
}

.pxm-row strong {
  font-size: 14px;

  color: #0f172a;

  font-weight: 800;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;

  max-width: 70%;
}

#pxm-preload {
  position: fixed;

  inset: 0;

  background: rgba(255, 255, 255, 0.9);

  display: none;

  align-items: center;

  justify-content: center;

  z-index: 2147483647;
}

#pxm-preload[data-show="1"] {
  display: flex !important;
}

#pxm-preload .box {
  background: #fff;

  border: 1px solid #e6eef5;

  border-radius: 16px;

  padding: 60px 80px;

  text-align: center;

  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  min-width: 340px;

  min-height: 200px;
}

#pxm-preload .txt {
  font-weight: 700;

  color: #0b1324;

  margin-top: 10px;

  font-size: 22px;
}

.pxm-spin {
  width: 40px;
  height: 40px;
  border: 3px solid #e6eef5;
  border-top-color: #24ca68;
  border-radius: 50%;
  animation: pxm-spin-anim 0.8s linear infinite;
}

/* Área de cópia do PIX - aparece com fade */
.pxm-copy-area {
  opacity: 1;
  transition: opacity 0.4s ease-in-out;
}

.pxm-copy-area.pxm-hidden {
  opacity: 0;
  pointer-events: none;
}

.pxm-copy-area.pxm-visible {
  opacity: 1;
  pointer-events: auto;
}

@keyframes pxm-spin-anim {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#pxm-preload .pxm-spin {
  width: 50px !important;
  height: 50px !important;
  border-width: 4px !important;
}

.pxm-toast {
  position: fixed;

  left: 50%;

  bottom: 22px;

  transform: translateX(-50%) translateY(16px);

  background: #0b1324;

  color: #fff;

  padding: 10px 14px;

  border-radius: 999px;

  font-weight: 800;

  font-size: 12px;

  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);

  opacity: 0;

  pointer-events: none;

  transition: 0.25s;
}

.pxm-toast.show {
  opacity: 1;

  transform: translateX(-50%) translateY(0);
}

#popup-copied {
  position: fixed;

  inset: 0;

  z-index: 10000;

  display: none;

  align-items: center;

  justify-content: center;

  background: rgba(0, 0, 0, 0.65);

  backdrop-filter: blur(6px);
}

#popup-copied .box {
  background: #fff;

  padding: 22px 24px;

  border-radius: 16px;

  text-align: center;

  max-width: 360px;

  width: min(92vw, 360px);

  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

#popup-copied h3 {
  margin: 0 0 8px;

  font-size: 20px;

  font-weight: 900;

  color: #0f172a;
}

#popup-copied p {
  margin: 0;

  color: #374151;

  font-size: 14px;

  line-height: 1.5;
}

#popup-copied .actions {
  display: flex;

  flex-direction: column;

  gap: 8px;
}

#popup-copied button {
  padding: 12px 14px;

  border: none;

  border-radius: 12px;

  font-weight: 800;

  cursor: pointer;
}

#popup-copied .ok {
  background: #24ca68;

  color: #fff;
}

/* Badge Pulsante */
.pxm-badge {
  display: inline-block;
  animation: pulseBadge 1.6s ease-in-out infinite;
  transform-origin: center;
}

@keyframes pulseBadge {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.75;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Menu: links diretos (sem dropdown) */
.menu-header a.item-menu,
.menu-header a.item-menu:visited {
  color: var(--cor_texto);
  text-decoration: none;
}

.menu-header a.item-menu:hover {
  opacity: 0.8;
  color: var(--cor_texto);
}

/* ── Nav Dropdowns (legado — ainda usado se houver .nav-dropdown-wrap no HTML) ── */
.nav-dropdown-wrap {
  position: relative;
}
  cursor: pointer;
  user-select: none;
}

.nav-dropdown-wrap .item-menu svg {
  transition: transform 0.25s ease;
}

.nav-dropdown-wrap.open .item-menu svg {
  transform: rotate(180deg);
}

/* Fechado: fora do fluxo e invisível (opacity sozinha deixava conteúdo no layout em alguns casos) */
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(0);
  min-width: 280px;
  max-width: min(92vw, 340px);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(11, 19, 36, 0.12), 0 2px 8px rgba(11, 19, 36, 0.06);
  border: 1px solid rgba(11, 19, 36, 0.06);
  padding: 8px;
  z-index: 10000;
}

.nav-dropdown.open {
  display: block;
  pointer-events: auto;
}

.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-top: 1px solid rgba(11, 19, 36, 0.06);
  border-left: 1px solid rgba(11, 19, 36, 0.06);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #0b1324;
  transition: background 0.15s ease;
}

.nav-dropdown-item:hover {
  background: #ecfdf5;
  text-decoration: none;
  color: #0b1324;
}

.nav-dropdown-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ecfdf5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #24ca68;
}

.nav-dropdown-icon svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  flex-shrink: 0;
  display: block;
  color: #24ca68;
  stroke: #24ca68;
}

.nav-dropdown-title {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #0b1324;
  line-height: 1.3;
}

.nav-dropdown-sub {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.3;
  margin-top: 1px;
}

/* Link direto para a página de doação (classe dedicada) */
.detailsDiv .summary .sticky-summary .action .btn-donate,
.sticky-summary .action .btn-donate {
  align-items: center;
  cursor: pointer;
  color: #fff !important;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  border: 1px solid transparent;
  background-color: var(--cor-primaria);
  padding: 12px 16px;
  width: 100%;
  font-size: 20px;
  line-height: 24px;
  font-family: "Montserrat", serif;
  transition: all 0.2s linear;
  font-weight: 700;
  margin-bottom: 16px;
  text-decoration: none !important;
  box-sizing: border-box;
}

.detailsDiv .summary .sticky-summary .action .btn-donate:hover,
.sticky-summary .action .btn-donate:hover {
  background-color: var(--cor-secundaria);
  color: #fff !important;
}

#fixed-mobile .btn-donate {
  align-items: center;
  cursor: pointer;
  color: #fff;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  border: 1px solid transparent;
  background-color: var(--cor-primaria);
  padding: 12px 16px;
  width: 100%;
  font-size: 20px;
  line-height: 24px;
  font-family: "Montserrat", serif;
  transition: all 0.2s linear;
  font-weight: 700;
  text-decoration: none;
}

#fixed-mobile .btn-donate:hover {
  background-color: var(--cor-secundaria);
}

/* Rodapé: Quick links + Contact us lado a lado à esquerda */
footer .footer-columns {
  justify-content: flex-start;
  gap: clamp(2rem, 5vw, 4rem);
}

/* Header: logo alinhada à altura da barra (PNG vertical não estoura os 90px) */
header .content-header .logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

header .content-header .logo a {
  display: flex;
  align-items: center;
  line-height: 0;
}

header .content-header .logo img {
  width: auto;
  height: auto;
  max-height: 46px;
  max-width: 130px;
  object-fit: contain;
  display: block;
}

@media (max-width: 992px) {
  header .content-header .logo img {
    max-height: 40px;
    max-width: 118px;
  }
}
