/* Ad slots are invisible until an ad is actually live: zero layout impact when ads are off. */
.ad-slot { display: none; }
.ad-slot.ad-live {
  display: block;
  margin: 18px 0;
  padding: 8px;
  min-height: 100px;
  border-radius: 14px;
  background: var(--card-bg, rgba(127, 127, 127, .06));
  text-align: center;
  overflow: hidden;
}
.ad-slot .ad-label {
  display: block;
  font-size: 10px;
  opacity: .55;
  margin-bottom: 4px;
}

/* Footer */
.site-footer {
  margin: 28px 0 8px;
  padding: 14px 8px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted, #6b6b80);
  border-top: 1px solid rgba(127, 127, 127, .18);
}
.site-footer a, .site-footer button.footer-link {
  color: inherit;
  text-decoration: underline;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  margin: 0 6px;
}
.site-footer .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; }
.site-footer .support-btn, .site-footer .install-btn {
  display: inline-block;
  margin: 8px 4px 0;
  padding: 8px 16px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  background: var(--primary, #6c4cf0);
  color: #fff;
}
.site-footer [hidden] { display: none !important; }

/* Consent banner */
.consent-banner {
  position: fixed;
  inset-inline: 12px;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  z-index: 9999;
  max-width: 560px;
  margin-inline: auto;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--card-bg, #fff);
  color: var(--text-primary, #1d1d2b);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .22);
  border: 1px solid rgba(127, 127, 127, .25);
  font-size: 13px;
  line-height: 1.7;
}
.consent-banner p { margin: 0 0 10px; }
.consent-banner a { color: inherit; text-decoration: underline; }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; }
.consent-btn {
  min-width: 84px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid rgba(127, 127, 127, .4);
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
