@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #0B0A15;
  --panel: rgba(22, 20, 36, 0.65);
  --panel-border: rgba(99, 102, 241, 0.25);
  --text: #F8FAFC;
  --muted: #94A3B8;
  --primary-grad: linear-gradient(135deg, #6366F1 0%, #A855F7 100%);
  --primary-grad-h: linear-gradient(135deg, #818CF8 0%, #C084FC 100%);
  --gold-grad: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  --metamask-grad: linear-gradient(135deg, #f6851b 0%, #e2761b 100%);
  --warn: rgba(245, 158, 11, 0.12);
  --warn-border: rgba(245, 158, 11, 0.35);
  --success: #10b981;
  --danger: #ef4444;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(168, 85, 247, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(251, 191, 36, 0.07) 0%, transparent 50%);
  color: var(--text);
  min-height: 100vh;
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.donate-page {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.donate-header {
  text-align: center;
  padding: 14px 0 6px;
}

.donate-logo {
  font-size: 56px;
  margin-bottom: 6px;
  display: inline-block;
  animation: bounceLogo 2.4s ease-in-out infinite;
  filter: drop-shadow(0 4px 16px rgba(251, 191, 36, 0.35));
}

@keyframes bounceLogo {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-6px) rotate(3deg); }
}

.donate-header h1 {
  font-size: 28px;
  font-weight: 700;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 4px;
}

.donate-tagline {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.warning-box {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: var(--warn);
  border: 1px solid var(--warn-border);
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.55;
}

.warning-icon { font-size: 20px; flex-shrink: 0; }
.warning-text b { color: #fbbf24; }

.card {
  background: var(--panel);
  backdrop-filter: blur(12px);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 16px;
}

.card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
}
.card-row:last-child { border-bottom: none; }
.card-label { color: var(--muted); font-weight: 500; }
.card-value { font-weight: 600; }
.card-value.addr {
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 11px;
  background: rgba(99, 102, 241, 0.08);
  padding: 4px 8px;
  border-radius: 6px;
  word-break: break-all;
  text-align: right;
  max-width: 70%;
}

.amount-input-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.10);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 10px;
  padding: 4px 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.amount-input-wrap:focus-within {
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.18);
}
.amount-prefix { font-weight: 700; color: #fbbf24; font-size: 14px; }
.amount-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  width: 60px;
  text-align: right;
  -moz-appearance: textfield;
  appearance: textfield;
}
.amount-input::-webkit-outer-spin-button,
.amount-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.amount-suffix { font-size: 11px; color: var(--muted); font-weight: 500; }

.section-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin: 4px 0 10px;
}
.section-title:not(:first-child) { margin-top: 16px; }

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip:hover {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(168, 85, 247, 0.4);
}
.chip[data-active="true"] {
  background: var(--primary-grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.45);
}

.status-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}
.status-icon { font-size: 22px; }
.status-text { flex: 1; font-size: 13px; line-height: 1.5; word-break: break-word; }
.status-card.success .status-text { color: var(--success); }
.status-card.error .status-text { color: var(--danger); }

.actions { display: flex; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  padding: 14px 18px;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--primary-grad);
  color: #fff;
  box-shadow: 0 6px 18px rgba(168, 85, 247, 0.4);
}
.btn-primary:not(:disabled):hover {
  background: var(--primary-grad-h);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(168, 85, 247, 0.55);
}

/* Send butonu - MetaMask turuncusu (#f6851b) */
.btn-cta {
  background: var(--metamask-grad);
  color: #fff;
  box-shadow: 0 6px 18px rgba(246, 133, 27, 0.5);
}
.btn-cta:not(:disabled):hover {
  filter: brightness(1.10);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(246, 133, 27, 0.7);
}

.donate-footer {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding-top: 8px;
}

a, a:visited { color: #c084fc; text-decoration: none; }
a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  body { padding: 16px 10px; }
  .actions { flex-direction: column; }
  .donate-header h1 { font-size: 24px; }
}
