.locked-feature {
  position: relative;
  cursor: pointer;
}

.locked-feature.is-locked {
  opacity: 0.82;
}

.locked-feature.is-locked:hover {
  border-color: rgba(241, 211, 122, 0.85);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.locked-feature.is-unlocked {
  cursor: default;
}

.plan-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  width: fit-content;
  min-height: 24px;
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 800;
  color: #8a5a00;
  background: #fff3cd;
  border: 1px solid #f1d37a;
  border-radius: 999px;
  padding: 4px 8px;
  white-space: nowrap;
}

.plan-lock.hidden,
.hidden.plan-lock {
  display: none;
}

.status-preview.locked-feature,
.status-preview.compact.locked-feature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status-preview.locked-feature > div:not(.status-dot),
.status-preview.compact.locked-feature > div:not(.status-dot) {
  min-width: 0;
}

.status-preview.locked-feature .status-dot {
  flex-shrink: 0;
}

.panel.locked-feature .panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.panel.locked-feature .panel-head > div {
  min-width: 0;
}

.panel.locked-feature .panel-head h2,
.panel.locked-feature .panel-head small {
  overflow-wrap: anywhere;
}

.locked-feature[data-required-plan="Premium"] .plan-lock {
  color: #f8fafc;
  background: #111827;
  border-color: #334155;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(3px);
}

.modal {
  width: min(92vw, 520px);
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
}

.modal-card {
  width: 100%;
  color: #fff;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 14px;
}

.modal-card .eyebrow,
#financeUpgradeEyebrow,
#modalEyebrow {
  margin: 0 0 6px;
  color: #f1d37a;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-card h2,
#financeUpgradeTitle,
#modalTitle {
  margin: 0;
  color: #fff;
  font-size: 1.28rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.modal-body {
  padding: 0 22px 20px;
  color: #e5e7eb;
}

.modal-body .empty-state {
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 16px;
}

.modal-body strong {
  color: #fff;
}

.modal-body p {
  margin: 8px 0 0;
  color: #d1d5db;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 22px 22px;
}

.modal-actions .secondary-btn,
.modal-actions .primary-btn {
  min-height: 40px;
}

@media (max-width: 640px) {
  .status-preview.locked-feature,
  .status-preview.compact.locked-feature {
    align-items: flex-start;
  }

  .plan-lock {
    font-size: 0.66rem;
    padding: 4px 7px;
  }

  .modal-header,
  .modal-body,
  .modal-actions {
    padding-left: 16px;
    padding-right: 16px;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions .secondary-btn,
  .modal-actions .primary-btn {
    width: 100%;
  }
}

.status-preview.locked-feature:not(.compact) {
  justify-content: flex-start;
}

.status-preview.locked-feature:not(.compact) .plan-lock {
  margin-left: auto;
}