/* ------------------------------------------------------------------ */
/* Feature interstitial: upgrade prompt (replaces inline style=)       */
/* ------------------------------------------------------------------ */
.feature-interstitial-wrap {
  max-width: 440px;
  margin: 100px auto;
  text-align: center;
  padding: 0 20px;
}
.feature-interstitial-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  color: var(--accent-warm);
}
.feature-interstitial-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text-primary, var(--text-primary));
}
.feature-interstitial-text {
  color: var(--color-text-secondary, var(--text-secondary));
  margin-bottom: 28px;
  line-height: 1.55;
  font-size: 0.92rem;
}
.feature-interstitial-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.feature-interstitial-back {
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--color-text-secondary, var(--text-secondary));
  text-decoration: none;
}
.feature-interstitial-upgrade {
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
}
.feature-teaser {
  position: relative;
  overflow: hidden;
}

.feature-teaser::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to bottom, transparent 0%, var(--card-bg, #fff) 85%);
  pointer-events: none;
  z-index: 1;
}

[data-theme="dark"] .feature-teaser::after {
  background: linear-gradient(to bottom, transparent 0%, var(--card-bg, #1a1a2e) 85%);
}

.feature-teaser__more {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.82rem;
  color: var(--text-secondary, #6b7280);
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 12px;
  transition: color 0.2s ease;
  font-family: inherit;
}

.feature-teaser__more:hover,
.feature-teaser__more:focus-visible {
  color: var(--accent-warm, #b8a07a);
  text-decoration: underline;
}

/* ------------------------------------------------------------------ */
/* Feature prompt modal: soft, centered, benefit-focused              */
/* ------------------------------------------------------------------ */
.feature-prompt-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.feature-prompt-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.feature-prompt {
  background: var(--card-bg, #fff);
  border: 1px solid var(--card-border, #e5e7eb);
  border-radius: 16px;
  padding: 32px 28px 24px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  transform: translateY(12px);
  transition: transform 0.25s ease;
}

.feature-prompt-overlay.is-visible .feature-prompt {
  transform: translateY(0);
}

[data-theme="dark"] .feature-prompt {
  background: var(--card-bg, #1e1e2f);
  border-color: var(--card-border, #2d2d44);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.feature-prompt__icon {
  font-size: 1.6rem;
  color: var(--accent-warm, #b8a07a);
  margin-bottom: 12px;
}

.feature-prompt__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary, #111827);
  margin: 0 0 6px;
  line-height: 1.3;
}

.feature-prompt__desc {
  font-size: 0.88rem;
  color: var(--text-secondary, #6b7280);
  margin: 0 0 20px;
  line-height: 1.5;
}

.feature-prompt__cta {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.feature-prompt__cta:hover {
  opacity: 0.85;
}

.feature-prompt__dismiss {
  display: block;
  margin: 12px auto 0;
  background: none;
  border: none;
  font-size: 0.8rem;
  color: var(--text-tertiary, #9ca3af);
  cursor: pointer;
  padding: 4px 8px;
  font-family: inherit;
}

.feature-prompt__dismiss:hover {
  color: var(--text-secondary, #6b7280);
}

/* ------------------------------------------------------------------ */
/* Legacy: keep .feature-locked for any server-rendered usage          */
/* ------------------------------------------------------------------ */
.feature-locked {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 16px;
  border-radius: 12px;
  background: var(--surface-secondary, #f3f4f6);
  border: 1px dashed var(--border-color, #d1d5db);
  text-align: center;
}

[data-theme="dark"] .feature-locked {
  background: var(--surface-secondary, #1f2937);
  border-color: var(--border-color, #374151);
}

.feature-locked__icon {
  font-size: 1.4rem;
  color: var(--text-tertiary, #9ca3af);
}

.feature-locked__text {
  font-size: 0.85rem;
  color: var(--text-secondary, #6b7280);
}

.feature-locked__cta {
  margin-top: 4px;
  font-size: 0.8rem;
}

/* ------------------------------------------------------------------ */
/* Tier badges                                                        */
/* ------------------------------------------------------------------ */
.tier-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 9999px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
}

.tier-badge--free  { background: var(--color-success); }
.tier-badge--core  { background: var(--color-info); }
.tier-badge--pro   { background: var(--color-premium); }
