/* ── FastStats · embed.css ──
 * Loaded after style.css when FastStats runs inside the Next.js host app.
 * 1. Undoes the host's Tailwind base styling on <html>/<body>.
 * 2. Styles the freemium locks, Pro pills and upgrade modal.
 */

/* ── 1. Host overrides ── */
body.fs-app {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
}

body.fs-app .fs-root { position: relative; z-index: 1; }

/* Anchors styled as buttons need the same box model as <button class="btn"> */
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  text-decoration: none;
}

/* ── 2. Pro pill ── */
.fs-pro-pill {
  display: inline-block;
  vertical-align: middle;
  margin-left: .4rem;
  padding: .1rem .45rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #ec4899);
}

/* Header plan badge */
.fs-plan-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .28rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border, rgba(148, 163, 184, 0.25));
  color: var(--text-secondary, #94a3b8);
}
.fs-plan-chip .fs-icon { width: 14px; height: 14px; flex: none; }
.fs-plan-chip.is-pro {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #6366f1, #ec4899);
}
.fs-plan-chip.is-free:hover { color: var(--text-primary); border-color: #6366f1; }

/* ── 3. Locked-feature panel ── */
.fs-lock-panel {
  max-width: 640px;
  margin: 2.5rem auto;
  padding: 2rem;
  text-align: center;
  border-radius: 16px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.10), rgba(236, 72, 153, 0.06));
}
.fs-lock-panel h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.fs-lock-icon { color: #818cf8; margin-bottom: .75rem; }
.fs-lock-blurb { color: var(--text-secondary, #94a3b8); margin-bottom: 1rem; }
.fs-lock-list {
  list-style: none;
  text-align: left;
  max-width: 420px;
  margin: 0 auto 1.25rem;
  display: grid;
  gap: .4rem;
}
.fs-lock-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-secondary, #94a3b8);
  font-size: .875rem;
}
.fs-lock-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #34d399;
  font-weight: 700;
}
.fs-lock-actions {
  display: flex;
  gap: .6rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Inline note above a partially-locked section */
.fs-lock-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0;
  padding: .75rem 1rem;
  border-radius: 12px;
  font-size: .85rem;
  color: var(--text-secondary, #94a3b8);
  border: 1px dashed rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.06);
}
.fs-lock-note strong { color: var(--text-primary); }

/* ── 4. Upgrade modal ── */
.fs-upgrade-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(4px);
}
.fs-upgrade-box {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 1.75rem;
  text-align: center;
  border-radius: 16px;
  border: 1px solid rgba(99, 102, 241, 0.4);
  background: var(--bg-elevated, #0f172a);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.fs-upgrade-box h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.fs-upgrade-box p { color: var(--text-secondary, #94a3b8); margin-bottom: .75rem; font-size: .9rem; }
.fs-upgrade-price { font-size: 1rem; color: var(--text-primary) !important; }
.fs-upgrade-close {
  position: absolute;
  top: .5rem;
  right: .75rem;
  background: none;
  border: 0;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-secondary, #94a3b8);
}
.fs-upgrade-close:hover { color: var(--text-primary); }

/* Locked <option>s stay selectable so the upsell can fire, but read as muted */
.form-select option[data-locked="1"] { color: #94a3b8; }
