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

:root {
  --red: #E63228;
  --pink: #E84C8A;
  --yellow: #F5D623;
  --bg: #0A0A0A;
  --bg-card: #1A1A1A;
  --bg-input: #1A1A1A;
  --text: #FFF8F0;
  --text-muted: #BFB8AE;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Quicksand', 'Nunito', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  padding: 24px 16px 48px;
}

.container {
  width: 100%;
  max-width: 440px;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 32px;
  padding-top: 16px;
}

.logo {
  display: block;
  margin: 0 auto 0.5rem;
  max-width: 280px;
  width: 80%;
  height: auto;
}

.ladc-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 1rem auto 0;
  padding: 0.7rem 1.2rem;
  background: rgba(255, 248, 240, 0.04);
  border: 1px solid rgba(255, 248, 240, 0.08);
  border-radius: 12px;
  max-width: 380px;
}

.logo-ladc {
  width: 48px;
  height: auto;
  flex-shrink: 0;
  border-radius: 8px;
}

.ladc-banner-text { text-align: left; }

.ladc-title {
  font-size: 0.9rem;
  color: #FFF8F0;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.ladc-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 2px 0 0;
}

/* Express Checkout */
#express-checkout-element {
  margin-bottom: 0.5rem;
  min-height: 0;
}

.separator {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 0.75rem 0;
  position: relative;
}

.separator::before,
.separator::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: rgba(255, 248, 240, 0.15);
}

.separator::before { left: 0; }
.separator::after { right: 0; }

/* Card */
.card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 28px 24px;
  border: 1px solid rgba(230, 50, 40, 0.2);
}

.card__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Amount buttons */
.amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.amounts__btn {
  padding: 12px 8px;
  border: 2px solid var(--red);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.amounts__btn:hover {
  background: var(--pink);
  border-color: var(--pink);
  box-shadow: 0 0 12px rgba(232, 76, 138, 0.3);
}

.amounts__btn.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--text);
  box-shadow: 0 0 20px rgba(230, 50, 40, 0.4);
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 16px rgba(230, 50, 40, 0.3); }
  50% { box-shadow: 0 0 24px rgba(230, 50, 40, 0.5); }
}

/* Custom amount input */
.custom-amount {
  position: relative;
  margin-bottom: 20px;
}

.custom-amount__input {
  width: 100%;
  padding: 14px 40px 14px 16px;
  border: 2px solid var(--red);
  border-radius: var(--radius);
  background: var(--bg-input);
  color: var(--text);
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s;
}

.custom-amount__input::placeholder { color: #665e55; }
.custom-amount__input:focus { border-color: var(--yellow); }

.custom-amount__currency {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  pointer-events: none;
}

/* Payment Element container */
#payment-element {
  margin-bottom: 20px;
  min-height: 40px;
}

.pe-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.pe-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(230, 50, 40, 0.2);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* Donate button */
.donate-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--red), var(--pink));
  color: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 20px rgba(230, 50, 40, 0.3);
}

.donate-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232, 76, 138, 0.5);
}

.donate-btn:active:not(:disabled) { transform: translateY(0); }
.donate-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.donate-btn__text { transition: opacity 0.2s; }
.donate-btn--loading .donate-btn__text { opacity: 0; }

.donate-btn__spinner {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.donate-btn--loading .donate-btn__spinner { display: block; }

@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* Error message */
.error-msg {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(232, 76, 138, 0.1);
  border: 1px solid rgba(232, 76, 138, 0.3);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pink);
  display: none;
}

.error-msg.visible { display: block; animation: shake 0.4s ease; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* Info */
.info {
  margin-top: 20px;
  padding: 14px;
  background: rgba(230, 50, 40, 0.05);
  border: 1px solid rgba(230, 50, 40, 0.12);
  border-radius: var(--radius);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer__secure {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 360px) {
  .header__title { font-size: 1.3rem; }
  .amounts { grid-template-columns: repeat(2, 1fr); }
  .card { padding: 22px 16px; }
}
