/* =============================================================================
   Support Vestra Coda — Donate Page Styles
   Revamped: three product cards + supporters wall
   ============================================================================= */

/* ---------------------------------------------------------------------------
   Main Container
   --------------------------------------------------------------------------- */

.donate {
  padding: 40px 0 80px;
}

.donate__intro {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------------------------------------------------------------------------
   Product Cards Grid — 3 columns on desktop, stacks on mobile
   --------------------------------------------------------------------------- */

.donate__products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
/* ---------------------------------------------------------------------------
   Individual Product Card
   --------------------------------------------------------------------------- */

.donate__product-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.donate__product-card:hover {
  border-color: rgba(200, 162, 78, 0.3);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

/* Card variants — subtle top accent borders */
.donate__product-card--alpha   { border-top: 3px solid #a96bd6; }
.donate__product-card--presale { border-top: 3px solid #5ba0d9; }
.donate__product-card--donate  { border-top: 3px solid var(--gold); }
/* ---------------------------------------------------------------------------
   Badge (SUBSCRIPTION / PRE-ORDER / ONE-TIME)
   --------------------------------------------------------------------------- */

.donate__badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
  width: fit-content;
}

.donate__product-card--alpha .donate__badge {
  background: rgba(169, 107, 214, 0.15);
  color: #a96bd6;
}

.donate__product-card--presale .donate__badge {
  background: rgba(91, 160, 217, 0.15);
  color: #5ba0d9;
}

.donate__product-card--donate .donate__badge {
  background: rgba(200, 162, 78, 0.15);
  color: var(--gold);
}
/* ---------------------------------------------------------------------------
   Card Title
   --------------------------------------------------------------------------- */

.donate__product-title {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

/* ---------------------------------------------------------------------------
   Price Display
   --------------------------------------------------------------------------- */

.donate__price {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.donate__price-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
/* ---------------------------------------------------------------------------
   Description
   --------------------------------------------------------------------------- */

.donate__product-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

/* ---------------------------------------------------------------------------
   Benefits List
   --------------------------------------------------------------------------- */

.donate__benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1; /* push button to bottom */
}

.donate__benefits li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.donate__benefits li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: #4fc77a;
  font-weight: 700;
}
/* ---------------------------------------------------------------------------
   Alpha Subscription Form
   --------------------------------------------------------------------------- */

.donate__alpha-form {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.donate__alpha-form label {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.donate__alpha-input-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.donate__alpha-input-wrap .donate__currency-prefix {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
}
.donate__alpha-input-wrap input {
  width: 70px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 8px 10px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  -moz-appearance: textfield;
}

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

.donate__alpha-input-wrap input:focus {
  border-color: #a96bd6;
  box-shadow: 0 0 0 2px rgba(169, 107, 214, 0.2);
}
/* ---------------------------------------------------------------------------
   Donate Tier Buttons (in the donation card)
   --------------------------------------------------------------------------- */

.donate__tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.donate__tier {
  padding: 14px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.donate__tier:hover {
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(200, 162, 78, 0.1);
}

.donate__tier.is-active {
  background: rgba(200, 162, 78, 0.1);
  border-color: var(--gold);
  color: var(--gold-light);
}
/* ---------------------------------------------------------------------------
   Custom Donate Amount Form
   --------------------------------------------------------------------------- */

.donate__custom {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}

.donate__custom-prefix {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
}

.donate__custom input[type="number"] {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 10px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  -moz-appearance: textfield;
}

.donate__custom input::-webkit-inner-spin-button,
.donate__custom input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.donate__custom input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(200, 162, 78, 0.15);
}
/* ---------------------------------------------------------------------------
   Owned State (presale card) & Active Alpha State
   --------------------------------------------------------------------------- */

.donate__owned {
  padding: 12px 16px;
  background: rgba(79, 199, 122, 0.08);
  border: 1px solid rgba(79, 199, 122, 0.2);
  border-radius: 8px;
  color: #4fc77a;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}

.donate__alpha-active {
  padding: 12px 16px;
  background: rgba(169, 107, 214, 0.08);
  border: 1px solid rgba(169, 107, 214, 0.2);
  border-radius: 8px;
  color: #a96bd6;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 12px;
}
/* ---------------------------------------------------------------------------
   Fine Print & Status Messages
   --------------------------------------------------------------------------- */

.donate__fine-print {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 8px;
  line-height: 1.5;
}

.donate__status {
  max-width: 720px;
  margin: 0 auto 24px;
  padding: 14px 20px;
  border-radius: 10px;
  text-align: center;
  font-size: 0.9rem;
  display: none;
}

.donate__status.is-visible {
  display: block;
}

.donate__status--success {
  background: rgba(79, 199, 122, 0.1);
  border: 1px solid rgba(79, 199, 122, 0.25);
  color: #4fc77a;
}

.donate__status--error {
  background: rgba(196, 30, 58, 0.1);
  border: 1px solid rgba(196, 30, 58, 0.25);
  color: #e05555;
}
/* ---------------------------------------------------------------------------
   Supporters Wall
   --------------------------------------------------------------------------- */

.donate__supporters {
  max-width: 720px;
  margin: 0 auto;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.donate__supporters h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--gold);
  margin: 0 0 20px;
  text-align: center;
}

.donate__supporters-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.donate__supporter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(200, 162, 78, 0.08);
  border: 1px solid rgba(200, 162, 78, 0.15);
  color: var(--text);
  font-size: 0.8rem;
}

.donate__supporter-amount {
  color: var(--gold);
  font-weight: 600;
}
/* ---------------------------------------------------------------------------
   Accepted Payment Methods Strip
   --------------------------------------------------------------------------- */

.donate__payment-methods {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.donate__payment-methods-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.donate__payment-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.donate__payment-icon {
  width: 52px;
  height: 33px;
  border-radius: 6px;
  overflow: hidden;
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.2s;
}

.donate__payment-icon:hover {
  opacity: 1;
  transform: scale(1.08);
}

.donate__payment-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------------------------------------------------------------------------
   Philosophy Note
   --------------------------------------------------------------------------- */

.donate__note {
  max-width: 720px;
  margin: 40px auto 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.6;
}

.donate__note a {
  color: var(--gold);
}

/* ---------------------------------------------------------------------------
   Claim Code Banner & Code Sections
   --------------------------------------------------------------------------- */

.donate__claim-banner {
  max-width: 720px;
  margin: 0 auto 40px;
  padding: 28px 32px;
  background: rgba(200, 162, 78, 0.06);
  border: 1px solid rgba(200, 162, 78, 0.2);
  border-radius: 12px;
  text-align: center;
}

.donate__claim-banner h3 {
  font-family: var(--font-display, 'Cinzel', serif);
  font-size: 1.3rem;
  color: var(--gold);
  margin: 0 0 12px;
}

.donate__claim-banner p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 16px;
}

.donate__claim-code-display {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: var(--surface-card, #12121f);
  border: 2px solid var(--gold);
  border-radius: 8px;
  margin-bottom: 12px;
}

.donate__claim-code-display code {
  font-family: 'Courier New', monospace;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.15em;
}

.donate__claim-copy {
  padding: 6px 14px;
  background: rgba(200, 162, 78, 0.15);
  border: 1px solid rgba(200, 162, 78, 0.3);
  border-radius: 6px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.donate__claim-copy:hover {
  background: rgba(200, 162, 78, 0.25);
}

.donate__claim-hint {
  font-size: 0.78rem !important;
  color: var(--text-dim) !important;
}

.donate__code-section {
  max-width: 720px;
  margin: 0 auto 32px;
  padding: 24px 28px;
  background: var(--surface-card, #12121f);
  border: 1px solid var(--border, #1a1a2d);
  border-radius: 12px;
}

.donate__code-section h2 {
  font-family: var(--font-display, 'Cinzel', serif);
  font-size: 1.1rem;
  color: var(--text);
  margin: 0 0 8px;
}

.donate__code-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.donate__code-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.donate__code-form input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border, #1a1a2d);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.08em;
  outline: none;
  transition: border-color 0.2s;
}

.donate__code-form input:focus {
  border-color: var(--gold);
}

.donate__code-form input::placeholder {
  color: var(--text-dim);
  font-family: inherit;
  letter-spacing: 0.08em;
}

/* ---------------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .donate__products {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 600px) {
  .donate__tiers {
    grid-template-columns: repeat(2, 1fr);
  }

  .donate__custom {
    flex-direction: column;
  }

  .donate__alpha-form {
    flex-direction: column;
    align-items: stretch;
  }
}