/* ─────────────────────────────────────────────────────────────────────────
   Tier-Gating — einheitliche, professionelle Behandlung gesperrter UI
   Wird über alle Tiers (Starter/Creator/IRL Pro/IRL Pro+) konsistent angewendet
───────────────────────────────────────────────────────────────────────── */

/* ── Sidebar Nav-Items + Sub-Tabs (role="tab") ─────────────────────────── */
.nav-item.tier-locked {
  position: relative;
  opacity: 0.62;
  cursor: pointer;
  padding-right: 38px;
  transition: opacity 0.18s ease, background 0.18s ease, color 0.18s ease;
}
[role="tab"].tier-locked {
  position: relative;
  opacity: 0.62;
  cursor: pointer;
  transition: opacity 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.nav-item.tier-locked:hover,
[role="tab"].tier-locked:hover {
  opacity: 0.92;
  background: rgba(167, 139, 250, 0.06);
}
.nav-item.tier-locked.active,
[role="tab"].tier-locked.active {
  opacity: 1;
}

/* Lock-Indikator: SVG-Schloss + Tier-Pill, per JS injiziert als .nav-lock-pill */
.nav-lock-pill {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted, #9ca3af);
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
  line-height: 1;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.nav-item.tier-locked:hover .nav-lock-pill {
  background: rgba(167, 139, 250, 0.12);
  color: #a78bfa;
  border-color: rgba(167, 139, 250, 0.3);
}
.nav-lock-pill svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Sub-Tabs (role="tab") brauchen kompaktere Pill, inline */
[role="tab"].tier-locked .nav-lock-pill {
  position: static;
  transform: none;
  margin-left: 6px;
  vertical-align: middle;
  width: 18px;
  height: 18px;
}
[role="tab"].tier-locked .nav-lock-pill svg {
  width: 10px;
  height: 10px;
}

/* ── Card-Locks (data-min-package auf <div class="card">) ──────────────── */
.tier-card-locked {
  position: relative;
  opacity: 0.55;
  pointer-events: none;
  filter: saturate(0.7);
}
.tier-card-locked::after {
  content: "🔒  " attr(data-min-tier-label);
  position: absolute;
  top: 10px;
  right: 12px;
  background: var(--bg-2, #1a1424);
  color: var(--accent, #a78bfa);
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  pointer-events: auto;
  border: 1px solid rgba(167, 139, 250, 0.32);
  z-index: 1;
}

/* ── Upgrade-Inline-View (statt Popup-Modal) ─────────────────────────── */
.upgrade-view {
  max-width: 520px;
  margin: 60px auto 80px;
  padding: 36px 32px 32px;
  background: var(--color-surface, rgba(255,255,255,0.02));
  border: 1px solid var(--color-border, rgba(255,255,255,0.08));
  border-radius: 18px;
  text-align: left;
  animation: upgradeViewRise 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.upgrade-view-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.upgrade-view-tier-badge[data-tier="creator"] {
  background: rgba(59, 130, 246, 0.14);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.32);
}
.upgrade-view-tier-badge[data-tier="irl_pro"] {
  background: rgba(251, 191, 36, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.32);
}
.upgrade-view-tier-badge[data-tier="irl_pro_plus"] {
  background: rgba(244, 114, 182, 0.14);
  color: #f472b6;
  border: 1px solid rgba(244, 114, 182, 0.32);
}
.upgrade-view-tier-badge svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.4;
}
.upgrade-view-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--color-text, #fff);
}
.upgrade-view-subtitle {
  font-size: 14.5px;
  color: var(--color-text-muted, #9ca3af);
  margin: 0 0 22px;
  line-height: 1.55;
}
.upgrade-view-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.upgrade-view-features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--color-text, #e5e7eb);
  line-height: 1.5;
}
.upgrade-view-features li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: #34d399;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 2px;
}
.upgrade-view-price {
  padding: 14px 16px;
  background: rgba(167, 139, 250, 0.06);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 12px;
  font-size: 13.5px;
  color: var(--color-text-muted, #9ca3af);
  margin-bottom: 22px;
  text-align: center;
}
.upgrade-view-price strong {
  color: var(--color-text, #fff);
  font-size: 19px;
  font-weight: 800;
}
.upgrade-view-actions {
  display: flex;
  gap: 10px;
}
.upgrade-view-actions .btn {
  flex: 1;
}

@keyframes upgradeViewRise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 540px) {
  .upgrade-view { margin: 30px auto 60px; padding: 28px 22px 24px; border-radius: 14px; }
  .upgrade-view-title { font-size: 21px; }
  .upgrade-view-actions { flex-direction: column; }
}

/* Scene-Editor Watermark-Hint (Pill erscheint bei Hover) — bestehender Selektor */
.se-watermark-fixed:hover .se-watermark-hint {
  opacity: 1 !important;
}
