/* ============================================================
   CrossKit Upsell modal — soft daily quota nudge for free users
   Triggered client-side when a tool's daily run count reaches the
   free limit (mirrors config.FREE_DAILY_LIMIT = 10). Non-blocking:
   it never stops a run, it only nudges toward Pro.
   ============================================================ */

.ck-upsell {
  position: fixed; inset: 0; z-index: 9990;
  display: none; align-items: center; justify-content: center;
}
.ck-upsell.show { display: flex; }

.ck-upsell-backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}

.ck-upsell-card {
  position: relative; width: min(420px, calc(100vw - 32px));
  background: #fff; border-radius: 18px; padding: 34px 30px 28px;
  box-shadow: 0 24px 60px -20px rgba(15, 23, 42, 0.45);
  text-align: center; animation: ck-upsell-in .25s ease;
}
@keyframes ck-upsell-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

.ck-upsell-close {
  position: absolute; top: 12px; right: 14px;
  width: 32px; height: 32px; border: none; background: transparent;
  font-size: 22px; line-height: 1; color: #94a3b8; cursor: pointer; border-radius: 8px;
}
.ck-upsell-close:hover { background: #f1f5f9; color: #475569; }

.ck-upsell-icon {
  width: 56px; height: 56px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--brand, #4f46e5);
  color: #fff; font-size: 22px;
}

.ck-upsell-title { font-size: 1.25rem; font-weight: 800; color: #1e293b; margin: 0 0 10px; }
.ck-upsell-body { font-size: .95rem; color: #64748b; line-height: 1.6; margin: 0 0 20px; }

.ck-upsell-cta {
  display: block; width: 100%; padding: 13px; border-radius: 10px;
  font-weight: 700; text-decoration: none; margin-bottom: 10px;
}

.ck-upsell-dismiss {
  border: none; background: transparent; color: #94a3b8;
  font-size: .85rem; cursor: pointer; padding: 6px;
}
.ck-upsell-dismiss:hover { color: #64748b; text-decoration: underline; }

@media (max-width: 768px) {
  .ck-upsell-card { padding: 28px 20px 22px; }
}
