/* Estilos da Página de Doação e Banner Pobreflix */
:root {
  --pf-bg-dark: #080a0f;
  --pf-surface: #111622;
  --pf-surface-hover: #161e2e;
  --pf-surface-card: #131926;
  --pf-border: rgba(255, 255, 255, 0.08);
  --pf-border-active: rgba(255, 71, 87, 0.5);
  --pf-primary: #ff4757;
  --pf-primary-hover: #ff6b81;
  --pf-primary-glow: rgba(255, 71, 87, 0.25);
  --pf-text-main: #f1f2f6;
  --pf-text-muted: #8fa0b5;
  --pf-success: #2ed573;
}

body.pf-doar-body {
  margin: 0;
  padding: 0;
  background-color: var(--pf-bg-dark) !important;
  color: var(--pf-text-main);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.pf-doar-wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: 30px 20px 80px;
}

/* Header Top */
.pf-doar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--pf-border);
  margin-bottom: 35px;
}

.pf-doar-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.pf-doar-logo-link:hover {
  opacity: 0.9;
}

.pf-doar-logo-text {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.pf-doar-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--pf-text-muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--pf-border);
  transition: all 0.2s ease;
}

.pf-doar-back:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Hero Section */
.pf-doar-hero {
  text-align: center;
  margin-bottom: 35px;
}

.pf-doar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 71, 87, 0.12);
  color: var(--pf-primary);
  border: 1px solid rgba(255, 71, 87, 0.25);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.pf-doar-title {
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 0 0 18px;
  color: #ffffff;
}

.pf-doar-text-box {
  background: var(--pf-surface-card);
  border: 1px solid var(--pf-border);
  border-radius: 16px;
  padding: 24px 28px;
  text-align: left;
  font-size: 15px;
  line-height: 1.7;
  color: #c9d4e2;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.pf-doar-text-box p {
  margin: 0 0 14px;
}

.pf-doar-text-box p:last-child {
  margin-bottom: 0;
}

.pf-doar-highlight {
  color: #fff;
  font-weight: 600;
}

.pf-reassurance-note {
  background: rgba(46, 213, 115, 0.08);
  border: 1px solid rgba(46, 213, 115, 0.25);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: #a3e9c0;
  margin-top: 16px;
}

.pf-reassurance-note svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--pf-success);
  margin-top: 2px;
}

/* Meta Card & Progress Bar */
.pf-goal-card {
  background: linear-gradient(135deg, #161c2b, #101521);
  border: 1px solid var(--pf-border);
  border-radius: 18px;
  padding: 26px 28px;
  margin-bottom: 35px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.pf-goal-card::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 71, 87, 0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.pf-goal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 14px;
}

.pf-goal-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--pf-text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.pf-goal-amount {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
}

.pf-goal-target {
  font-size: 14px;
  color: var(--pf-text-muted);
  font-weight: 500;
}

.pf-goal-percent {
  font-size: 20px;
  font-weight: 800;
  color: var(--pf-primary);
}

.pf-progress-bar-bg {
  width: 100%;
  height: 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.pf-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff4757, #ff6b81, #ffa502);
  border-radius: 10px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px var(--pf-primary-glow);
}

.pf-goal-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--pf-text-muted);
}

/* Donation Form Card */
.pf-form-card {
  background: var(--pf-surface-card);
  border: 1px solid var(--pf-border);
  border-radius: 18px;
  padding: 32px 30px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.pf-form-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
}

.pf-form-desc {
  font-size: 14px;
  color: var(--pf-text-muted);
  margin: 0 0 24px;
}

/* Amount Chips */
.pf-amount-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--pf-text-main);
  margin-bottom: 10px;
}

.pf-amount-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.pf-chip-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--pf-border);
  color: #ffffff;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.pf-chip-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.pf-chip-btn.active {
  background: rgba(255, 71, 87, 0.15);
  border-color: var(--pf-primary);
  color: #ff6b81;
  box-shadow: 0 0 14px var(--pf-primary-glow);
}

/* Custom Amount Input Box */
.pf-custom-amount-box {
  margin-bottom: 22px;
}

.pf-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.pf-input-prefix {
  position: absolute;
  left: 16px;
  color: var(--pf-text-muted);
  font-weight: 600;
  font-size: 15px;
  pointer-events: none;
}

.pf-input {
  width: 100%;
  background: #0d111a;
  border: 1px solid var(--pf-border);
  border-radius: 10px;
  padding: 14px 16px;
  color: #ffffff;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.pf-input-with-prefix {
  padding-left: 48px;
}

.pf-input:focus {
  border-color: var(--pf-primary);
  box-shadow: 0 0 0 3px var(--pf-primary-glow);
}

.pf-input::placeholder {
  color: #4b586e;
}

.pf-field {
  margin-bottom: 20px;
}

.pf-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--pf-text-main);
  margin-bottom: 8px;
}

.pf-field-help {
  display: block;
  font-size: 11.5px;
  color: var(--pf-text-muted);
  margin-top: 5px;
}

/* Submit Button */
.pf-submit-btn {
  width: 100%;
  background: var(--pf-primary);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(255, 71, 87, 0.35);
  margin-top: 10px;
}

.pf-submit-btn:hover {
  background: var(--pf-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 71, 87, 0.45);
}

.pf-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.pf-error-alert {
  background: rgba(255, 71, 87, 0.12);
  border: 1px solid rgba(255, 71, 87, 0.35);
  color: #ff7688;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  margin-top: 16px;
  display: none;
}

/* PIX Modal / Section */
.pf-pix-section {
  display: none;
  margin-top: 30px;
  background: #0f1420;
  border: 1px solid rgba(255, 71, 87, 0.3);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.pf-pix-header {
  text-align: center;
  margin-bottom: 24px;
}

.pf-pix-header h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
  color: #fff;
}

.pf-pix-header p {
  color: var(--pf-text-muted);
  font-size: 14px;
  margin: 0;
}

.pf-pix-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: center;
}

.pf-qr-card {
  text-align: center;
}

.pf-qr-img {
  width: 220px;
  height: 220px;
  background: #ffffff;
  padding: 12px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  display: block;
  margin: 0 auto 10px;
}

.pf-qr-value {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.pf-pix-instructions h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
}

.pf-pix-instructions p {
  font-size: 13.5px;
  color: var(--pf-text-muted);
  margin: 0 0 14px;
  line-height: 1.5;
}

.pf-copy-textarea {
  width: 100%;
  height: 75px;
  background: #090c13;
  border: 1px solid var(--pf-border);
  border-radius: 8px;
  color: #abbacd;
  font-family: monospace;
  font-size: 12px;
  padding: 10px;
  resize: none;
  box-sizing: border-box;
  outline: none;
}

.pf-copy-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid var(--pf-border);
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  transition: all 0.2s ease;
}

.pf-copy-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.pf-copy-btn.copied {
  background: rgba(46, 213, 115, 0.2);
  border-color: var(--pf-success);
  color: var(--pf-success);
}

/* Polling Status Indicator */
.pf-polling-box {
  margin-top: 20px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--pf-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pf-status-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #abbacd;
}

.pf-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 71, 87, 0.2);
  border-top-color: var(--pf-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.pf-manual-check-btn {
  background: transparent;
  border: none;
  color: var(--pf-text-muted);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px;
}

.pf-manual-check-btn:hover {
  color: #fff;
}

/* Confirmation / Success Screen */
.pf-success-box {
  display: none;
  text-align: center;
  padding: 40px 20px;
  background: var(--pf-surface-card);
  border: 1px solid rgba(46, 213, 115, 0.3);
  border-radius: 18px;
  animation: fadeIn 0.4s ease;
}

.pf-success-icon {
  width: 64px;
  height: 64px;
  background: rgba(46, 213, 115, 0.15);
  color: var(--pf-success);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.pf-success-title {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px;
}

.pf-success-desc {
  font-size: 15px;
  color: #a7b7ca;
  max-width: 500px;
  margin: 0 auto 26px;
  line-height: 1.6;
}

/* Top Announcement Banner in Header */
.pf-donation-topbar {
  background: linear-gradient(90deg, #1b0a0e 0%, #2a0e14 50%, #150a0e 100%);
  border-bottom: 1px solid rgba(255, 71, 87, 0.25);
  padding: 9px 16px;
  position: relative;
  z-index: 100;
}

.pf-donation-topbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.pf-donation-topbar-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #e2e8f0;
  flex: 1;
}

.pf-donation-topbar-badge {
  background: var(--pf-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.pf-donation-topbar-text {
  line-height: 1.4;
  color: #cbd5e1;
}

.pf-donation-topbar-text strong {
  color: #ffffff;
}

.pf-donation-topbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #0f172a !important;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pf-donation-topbar-btn:hover {
  background: #ff4757;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.pf-menu-doar {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  color: #ff5252 !important;
  font-weight: 700 !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  background: rgba(255, 82, 82, 0.1) !important;
  transition: all 0.2s ease !important;
}

.pf-menu-doar:hover {
  background: rgba(255, 82, 82, 0.2) !important;
  color: #ff7675 !important;
}

.pf-heart-pulse {
  display: inline-block;
  animation: heartPulse 1.8s infinite;
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.22); }
}

/* Responsive */
@media (max-width: 768px) {
  .pf-pix-body {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .pf-doar-text-box {
    padding: 20px;
    font-size: 14px;
  }
  .pf-goal-card, .pf-form-card {
    padding: 22px 18px;
  }
  .pf-donation-topbar-content {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 8px;
  }
  .pf-donation-topbar-info {
    flex-direction: column;
    gap: 4px;
  }
  .pf-donation-topbar-btn {
    align-self: center;
    padding: 5px 16px;
  }
}
