.chq-kofi-link {
  display: inline-block;
  line-height: 0;
  border-radius: 999px;
  overflow: hidden;
}
.chq-kofi-link img {
  display: block;
  height: auto;
  max-width: 240px;
  width: 100%;
}
.chq-kofi-corner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}
@media (max-width: 720px) {
  .chq-kofi-corner {
    right: 12px;
    bottom: 4.75rem;
  }
  .chq-kofi-corner img { max-width: 188px; }
}
.chq-kofi-chat {
  position: fixed;
  left: 50%;
  bottom: 9.25rem;
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(420px, calc(100vw - 28px));
  padding: 10px 10px 10px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, #1a1a1f 92%, #fff 8%);
  border: 1px solid color-mix(in srgb, #fff 10%, transparent);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.38);
  animation: chqKofiIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes chqKofiIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.chq-kofi-copy {
  margin: 0;
  flex: 1;
  min-width: 0;
  font: 500 13px/1.35 Inter, system-ui, sans-serif;
  color: #e8e8ed;
}
.chq-kofi-chat a.chq-kofi-text {
  color: #e8e8ed;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.chq-kofi-chat a.chq-kofi-text:hover { color: #fff; }
.chq-kofi-x {
  appearance: none;
  border: 0;
  background: transparent;
  color: #8b8b9a;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font: 600 16px/1 system-ui, sans-serif;
  cursor: pointer;
  flex: 0 0 auto;
}
.chq-kofi-x:hover { background: color-mix(in srgb, #fff 8%, transparent); color: #f2f2f5; }
@media (max-width: 720px) {
  .chq-kofi-chat { bottom: 10rem; }
}
.chq-kofi-page {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  background: #0a0a0c;
  color: #f2f2f5;
  font-family: Inter, system-ui, sans-serif;
  padding: 24px;
  text-align: center;
}
.chq-kofi-page h1 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 8px;
}
.chq-kofi-page p {
  color: #8b8b9a;
  margin: 0 0 28px;
  max-width: 28rem;
}
.chq-kofi-page .chq-kofi-link img { max-width: 320px; }
.chq-kofi-page .back {
  margin-top: 28px;
  color: #8b8b9a;
}
.chq-kofi-page .back a { color: #e8e8ed; }


/* Fathom Pro on-page Ko-fi checkout */
.fp-checkout { padding: 1.15rem 1.2rem 1.25rem; }
.fp-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 900px) {
  .fp-checkout-grid { grid-template-columns: 1fr; }
}
.fp-label {
  display: block;
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.fp-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0b0b10;
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  margin-bottom: 10px;
  box-sizing: border-box;
}
.fp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.fp-status {
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.45;
  min-height: 1.2em;
  margin: 0;
}
.fp-claim {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--green, #6ee7a8) 35%, var(--border));
  background: color-mix(in srgb, #0b0b10 88%, #14301f 12%);
}
.fp-claim-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: .85rem;
}
.fp-claim-code {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0b0b10;
  color: var(--green, #6ee7a8);
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-all;
}
.fp-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.45;
}
.fp-app-steps { margin-top: 1.25rem; }
.fp-app-steps h3 { margin-bottom: .5rem; }
.fp-pay-head h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.fp-secured {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #72a4f2;
  background: color-mix(in srgb, #72a4f2 14%, transparent);
  border: 1px solid color-mix(in srgb, #72a4f2 35%, transparent);
  border-radius: 999px;
  padding: 3px 8px;
}
.fp-kofi-panel {
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #f9f9f9;
  overflow: hidden;
  min-height: 280px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}
.fp-kofi-placeholder {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 24px;
  text-align: center;
  color: #555;
  font-size: .9rem;
  line-height: 1.5;
  background: linear-gradient(180deg, #f4f4f6, #ececf1);
}
.fp-kofi-placeholder p { max-width: 22rem; margin: 0; }
.fp-kofi-ready {
  padding: 28px 22px 24px;
  text-align: center;
  color: #222;
  background: linear-gradient(180deg, #ffffff, #f3f3f7);
}
.fp-kofi-ready-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #0a6ebd;
  background: color-mix(in srgb, #00b9fe 16%, #fff);
  border: 1px solid color-mix(in srgb, #00b9fe 40%, #ccd);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 12px;
}
.fp-kofi-ready-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 650;
  color: #111;
}
.fp-kofi-ready-copy {
  margin: 0 auto 18px;
  max-width: 26rem;
  color: #555;
  font-size: .88rem;
  line-height: 1.5;
}
.fp-kofi-ready-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 10px;
}
.fp-kofi-ready-note { color: #666 !important; }
.fp-kofi-overlay-host {
  position: relative;
  min-height: 0;
  margin-top: 8px;
}
.fp-pay-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
