/* Fogment extras — cookie consent (EU/GDPR) + floating crypto-donation + lead image.
   Plain CSS, enqueued separately so it needs no Tailwind rebuild.
   v1.0 已按 Cyber-Glass 暗色皮肤重做（类名与行为不变，只换配色）。 */

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

/* ---------- EU / GDPR cookie consent banner ---------- */
.fog-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;
}
.fog-cookie__inner {
  pointer-events: auto;
  width: 100%;
  max-width: 1080px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #121722;
  color: #e7e9f2;
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
}
@media (min-width: 880px) {
  .fog-cookie__inner {
    flex-direction: row;
    align-items: center;
    gap: 18px;
  }
}
.fog-cookie__text {
  flex: 1;
  font-size: 13px;
  line-height: 1.5;
  color: #9CA3AF;
}
.fog-cookie__text strong { color: #F3F4F6; }
.fog-cookie__text a {
  color: #00F0FF;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.fog-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.fog-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;
}
.fog-cookie__btn:active { transform: translateY(1px); }
.fog-cookie__btn--accept {
  background: linear-gradient(100deg, #00E676, #26C6A2);
  color: #04130a;
}
.fog-cookie__btn--reject { background: rgba(255, 255, 255, 0.10); color: #e7e9f2; }
.fog-cookie__btn--manage {
  background: transparent;
  color: #9CA3AF;
  text-decoration: underline;
}
.fog-cookie--hidden { display: none !important; }

/* ---------- Floating crypto donation button ---------- */
.fog-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;
}
.fog-donate:hover,
.fog-donate:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 16px 34px rgba(239, 68, 68, 0.55);
  color: #fff;
  outline: none;
}
.fog-donate svg { width: 28px; height: 28px; }

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

/* ---------- Donation modal ---------- */
.fog-donate-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.fog-donate-modal--hidden { display: none !important; }
.fog-donate-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 11, 0.72);
  backdrop-filter: blur(3px);
}
.fog-donate-modal__card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: #121722;
  color: #F3F4F6;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  padding: 24px 22px 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  animation: fog-donate-pop 0.18s ease-out;
}
@keyframes fog-donate-pop {
  from { transform: translateY(8px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.fog-donate-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: #6B7280;
  cursor: pointer;
}
.fog-donate-modal__close:hover { color: #F3F4F6; }
.fog-donate-modal__title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.fog-donate-modal__sub {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.55;
  color: #9CA3AF;
}
.fog-donate-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.fog-donate-amt {
  appearance: none;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: #1A2130;
  color: #F3F4F6;
  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;
}
.fog-donate-amt:hover { border-color: #00F0FF; }
.fog-donate-amt.is-active {
  border-color: #00F0FF;
  background: rgba(0, 240, 255, 0.12);
  color: #00F0FF;
}
.fog-donate-custom {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: #1A2130;
  border-radius: 12px;
  padding: 0 12px;
  margin-bottom: 16px;
}
.fog-donate-custom:focus-within { border-color: #00F0FF; }
.fog-donate-custom__prefix { font-size: 16px; font-weight: 700; color: #6B7280; }
.fog-donate-custom__input {
  flex: 1;
  border: 0;
  outline: none;
  font-size: 15px;
  padding: 12px 0;
  background: transparent;
  color: #F3F4F6;
}
.fog-donate-submit {
  width: 100%;
  appearance: none;
  border: 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  color: #04130a;
  padding: 14px 0;
  border-radius: 12px;
  background: linear-gradient(100deg, #00F0FF, #7000FF);
  color: #fff;
  transition: opacity 0.12s ease, transform 0.12s ease;
}
.fog-donate-submit:hover { transform: translateY(-1px); }
.fog-donate-submit:disabled { opacity: 0.6; cursor: default; transform: none; }
.fog-donate-note {
  margin: 12px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: #6B7280;
  text-align: center;
}

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

/* Logo: 256px source, displayed at 36px to match nav height & align with brand text */
.custom-logo{display:block;height:2.25rem;width:auto}
.custom-logo-link{display:inline-flex;align-items:center;line-height:0}
