/* ==========================================================================
   Cogvert Scout — Upgrade Modal + Locked Feature Styles
   Include on every dashboard page alongside upgrade-modal.js
   ========================================================================== */

/* ── Locked feature overlay ─────────────────────────────── */
.feature-locked {
  position: relative;
  cursor: pointer !important;
}
.feature-locked > *:not(.lock-overlay) {
  opacity: 0.35;
  filter: grayscale(0.6);
  pointer-events: none;
  user-select: none;
}
.lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: background 0.15s;
}
.feature-locked:hover .lock-overlay {
  background: rgba(255, 255, 255, 0.7);
}
.lock-overlay__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 12px;
}
.lock-overlay__icon {
  width: 28px;
  height: 28px;
  color: #64748B;
  opacity: 0.7;
}
.lock-overlay__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #334155;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid #E2E8F0;
  white-space: nowrap;
}
.feature-locked:hover .lock-overlay__label {
  background: #2FF3E0;
  color: #0F172A;
  border-color: #2FF3E0;
}

/* ── Upgrade modal overlay ──────────────────────────────── */
body.upgrade-modal-open { overflow: hidden; }

.upgrade-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.upgrade-modal[hidden] { display: none; }

.upgrade-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.upgrade-modal__card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.3);
  width: 100%;
  max-width: 440px;
  padding: 40px 36px 32px;
  text-align: center;
  animation: um-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes um-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.upgrade-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: #F8FAFC;
  border: 0;
  border-radius: 50%;
  font-size: 22px;
  color: #64748B;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.upgrade-modal__close:hover { background: #F1F5F9; color: #0F172A; }

.upgrade-modal__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 20px;
  background: #2FF3E0;
  color: #fff;
}

.upgrade-modal__title {
  font-size: 24px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 12px;
  line-height: 1.2;
}

.upgrade-modal__desc {
  font-size: 14px;
  color: #64748B;
  line-height: 1.6;
  margin: 0 0 20px;
}

.upgrade-modal__value {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  background: #F0FDF4;
  border: 1px solid #D1FAE5;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 24px;
}
.upgrade-modal__value svg {
  flex-shrink: 0;
  color: #16A34A;
  margin-top: 1px;
}
.upgrade-modal__value span {
  font-size: 13px;
  color: #065F46;
  line-height: 1.55;
  font-weight: 500;
}

.upgrade-modal__plan {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}
.upgrade-modal__plan-name {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
}
.upgrade-modal__plan-price {
  font-size: 14px;
  color: #64748B;
}
.upgrade-modal__plan-price::before {
  content: '·';
  margin-right: 8px;
}

.upgrade-modal__cta {
  display: block;
  width: 100%;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  background: #2FF3E0;
  color: #0F172A;
  border: 0;
  cursor: pointer;
  transition: filter 0.15s, transform 0.15s;
  margin-bottom: 16px;
}
.upgrade-modal__cta:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

.upgrade-modal__current {
  font-size: 12px;
  color: #94A3B8;
  margin: 0;
}

/* ── Sidebar nav lock icons ──────────────────────────────── */
.nav-item-locked {
  opacity: 0.55;
  position: relative;
}
.nav-item-locked:hover {
  opacity: 0.8;
}
.nav-lock-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  opacity: 0.7;
  flex-shrink: 0;
}
.nav-item-locked:hover .nav-lock-icon {
  color: #FFC107;
  opacity: 1;
}
/* For rec-subnav-items which have different layout */
.rec-subnav-item.nav-item-locked .nav-lock-icon {
  right: 8px;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 480px) {
  .upgrade-modal__card { padding: 32px 24px 24px; }
  .upgrade-modal__title { font-size: 20px; }
}
