.pix-page [hidden],
.mp-info-dialog [hidden],
.donation-proof-dialog [hidden] { display: none !important; }

.pix-page {
  min-height: calc(100vh - 90px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 30px 0 70px;
}

.pix-shell {
  width: min(980px, 100%);
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.72fr);
  gap: 18px;
  align-items: stretch;
}

.pix-card { position: relative; overflow: hidden; border-radius: 28px; }

.pix-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 92, 207, 0.28), transparent 34%),
    radial-gradient(circle at 90% 0%, rgba(72, 183, 255, 0.2), transparent 30%);
  pointer-events: none;
}

.pix-card > * { position: relative; }

.pix-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #ffd7f4;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.pix-title { font-size: clamp(34px, 6vw, 64px); line-height: 0.95; margin-bottom: 14px; }
.pix-title span { color: var(--pink); }
.pix-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

.pix-back-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid rgba(92, 183, 255, .32);
  border-radius: 10px;
  color: #dff4ff;
  background: linear-gradient(145deg, rgba(17, 37, 62, .88), rgba(8, 14, 29, .96));
  box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
  font-weight: 900;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.pix-back-link:hover,
.pix-back-link:focus-visible {
  border-color: rgba(92, 183, 255, .68);
  background: linear-gradient(145deg, rgba(22, 53, 88, .96), rgba(10, 20, 39, .98));
  transform: translateY(-1px);
}

.pix-back-link span[aria-hidden="true"] { color: #5ac8fa; font-size: 19px; }

.pix-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }

.mp-checkout {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(92, 183, 255, .28);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(0, 158, 227, .11), rgba(10, 13, 30, .72));
}

.mp-heading { display: flex; align-items: flex-start; gap: 13px; }
.mp-heading > div:last-child { min-width: 0; }
.mp-heading h2 { margin: 0 0 5px; font-size: 22px; }
.mp-heading p { margin: 0; color: var(--muted); line-height: 1.5; }
.mp-learn-more { padding: 0; color: #69c9ff; background: transparent; font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }
.mp-learn-more:hover, .mp-learn-more:focus-visible { color: #fff; }
.mp-mark {
  flex: 0 0 48px; height: 48px; display: grid; place-items: center; border-radius: 15px;
  color: #fff; background: linear-gradient(135deg, #00a6ea, #0878c9); font-weight: 950;
  box-shadow: 0 12px 30px rgba(0, 151, 224, .24);
}
.mp-user { margin-top: 17px; padding: 12px; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 11px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: rgba(255,255,255,.045); }
.mp-user img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.mp-user strong, .mp-user small { display: block; }
.mp-user small { margin-top: 2px; color: var(--muted); }
.mp-user a { color: #79cfff; font-weight: 850; font-size: 13px; }
.mp-login, .mp-unavailable { margin-top: 16px; padding: 14px; border-radius: 15px; background: rgba(255,255,255,.055); }
.mp-login p { margin-top: 0; }
#mercadoPagoForm { margin-top: 17px; display: grid; gap: 10px; }
#mercadoPagoForm > label:first-child { font-weight: 850; }
.mp-amount { height: 54px; display: flex; align-items: center; gap: 8px; padding: 0 15px; border: 1px solid rgba(255,255,255,.15); border-radius: 15px; background: rgba(4,7,17,.7); }
.mp-amount span { color: #5ac8fa; font-size: 19px; font-weight: 950; }
.mp-amount input { flex: 1; min-width: 0; border: 0; outline: 0; color: #fff; background: transparent; font-size: 22px; font-weight: 900; }
.mp-checkbox { display: flex; align-items: center; gap: 9px; color: #d8d7e3; font-size: 14px; }
.mp-checkbox input { width: 18px; height: 18px; accent-color: #1da1f2; }
#mercadoPagoButton { width: 100%; min-height: 48px; margin-top: 4px; border-radius: 14px; background: linear-gradient(135deg, #00a6ea, #0878c9); }
.mp-security { color: var(--muted); line-height: 1.45; }

.mp-info-dialog { width: min(500px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 24px; color: #f8f7ff; background: transparent; }
.mp-info-dialog::backdrop { background: rgba(2, 4, 13, .78); backdrop-filter: blur(5px); }
.mp-info-dialog section { position: relative; padding: 28px; border: 1px solid rgba(88, 190, 255, .35); border-radius: 24px; background: linear-gradient(145deg, #10223a, #090b18 72%); box-shadow: 0 30px 90px rgba(0,0,0,.55); }
.mp-info-dialog .mp-mark { margin-bottom: 16px; }
.mp-info-dialog h2 { margin: 0 44px 10px 0; }
.mp-info-dialog p { color: #c9c8d7; line-height: 1.65; white-space: pre-wrap; }
.mp-info-dialog .btn { margin-top: 8px; }
.mp-info-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 12px; color: #fff; background: rgba(255,255,255,.07); font-size: 26px; }

.proof-open { margin-top: 18px; width: 100%; justify-content: center; white-space: normal; }
.donation-proof-dialog { width: min(560px, calc(100% - 28px)); }
.donation-proof-dialog section { max-height: calc(100vh - 28px); overflow: auto; }
.proof-mark {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #14b8a6, #22c55e);
  color: #fff;
  font-size: 24px;
  font-weight: 950;
}
.donation-proof-form { display: grid; gap: 10px; margin-top: 18px; }
.donation-proof-form label { color: #f4f1ff; font-weight: 900; }
.donation-proof-form textarea,
.donation-proof-form input[type="file"] {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #394361;
  border-radius: 13px;
  background: #0d1426;
  color: #fff;
  font: inherit;
}
.donation-proof-form textarea { min-height: 94px; padding: 12px; resize: vertical; }
.donation-proof-form input[type="file"] { padding: 10px; }
.donation-proof-form small { color: #aab5d0; line-height: 1.45; }
.donation-proof-form > .btn { justify-content: center; margin-top: 6px; }

.qr-box {
  min-height: 260px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.045);
  padding: 18px;
}
.qr-box > div { min-width: 0; }

.qr-box img {
  width: min(230px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
  padding: 10px;
}

.pix-mini-list { display: grid; gap: 10px; }

.pix-mini-list div {
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.pix-toast { min-height: 22px; margin-top: 12px; color: var(--ok); font-weight: 800; }

@media (max-width: 820px) {
  .pix-shell { grid-template-columns: minmax(0, 1fr); }
  .pix-card, .pix-side { min-width: 0; }
  .pix-title { font-size: 42px; }
}

@media (max-width: 520px) {
  .pix-page { padding-top: 18px; }
  .pix-card { border-radius: 20px; }
  .mp-user { grid-template-columns: 42px minmax(0, 1fr); }
  .mp-user a { grid-column: 2; }
}
