/* ---- Design tokens ---- */
:root {
  --bt-blue:      #427bb8;
  --bt-blue-dark: #2a4f76;
  --bt-green:     #8ab042;
  --page-bg:      #eef2f7;
  --card-bg:      #ffffff;
  --text-main:    #1a202c;
  --text-muted:   #6b7280;
  --border:       #e2e8f0;
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    20px;
}

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--page-bg);
  min-height: 100vh;
  margin: 0;
  color: var(--text-main);
  -webkit-text-size-adjust: 100%;
}

/* ---- Page layout: vertically & horizontally centred ---- */
.donate-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

/* On short landscape screens, don't try to vertically centre — just top-align */
@media (max-height: 600px) {
  .donate-page {
    align-items: flex-start;
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

/* ---- Card ---- */
.donate-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 32px rgba(66, 123, 184, 0.13), 0 1px 4px rgba(0,0,0,0.06);
  padding: 36px 32px 28px;
  width: 100%;
  max-width: 480px;
  text-align: center;
}

@media (max-width: 480px) {
  .donate-card { padding: 28px 18px 22px; }
}

/* ---- Logo ---- */
.donate-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
}

/* ---- Headings ---- */
.donate-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 8px;
}

.donate-subheading {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 24px;
}

/* ---- Section labels ---- */
.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  text-align: left;
  margin-bottom: 8px;
}

/* ---- Amount buttons ---- */
.amount-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.amt-btn {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  background: #fff;
  color: var(--bt-blue);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 0;
  min-height: 44px;
  flex: 1 1 58px;
  min-width: 52px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.amt-btn:hover {
  border-color: var(--bt-blue);
}

.amt-btn.active {
  background: var(--bt-blue);
  border-color: var(--bt-blue);
  color: #fff;
}

/* ---- Custom amount input ---- */
.other-input-wrap {
  display: none;
  position: relative;
  margin-bottom: 10px;
}

.currency-symbol {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 600;
  color: var(--bt-blue);
  pointer-events: none;
  font-size: 0.95rem;
  line-height: 1;
}

.other-input-wrap input {
  width: 100%;
  height: 44px;
  border: 2px solid var(--bt-blue);
  border-radius: var(--radius-sm);
  padding: 0 12px 0 28px;
  font-family: inherit;
  font-size: 1rem; /* 16px — prevents iOS Safari auto-zoom */
  font-weight: 600;
  color: var(--text-main);
  outline: none;
  -moz-appearance: textfield;
}

.other-input-wrap input::-webkit-inner-spin-button,
.other-input-wrap input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.other-input-wrap input:focus {
  border-color: var(--bt-blue-dark);
  box-shadow: 0 0 0 3px rgba(66, 123, 184, 0.18);
}

/* ---- Validation error ---- */
.amount-error {
  font-size: 0.82rem;
  font-weight: 600;
  color: #dc3545;
  text-align: left;
  margin-bottom: 6px;
}

/* ---- Payment method buttons ---- */
.method-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.btn-method {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 16px;
  border: 0;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s, transform 0.1s;
}

.btn-method:hover  { opacity: 0.9;  transform: translateY(-1px); }
.btn-method:active { transform: translateY(0); }

.method-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
  color: #fff;
}

.method-label {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.method-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.method-via {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.method-arrow {
  font-size: 1.4rem;
  color: rgba(255,255,255,0.5);
  line-height: 1;
  flex-shrink: 0;
}

.btn-bitcoin { background: #427bb8; }
.btn-paypal  { background: #003087; }
.btn-wise    { background: #9fe870; }
.btn-wise .method-name,
.btn-wise .method-icon { color: #163300; }
.btn-wise .method-via  { color: rgba(22, 51, 0, 0.65); }
.btn-wise .method-arrow { color: rgba(22, 51, 0, 0.4); }

.recommended-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(22, 51, 0, 0.18);
  color: #163300;
  border-radius: 4px;
  padding: 2px 6px;
  line-height: 1.5;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
}

/* ---- Disclaimer ---- */
.donate-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}
