/* ============================================================
   Brand League — Donation System Styles
   ============================================================ */

/* ---- Donate button in leaderboard table ---- */
.donate-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(52, 211, 153, .3);
  background: rgba(52, 211, 153, .08); color: #34d399;
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: all .2s ease; white-space: nowrap;
  text-decoration: none;
}
.donate-btn:hover {
  background: rgba(52, 211, 153, .18); border-color: rgba(52, 211, 153, .6);
  transform: translateY(-1px); box-shadow: 0 4px 14px rgba(52, 211, 153, .2);
  color: #34d399; text-decoration: none;
}
.donate-btn:active { transform: translateY(0) scale(.97); }
.donate-btn .donate-heart { font-size: 13px; animation: heartPulse 1.8s ease-in-out infinite; }
@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* ---- Donation modal overlay ---- */
.donate-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, .65); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.donate-overlay.open {
  opacity: 1; pointer-events: auto;
}

.donate-modal {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 20px; padding: 28px 30px;
  width: min(440px, 92vw); max-height: 90vh; overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(124, 92, 255, .1);
  transform: translateY(20px) scale(.96);
  transition: transform .3s cubic-bezier(.25, 1.1, .4, 1);
}
.donate-overlay.open .donate-modal {
  transform: translateY(0) scale(1);
}

.donate-modal-close {
  position: absolute; top: 14px; right: 16px;
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--panel2);
  color: var(--dim); font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.donate-modal-close:hover { color: var(--txt); border-color: var(--acc); }

.donate-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px; position: relative;
}
.donate-header h2 { font-size: 20px; font-weight: 700; }
.donate-header .donate-sub { color: var(--dim); font-size: 13px; margin-top: 2px; }

/* Amount selector grid */
.amount-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-bottom: 16px;
}
.amount-opt {
  padding: 12px 8px; text-align: center; border-radius: 12px;
  border: 2px solid var(--line); background: var(--panel2);
  color: var(--txt); font-size: 16px; font-weight: 700;
  cursor: pointer; transition: all .18s ease;
}
.amount-opt:hover {
  border-color: var(--acc); transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(124, 92, 255, .2);
}
.amount-opt.active {
  border-color: #34d399; background: rgba(52, 211, 153, .12);
  color: #34d399; box-shadow: 0 4px 16px rgba(52, 211, 153, .25);
}

.custom-amount-wrap {
  position: relative; margin-bottom: 16px;
}
.custom-amount-wrap .currency-sign {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--dim); font-size: 18px; font-weight: 700;
}
.custom-amount-input {
  width: 100%; padding: 12px 14px 12px 32px; border-radius: 12px;
  border: 2px solid var(--line); background: var(--panel2);
  color: var(--txt); font-size: 18px; font-weight: 700;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.custom-amount-input:focus {
  border-color: var(--acc); box-shadow: 0 0 0 3px rgba(124, 92, 255, .15);
}
.custom-amount-input::placeholder { color: var(--dim); font-weight: 400; }

/* Fee breakdown */
.fee-breakdown {
  background: var(--panel2); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 16px;
}
.fee-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 0; font-size: 13.5px; color: var(--dim);
}
.fee-row.total {
  border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px;
  font-weight: 700; color: var(--txt); font-size: 15px;
}
.fee-row .fee-val { font-variant-numeric: tabular-nums; }
.fee-row .fee-val.pos { color: #34d399; font-weight: 700; }

/* Submit button */
.donate-submit {
  width: 100%; padding: 14px 20px; border-radius: 14px; border: none;
  background: linear-gradient(135deg, #34d399, #22d3ee);
  color: #0a0d13; font-size: 16px; font-weight: 800;
  cursor: pointer; transition: all .2s ease;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.donate-submit:hover {
  filter: brightness(1.1); transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(52, 211, 153, .35);
}
.donate-submit:active { transform: translateY(0) scale(.98); }
.donate-submit:disabled {
  opacity: .5; cursor: not-allowed; transform: none;
  filter: saturate(.4);
}

.donate-secure {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 12px; font-size: 11.5px; color: var(--dim);
}
.donate-secure .lock-icon { font-size: 13px; }

/* ---- Company profile donation card ---- */
.donate-card {
  background: linear-gradient(135deg, rgba(52, 211, 153, .08), rgba(34, 211, 238, .06));
  border: 1px solid rgba(52, 211, 153, .25); border-radius: 16px;
  padding: 22px 24px; margin-bottom: 18px;
  transition: border-color .25s, box-shadow .25s;
}
.donate-card:hover {
  border-color: rgba(52, 211, 153, .5);
  box-shadow: 0 12px 36px rgba(52, 211, 153, .1);
}
.donate-card-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.donate-card-header h2 { font-size: 18px; font-weight: 700; }
.donate-card-header .donate-icon { font-size: 24px; }
.donate-card p { color: var(--dim); font-size: 14px; line-height: 1.5; margin-bottom: 14px; }
.donate-card .donate-stats {
  display: flex; gap: 24px; margin-bottom: 16px; flex-wrap: wrap;
}
.donate-card .dstat {
  font-size: 13px; color: var(--dim);
}
.donate-card .dstat b { color: var(--txt); font-size: 18px; display: block; margin-top: 2px; }
.donate-card .donate-big-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 28px; border-radius: 14px; border: none;
  background: linear-gradient(135deg, #34d399, #22d3ee);
  color: #0a0d13; font-size: 15px; font-weight: 800;
  cursor: pointer; transition: all .2s ease;
}
.donate-card .donate-big-btn:hover {
  filter: brightness(1.1); transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(52, 211, 153, .35);
}

/* ---- Sidebar donation widget ---- */
.donate-widget .mw-row .donate-mini {
  color: #34d399; font-weight: 700; font-size: 12.5px;
}

/* ---- Success page ---- */
.success-page {
  text-align: center; padding: 60px 20px;
  animation: rise .5s ease-out both;
}
.success-icon {
  font-size: 72px; margin-bottom: 20px;
  animation: successPop .6s cubic-bezier(.3, 1.6, .5, 1) both;
}
@keyframes successPop {
  from { transform: scale(0) rotate(-20deg); }
  to { transform: scale(1) rotate(0); }
}
.success-title {
  font-size: 32px; font-weight: 800; margin-bottom: 10px;
  background: linear-gradient(90deg, #34d399, #22d3ee);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.success-sub {
  color: var(--dim); font-size: 16px; margin-bottom: 24px;
}
.success-breakdown {
  max-width: 380px; margin: 0 auto 28px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 20px; text-align: left;
}
.breakdown-row {
  display: flex; justify-content: space-between; padding: 6px 0;
  font-size: 14px; color: var(--dim);
}
.breakdown-row.total {
  border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px;
  font-weight: 700; color: var(--txt);
}
.breakdown-val { font-variant-numeric: tabular-nums; }
.breakdown-val.pos { color: #34d399; font-weight: 700; }
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- Toast notification ---- */
.donate-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--panel); border: 1px solid rgba(52, 211, 153, .4);
  border-radius: 14px; padding: 12px 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
  z-index: 2000; display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600;
  opacity: 0; transition: all .4s cubic-bezier(.25, 1, .4, 1);
  pointer-events: none;
}
.donate-toast.show {
  opacity: 1; transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.donate-toast .toast-icon { font-size: 20px; }
