/* Firmament Giving Gateway — Donation Card Styles */

.fgg-card {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 32px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1a1714;
}

.fgg-heading {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 20px;
}

/* ── Steps ─────────────────────────────────────────────────────────────── */
.fgg-step--hidden { display: none !important; }

/* ── Coin grid ─────────────────────────────────────────────────────────── */
.fgg-coin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.fgg-coin-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 14px 8px;
  border: 2px solid #e5e0d8;
  border-radius: 10px;
  background: #faf8f5;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.fgg-coin-btn:hover {
  border-color: #8b6a3e;
  background: #fff8f0;
  box-shadow: 0 2px 8px rgba(139, 106, 62, 0.12);
}

.fgg-coin-btn--featured {
  border-color: #8b6a3e;
  background: #fff8f0;
  box-shadow: 0 2px 12px rgba(139, 106, 62, 0.18);
}

.fgg-coin-symbol {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.fgg-coin-name {
  font-size: 11px;
  color: #7a7060;
}

.fgg-featured-badge {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: #8b6a3e;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ── Back button ───────────────────────────────────────────────────────── */
.fgg-back-btn {
  background: none;
  border: none;
  color: #8b6a3e;
  cursor: pointer;
  font-size: 13px;
  padding: 0;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.fgg-back-btn:hover { text-decoration: underline; }

/* ── Coin selected label ────────────────────────────────────────────────── */
.fgg-coin-selected-label {
  font-size: 13px;
  color: #7a7060;
  margin-bottom: 16px;
}

/* ── Amount presets ────────────────────────────────────────────────────── */
.fgg-amount-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.fgg-preset-btn {
  padding: 8px 16px;
  border: 2px solid #e5e0d8;
  border-radius: 8px;
  background: #faf8f5;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s;
}

.fgg-preset-btn:hover,
.fgg-preset-btn--active {
  border-color: #8b6a3e;
  background: #fff8f0;
}

/* ── Inputs ────────────────────────────────────────────────────────────── */
.fgg-input {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #e5e0d8;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: #1a1714;
  background: #fff;
  box-sizing: border-box;
  margin-bottom: 12px;
  transition: border-color 0.15s;
}

.fgg-input:focus {
  outline: none;
  border-color: #8b6a3e;
  box-shadow: 0 0 0 3px rgba(139, 106, 62, 0.10);
}

.fgg-textarea { resize: vertical; min-height: 60px; }

label {
  display: block;
  font-size: 13px;
  color: #7a7060;
  margin-bottom: 5px;
}

.fgg-amount-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.fgg-currency-prefix {
  position: absolute;
  left: 12px;
  font-size: 14px;
  color: #7a7060;
  pointer-events: none;
}

.fgg-amount-input-wrap .fgg-input { padding-left: 40px; }

.fgg-donor-fields { margin-top: 16px; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.fgg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, background 0.15s;
}

.fgg-btn--primary {
  width: 100%;
  background: #1a1714;
  color: #f0ead8;
  margin-top: 4px;
}

.fgg-btn--primary:hover:not(:disabled) { background: #2d2924; }
.fgg-btn--primary:disabled { opacity: 0.4; cursor: not-allowed; }

.fgg-btn--secondary {
  background: #f0ead8;
  color: #1a1714;
  border: 1.5px solid #c8c0b0;
}

.fgg-btn--secondary:hover { background: #e8e0cc; }

.fgg-error-msg {
  color: #c0392b;
  font-size: 13px;
  margin-top: 8px;
}

/* ── Payment screen ────────────────────────────────────────────────────── */
.fgg-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 20px;
  background: #f5f0e8;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.fgg-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fgg-status-dot--pending   { background: #e8a03c; animation: fgg-pulse 1.5s infinite; }
.fgg-status-dot--confirming { background: #f39c12; animation: fgg-pulse 1.2s infinite; }
.fgg-status-dot--success   { background: #27ae60; }
.fgg-status-dot--error     { background: #e74c3c; }

@keyframes fgg-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.fgg-qr-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

#fgg-qr-canvas {
  border: 1px solid #e5e0d8;
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}

.fgg-pay-detail {
  background: #f9f7f4;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

.fgg-pay-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #ede9e0;
  font-size: 14px;
}

.fgg-pay-row:last-child { border-bottom: none; }

.fgg-pay-label { color: #7a7060; flex-shrink: 0; padding-top: 2px; }

.fgg-pay-value {
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: right;
  word-break: break-all;
  flex: 1;
  justify-content: flex-end;
}

.fgg-address {
  font-size: 11px;
  word-break: break-all;
  background: #ede9e0;
  padding: 2px 6px;
  border-radius: 4px;
}

.fgg-copy-btn {
  background: none;
  border: 1px solid #d5cfc5;
  border-radius: 4px;
  padding: 3px 6px;
  cursor: pointer;
  font-size: 12px;
  color: #7a7060;
  flex-shrink: 0;
  transition: background 0.1s, color 0.1s;
}

.fgg-copy-btn:hover,
.fgg-copy-btn--copied {
  background: #8b6a3e;
  color: #fff;
  border-color: #8b6a3e;
}

.fgg-expiry-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #7a7060;
  margin-bottom: 16px;
}

.fgg-countdown {
  font-weight: 700;
  color: #1a1714;
  font-variant-numeric: tabular-nums;
}

.fgg-countdown--urgent { color: #e74c3c; }

.fgg-already-sent-msg {
  font-size: 12px;
  color: #9a9080;
  border-top: 1px solid #ede9e0;
  padding-top: 14px;
  margin-top: 16px;
  line-height: 1.5;
}

/* ── Confirmation ──────────────────────────────────────────────────────── */
.fgg-confirmed {
  text-align: center;
  padding: 20px 0;
}

.fgg-confirmed-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #27ae60;
  color: #fff;
  font-size: 26px;
  margin-bottom: 16px;
}

/* ── Admin status badges ───────────────────────────────────────────────── */
.fgg-status {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.fgg-status--success  { background: #d4edda; color: #155724; }
.fgg-status--pending  { background: #fff3cd; color: #856404; }
.fgg-status--warn     { background: #fde3a7; color: #7a4e0e; }
.fgg-status--danger   { background: #f8d7da; color: #721c24; }
