.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; }
