/* ============================================================
   support/support.css
   Support / Donation page styles
   ============================================================ */

/* ── PAGE WRAP ── */
.page-wrap {
  padding: calc(var(--nav-h) + 56px) 0 80px;
}

/* ── GRID ── */
.donate-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: start;
}

/* ─────────────────────────────────────────────────────────────
   LEFT COLUMN
───────────────────────────────────────────────────────────── */

.donate-info .section-title {
  margin-bottom: 14px;
  line-height: 1.15;
}

.donate-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--light-muted);
  margin-bottom: 32px;
}

/* ── PERK CARDS ── */
.donate-perks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.perk {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition:
    border-color var(--transition),
    transform var(--transition);
}

.perk:hover {
  border-color: rgba(255, 107, 43, 0.3);
  transform: translateX(4px);
}

/* SVG icon container — replaces emoji */
.perk-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--orange-pale);
  border: 1px solid rgba(255, 107, 43, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
}

.perk:hover .perk-icon-wrap {
  background: rgba(255, 107, 43, 0.14);
}

.perk-icon-wrap svg {
  width: 20px;
  height: 20px;
  stroke: var(--orange);
}

.perk-text p:first-child {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--text);
}

.perk-text p:last-child {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── LEGAL NOTICE PERK ── */
.legal-perk {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  background: rgba(255, 107, 43, 0.04);
  border: 1px solid rgba(255, 107, 43, 0.15);
  border-radius: var(--radius);
  margin-bottom: 28px;
  margin-top: 12px;
}

.legal-perk .perk-icon-wrap {
  margin-top: 2px;
  flex-shrink: 0;
}

.legal-perk .perk-icon-wrap.legal {
  background: rgba(255, 107, 43, 0.1);
}

.legal-perk .perk-text p:first-child {
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.legal-perk .perk-text p:last-child {
  font-size: 12.5px;
  color: var(--light-muted);
  line-height: 1.65;
}

/* ── TRUST SECTION ── */
.trust-section {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.trust-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.trust-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
}

.trust-badge:hover {
  border-color: rgba(255, 107, 43, 0.25);
}

.trust-badge-icon {
  width: 34px;
  height: 34px;
  background: var(--orange-pale);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-badge-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--orange);
  fill: none;
}

.trust-badge-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 2px;
}

.trust-badge-sub {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

/* ─────────────────────────────────────────────────────────────
   RIGHT COLUMN — FORM
───────────────────────────────────────────────────────────── */

.donate-form-wrap {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 32px 30px 28px;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

/* ── FORM HEADER ── */
.form-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.form-header h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--text);
}

.form-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* "Secured" badge in form header */
.form-secured-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 50px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 700;
  color: #22c55e;
  white-space: nowrap;
  flex-shrink: 0;
}

.form-secured-badge svg {
  width: 13px;
  height: 13px;
  stroke: #22c55e;
  fill: none;
}

/* ── AMOUNT GRID ── */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 18px;
}

.amount-btn {
  padding: 13px 8px;
  border-radius: var(--radius-sm);
  background: var(--dark3);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  user-select: none;
}

.amount-btn:hover,
.amount-btn.active {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-pale);
}

.amount-btn.active {
  box-shadow: 0 0 0 1px var(--orange);
}

/* ── CUSTOM AMOUNT ── */
.custom-amount-wrap {
  position: relative;
  margin-bottom: 16px;
}

.custom-amount-wrap label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.custom-amount-wrap > span {
  position: absolute;
  left: 14px;
  bottom: 13px;
  color: var(--muted);
  font-weight: 700;
  font-size: 15px;
  pointer-events: none;
}

.custom-amount-wrap input {
  padding-left: 30px !important;
}

/* ── DONATE TOTAL ── */
.donate-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--orange-pale);
  border: 1px solid rgba(255, 107, 43, 0.22);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  margin-bottom: 18px;
}

.donate-total span:first-child {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.donate-total span:last-child {
  font-size: 22px;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: -0.01em;
}

/* ── FORM GROUPS ── */
.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.optional {
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
  margin-left: 4px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  font-family: var(--font-body);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 43, 0.1);
}

.form-group textarea {
  resize: none;
}

/* ── SUPPORT BUTTON ── */
.support-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 4px;
  margin-bottom: 18px;
}

.support-btn svg {
  fill: rgba(255, 255, 255, 0.7);
  stroke: none;
  width: 16px;
  height: 16px;
  transition: fill var(--transition);
}

.support-btn:hover svg {
  fill: #fff;
}

/* ── PAYMENT METHODS ── */
.payment-methods {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.pm-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pm-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pm-badge {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
  display: flex;
  align-items: center;
  height: 28px;
  transition: border-color var(--transition);
}

.pm-badge:hover {
  border-color: var(--border2, rgba(255, 255, 255, 0.12));
}

.pm-badge svg {
  height: 14px;
  width: auto;
}

.pm-badge.mc {
  padding: 3px 6px;
}

/* ── SECURE NOTE ROW ── */
.secure-note-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.secure-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.secure-item svg {
  width: 13px;
  height: 13px;
  stroke: var(--muted);
  fill: none;
  flex-shrink: 0;
}

/* ── SUCCESS BLOCK ── */
.donate-success {
  display: none;
  text-align: center;
  padding: 24px 16px;
}

.success-icon-wrap {
  width: 72px;
  height: 72px;
  background: rgba(34, 197, 94, 0.1);
  border: 2px solid rgba(34, 197, 94, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.success-icon-wrap svg {
  width: 32px;
  height: 32px;
  stroke: #22c55e;
  fill: none;
  stroke-width: 2.5;
}

.donate-success h4 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}

.donate-success p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.65;
}

/* ── QR CARD (kept for future use) ── */
.qr-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.qr-card img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  flex-shrink: 0;
}

.qr-card p:first-child {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 3px;
}

.qr-card p:last-child {
  font-size: 12px;
  color: var(--muted);
}

/* ──────────────────────────────────────────────────────────
   POPUP STYLES (unchanged — complete)
─────────────────────────────────────────────────────────── */

.payment-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.payment-popup-overlay.open {
  pointer-events: all;
  opacity: 1;
}
.popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 9, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
}
.popup-card {
  position: relative;
  z-index: 1;
  background: var(--dark2, #161618);
  border: 1px solid rgba(255, 107, 43, 0.28);
  border-radius: 24px;
  padding: 44px 34px 38px;
  max-width: 430px;
  width: 100%;
  text-align: center;
  overflow: hidden;
  transform: scale(0.82) translateY(36px);
  opacity: 0;
  transition:
    transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    opacity 0.35s ease;
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 107, 43, 0.08);
}
.payment-popup-overlay.open .popup-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.popup-card::before {
  content: "";
  position: absolute;
  top: -70px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 107, 43, 0.16),
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}
.popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted, #9d9a96);
  font-size: 16px;
  font-weight: 300;
  transition: all 0.25s ease;
  z-index: 2;
  line-height: 1;
}
.popup-close:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}
.popup-icon-wrap {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 0 auto 24px;
  z-index: 1;
}
.popup-icon-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--orange, #ff6b2b);
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.5s ease 0.2s;
}
.payment-popup-overlay.open .popup-icon-ring {
  opacity: 0.35;
  transform: scale(1);
}
.popup-icon-ring-pulse {
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 2px solid var(--orange, #ff6b2b);
  opacity: 0;
}
.payment-popup-overlay.open .popup-icon-ring-pulse {
  animation: ringPulse 1.8s ease-out 0.65s infinite;
}
@keyframes ringPulse {
  0% {
    transform: scale(1);
    opacity: 0.45;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}
.popup-icon-circle {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 43, 0.2),
    rgba(255, 107, 43, 0.06)
  );
  border: 2px solid rgba(255, 107, 43, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.popup-icon-circle svg {
  width: 42px;
  height: 42px;
  stroke: var(--orange, #ff6b2b);
  fill: none;
  stroke-width: 2.5;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  transition: stroke-dashoffset 0.65s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}
.payment-popup-overlay.open .popup-icon-circle svg {
  stroke-dashoffset: 0;
}
.popup-card.error .popup-icon-circle {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
}
.popup-card.error .popup-icon-circle svg {
  stroke: #ef4444;
}
.popup-card.error::before {
  background: radial-gradient(circle, rgba(239, 68, 68, 0.12), transparent 70%);
}
.popup-card.error .popup-icon-ring,
.popup-card.error .popup-icon-ring-pulse {
  border-color: #ef4444;
}
.popup-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 25px;
  font-weight: 800;
  color: var(--text, #f0ede8);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
  line-height: 1.25;
}
.popup-title .script {
  font-family: "Sacramento", cursive;
  font-size: 1.3em;
  color: var(--orange, #ff6b2b);
  font-weight: 400;
}
.popup-subtitle {
  font-size: 14px;
  line-height: 1.75;
  color: var(--light-muted, rgba(240, 237, 232, 0.55));
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.popup-pay-id {
  background: var(--dark3, #1e1e22);
  border: 1px solid rgba(255, 107, 43, 0.18);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.popup-pay-id-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted, #9d9a96);
  margin-bottom: 4px;
  text-align: left;
}
.popup-pay-id-value {
  font-family: "Courier New", monospace;
  font-size: 12.5px;
  color: var(--orange, #ff6b2b);
  text-align: left;
  word-break: break-all;
  flex: 1;
}
.popup-copy-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--orange-pale, rgba(255, 107, 43, 0.07));
  border: 1px solid rgba(255, 107, 43, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}
.popup-copy-btn:hover {
  background: var(--orange, #ff6b2b);
  border-color: var(--orange, #ff6b2b);
}
.popup-copy-btn:hover svg {
  stroke: #fff;
}
.popup-copy-btn svg {
  width: 14px;
  height: 14px;
  stroke: var(--orange, #ff6b2b);
  fill: none;
  transition: stroke 0.2s;
}
.popup-copy-btn.copied {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.25);
}
.popup-copy-btn.copied svg {
  stroke: #22c55e;
}
.popup-actions {
  display: flex;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.popup-btn-primary {
  flex: 1;
  padding: 13px 16px;
  background: var(--orange, #ff6b2b);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(255, 107, 43, 0.35);
}
.popup-btn-primary:hover {
  background: #ff8c55;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 107, 43, 0.5);
}
.popup-btn-secondary {
  padding: 13px 16px;
  background: transparent;
  color: var(--muted, #9d9a96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.popup-btn-secondary:hover {
  border-color: rgba(255, 107, 43, 0.3);
  color: var(--orange, #ff6b2b);
}
.popup-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted, #9d9a96);
  margin-top: 16px;
  position: relative;
  z-index: 1;
}
.popup-meta svg {
  width: 13px;
  height: 13px;
  stroke: var(--muted, #9d9a96);
  fill: none;
}
.popup-error-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.popup-retry-btn {
  width: 100%;
  padding: 13px;
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}
.popup-retry-btn:hover {
  background: #f87171;
  transform: translateY(-1px);
}
.popup-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 24px;
  z-index: 0;
}
.confetti-piece {
  position: absolute;
  border-radius: 2px;
  opacity: 0;
  top: -10px;
}
.payment-popup-overlay.open .confetti-piece {
  animation: confettiFall var(--dur, 1.2s) ease-in var(--delay, 0s) forwards;
}
@keyframes confettiFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  80% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(320px) rotate(720deg);
    opacity: 0;
  }
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .donate-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .donate-form-wrap {
    position: static;
  }
  .trust-badges {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .page-wrap {
    padding: calc(var(--nav-h) + 40px) 0 60px;
  }
  .donate-form-wrap {
    padding: 24px 18px 22px;
    border-radius: 18px;
  }
  .amount-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .popup-card {
    padding: 36px 20px 30px;
    border-radius: 20px;
  }
  .popup-title {
    font-size: 21px;
  }
  .popup-actions {
    flex-direction: column;
  }
  .trust-badges {
    grid-template-columns: 1fr 1fr;
  }
  .secure-note-row {
    gap: 10px;
  }
  .payment-methods {
    flex-direction: column;
    align-items: flex-start;
  }
  .form-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
