/* ChainReach extras — cookie consent (EU/GDPR) + floating crypto-donation + lead image.
   Plain CSS, enqueued separately so it needs no Tailwind rebuild. */

/* ---------- Lead image auto-inserted into the first paragraph ---------- */
.crx-lead-img {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  margin: 1.75rem auto;
  border-radius: 1rem;
  box-shadow: 0 14px 34px rgba(15, 18, 30, 0.12);
}

/* ---------- EU / GDPR cookie consent banner ---------- */
.crx-cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  justify-content: center;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  pointer-events: none;
}
.crx-cookie__inner {
  pointer-events: auto;
  width: 100%;
  max-width: 1080px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #0b0d17;
  color: #e7e9f2;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
@media (min-width: 880px) {
  .crx-cookie__inner {
    flex-direction: row;
    align-items: center;
    gap: 18px;
  }
}
.crx-cookie__text {
  flex: 1;
  font-size: 13px;
  line-height: 1.5;
  color: #c7cbe0;
}
.crx-cookie__text strong { color: #fff; }
.crx-cookie__text a {
  color: #5ce0b0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.crx-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.crx-cookie__btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 10px;
  transition: transform 0.12s ease, background 0.12s ease, opacity 0.12s ease;
}
.crx-cookie__btn:active { transform: translateY(1px); }
.crx-cookie__btn--accept { background: #25d366; color: #04130a; }
.crx-cookie__btn--reject { background: rgba(255, 255, 255, 0.10); color: #e7e9f2; }
.crx-cookie__btn--manage {
  background: transparent;
  color: #9aa0bd;
  text-decoration: underline;
}
.crx-cookie--hidden { display: none !important; }

/* ---------- Floating crypto donation button ---------- */
.crx-donate {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.crx-donate:hover,
.crx-donate:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 16px 34px rgba(239, 68, 68, 0.55);
  color: #fff;
  outline: none;
}
.crx-donate svg { width: 28px; height: 28px; }

/* When the cookie banner is open, lift floating elements so they don't overlap. */
body.crx-cookie-open .crx-donate { bottom: 116px; }
@media (max-width: 879px) {
  body.crx-cookie-open .crx-donate { bottom: 150px; }
}
body.crx-donate-open { overflow: hidden; }

/* ---------- Donation modal ---------- */
.crx-donate-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.crx-donate-modal--hidden { display: none !important; }
.crx-donate-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 20, 0.55);
  backdrop-filter: blur(2px);
}
.crx-donate-modal__card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: #fff;
  color: #1a1d29;
  border-radius: 20px;
  padding: 24px 22px 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  animation: crx-donate-pop 0.18s ease-out;
}
@keyframes crx-donate-pop {
  from { transform: translateY(8px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.crx-donate-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: #9aa0bd;
  cursor: pointer;
}
.crx-donate-modal__close:hover { color: #1a1d29; }
.crx-donate-modal__title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.crx-donate-modal__sub {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.55;
  color: #5b6178;
}
.crx-donate-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.crx-donate-amt {
  appearance: none;
  border: 1.5px solid #e3e6f0;
  background: #f7f8fc;
  color: #1a1d29;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 0;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.crx-donate-amt:hover { border-color: #f59e0b; }
.crx-donate-amt.is-active {
  border-color: #ef4444;
  background: #fff1f0;
  color: #ef4444;
}
.crx-donate-custom {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid #e3e6f0;
  border-radius: 12px;
  padding: 0 12px;
  margin-bottom: 16px;
}
.crx-donate-custom:focus-within { border-color: #ef4444; }
.crx-donate-custom__prefix { font-size: 16px; font-weight: 700; color: #9aa0bd; }
.crx-donate-custom__input {
  flex: 1;
  border: 0;
  outline: none;
  font-size: 15px;
  padding: 12px 0;
  background: transparent;
  color: #1a1d29;
}
.crx-donate-submit {
  width: 100%;
  appearance: none;
  border: 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  padding: 14px 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  transition: opacity 0.12s ease, transform 0.12s ease;
}
.crx-donate-submit:hover { transform: translateY(-1px); }
.crx-donate-submit:disabled { opacity: 0.6; cursor: default; transform: none; }
.crx-donate-note {
  margin: 12px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: #9aa0bd;
  text-align: center;
}

/* ---------- Thank-you toast ---------- */
.crx-donate-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  z-index: 90;
  max-width: calc(100vw - 32px);
  background: #0b0d17;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.crx-donate-toast--show {
  opacity: 1;
  transform: translate(-50%, 0);
}
