/*
=========================================================
   DONATE MODULE - COMPLETE & ISOLATED
=========================================================
*/

/* =========================================================
   FLOAT BUTTON (TOP RIGHT IN TABS)
========================================================= */
.donate-float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 24px;
  line-height: 1;

  background: linear-gradient(135deg, #e3d7da, #ff7a18);
  color: #ffffff;

  box-shadow: 0 8px 20px rgba(0,0,0,0.25);

  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;

  flex: 0 0 auto;
}

.donate-float-btn:hover {
  transform: scale(1.08);
}

.donate-float-btn:active {
  transform: scale(0.95);
}

html[data-theme="dark"] .donate-float-btn {
  box-shadow: 0 8px 25px rgba(0,0,0,0.6);
}

/* =========================================================
   BACKDROP
========================================================= */
.donate-modal-backdrop {
  position: fixed;
  inset: 0;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 16px;

  background: rgba(0,0,0,0.55);

  z-index: 9998;
}

.donate-modal-backdrop.show {
  display: flex;
}

/* =========================================================
   MODAL CARD
========================================================= */
.donate-modal {
  width: 100%;
  max-width: 440px;

  border-radius: 16px;
  overflow: hidden;

  background: #ffffff;
  color: #1f2937;

  box-shadow: 0 25px 60px rgba(0,0,0,0.35);

  animation: donateFadeIn 0.18s ease-out;
}

@keyframes donateFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dark mode */
html[data-theme="dark"] .donate-modal {
  background: #1c1f26;
  color: #f3f4f6;
}

/* =========================================================
   HEADER
========================================================= */
.donate-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 14px 16px;

  border-bottom: 1px solid rgba(128,128,128,0.2);
}

.donate-modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.donate-close-btn {
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: inherit;
}

/* =========================================================
   BODY
========================================================= */
.donate-modal-body {
  padding: 16px;
}

.donate-text {
  margin: 0 0 12px 0;
  font-size: 14px;
  line-height: 1.4;
}

/* =========================================================
   AMOUNT BUTTONS
========================================================= */
.donate-amount-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.donate-amount-btn {
  border: 1px solid rgba(128,128,128,0.3);
  background: #f9fafb;
  color: #111827;

  padding: 8px 12px;
  border-radius: 10px;

  cursor: pointer;
  font-weight: 600;
}

.donate-amount-btn.active {
  background: #ff6a3d;
  color: #ffffff;
  border-color: #ff6a3d;
}

html[data-theme="dark"] .donate-amount-btn {
  background: #2a2f39;
  color: #f3f4f6;
}

/* =========================================================
   CUSTOM INPUT
========================================================= */
.donate-custom-row {
  margin-bottom: 12px;
}

.donate-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.donate-input {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(128,128,128,0.3);

  font-size: 14px;
}

html[data-theme="dark"] .donate-input {
  background: #2a2f39;
  color: #f3f4f6;
}

/* =========================================================
   INFO BOX
========================================================= */
.donate-info-box {
  background: #f9fafb;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.5;
}

html[data-theme="dark"] .donate-info-box {
  background: #2a2f39;
}

/* =========================================================
   QR SECTION
========================================================= */
.donate-desktop-section {
  text-align: center;
  margin-bottom: 12px;
}

.donate-qr-title {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.donate-qr-frame {
  position: relative;
  width: fit-content;
  margin: 0 auto;
}

.donate-qr-image {
  display: block;
  width: 200px;
  max-width: 100%;

  border-radius: 12px;
  border: 1px solid rgba(128,128,128,0.2);
  padding: 6px;
  background: white;
}

.donate-qr-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 3px 10px rgba(15,23,42,0.12);
  pointer-events: none;
  padding: 2px;
}

.donate-qr-logo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.donate-qr-help {
  font-size: 11px;
  margin-top: 8px;
  opacity: 0.7;
}

html[data-theme="dark"] .donate-qr-logo {
  background: rgba(255,255,255,0.92);
}

/* =========================================================
   ACTION BUTTONS
========================================================= */
.donate-action-grid {
  display: grid;
  gap: 8px;
}

.donate-action-btn {
  border: none;
  border-radius: 10px;

  padding: 10px;
  cursor: pointer;

  font-weight: 700;
  font-size: 14px;
}

.donate-action-primary {
  background: #ff6a3d;
  color: white;
}

.donate-action-secondary {
  background: #0070ba;
  color: white;
}

.donate-action-muted {
  background: #e5e7eb;
  color: #111827;
}

body.dark .donate-action-muted {
  background: #374151;
  color: #f3f4f6;
}

/* =========================================================
   STATUS + FOOTER
========================================================= */
.donate-status {
  min-height: 16px;
  margin-top: 8px;
  font-size: 13px;
  color: #059669;
}

.donate-footer-note {
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.75;
}

/* =========================================================
   ❤️ HEART PULSE (SUBTLE)
========================================================= */
@keyframes donatePulseSoft {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.06);
  }

  100% {
    transform: scale(1);
  }
}

/* Aktiv puls */
.donate-float-btn.pulse {
  animation: donatePulseSoft 2.4s ease-in-out infinite;
}
