/* ── Feature slide-over panel (Pro / Enterprise / activation gates) ── */

.feature-slide-backdrop {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  justify-content: flex-end;
  background: rgba(2, 6, 15, 0.52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.2, 0.7, 0.2, 1),
    visibility 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
}

:root[data-theme="light"] .feature-slide-backdrop {
  background: rgba(15, 23, 42, 0.32);
}

.feature-slide-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.feature-slide {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface-solid);
  border-left: 1px solid var(--border-strong);
  box-shadow: -20px 0 48px -12px rgba(0, 0, 0, 0.38);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}

:root[data-theme="dark"] .feature-slide {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.99) 0%, rgba(8, 16, 28, 0.99) 100%);
}

.feature-slide-backdrop.open .feature-slide {
  transform: translateX(0);
}

.feature-slide-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.feature-slide-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 6px;
}

.feature-slide-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.feature-slide-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.feature-slide-close:hover {
  background: var(--surface-2);
  color: var(--text-strong);
  border-color: var(--border-strong);
}

.feature-slide-close svg {
  width: 16px;
  height: 16px;
}

.feature-slide-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.feature-slide-backdrop.open .feature-slide-animate {
  animation: fsPanelContentIn 0.38s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.feature-slide-backdrop.open .feature-slide-animate:nth-child(1) { animation-delay: 0.04s; }
.feature-slide-backdrop.open .feature-slide-animate:nth-child(2) { animation-delay: 0.08s; }
.feature-slide-backdrop.open .feature-slide-animate:nth-child(3) { animation-delay: 0.12s; }
.feature-slide-backdrop.open .feature-slide-animate:nth-child(4) { animation-delay: 0.16s; }

@keyframes fsPanelContentIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.feature-slide-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 24px;
}

.feature-slide-section {
  margin-bottom: 24px;
}

.feature-slide-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-mute);
  margin-bottom: 10px;
}

.feature-slide-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}

.feature-slide-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
  padding: 12px 14px;
  line-height: 1.5;
  border-bottom: 1px solid var(--border);
}

.feature-slide-item:last-child {
  border-bottom: none;
}

.feature-slide-item svg {
  width: 15px;
  height: 15px;
  color: var(--accent-2);
  flex-shrink: 0;
  margin-top: 2px;
}

:root[data-theme="dark"] .feature-slide-item svg {
  color: var(--accent);
}

.feature-slide-pro-box {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.feature-slide-pro-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-mute);
  margin-bottom: 6px;
}

.feature-slide-pro-list {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* Unavailable / enterprise gate */
.feature-slide-unavailable {
  display: none;
  text-align: center;
  padding: 8px 4px 12px;
}

.feature-slide-unavailable.is-visible {
  display: block;
}

.feature-slide-unavailable-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-mute);
}

.feature-slide-unavailable-icon svg {
  width: 22px;
  height: 22px;
}

.feature-slide-unavailable-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  line-height: 1.35;
}

.feature-slide-unavailable-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 320px;
  margin: 0 auto;
}

.feature-slide-upgrade-content.is-hidden {
  display: none;
}

.feature-slide-footer {
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  background: var(--surface-solid);
}

.feature-slide-cta {
  width: 100%;
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #071a14;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 4px 14px -4px rgba(224, 180, 76, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.feature-slide-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -6px rgba(224, 180, 76, 0.5);
}

.feature-slide-cta:active {
  transform: none;
}

.feature-slide-cta-secondary {
  width: 100%;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-strong);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feature-slide-cta-secondary:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
}

.feature-slide-demo {
  width: 100%;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feature-slide-demo:hover {
  background: var(--surface-2);
  color: var(--text-strong);
}

@media (max-width: 640px) {
  .feature-slide {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feature-slide-backdrop,
  .feature-slide,
  .feature-slide-cta,
  .feature-slide-backdrop.open .feature-slide-animate {
    transition: none;
    animation: none;
  }
}
